Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixer does not seem functioning for panning/volume for each player #276

Closed
jairus-crabb opened this issue Dec 27, 2019 · 18 comments
Closed

Comments

@jairus-crabb
Copy link

Like title says, I have two players on different instruments and panning/volume changes seem to do nothing. I can't find anywhere else where this can be changed.

@jairus-crabb
Copy link
Author

I also know a bit of C++, if this is a bug, I'd be happy to look into the issue myself if no one else knows what may be wrong of the top of their heads.

@cameronwhite
Copy link
Member

Yeah I think this is a bug - there was a big refactor of how the midi playback was implemented, so I think this functionality was lost then. Patches are welcome!
Ultimately I think you need to end up calling device.setChannelMaxVolume() in the midi player. You might want to also fix MidiFile to properly record the source player / instrument for use in the midi player - there is some partial code already for that.

@mostafa-nabil
Copy link
Contributor

mostafa-nabil commented Jul 2, 2020

I had a look at the issue and I did a quick fix for it locally. Hopefully I will deliver something soon.
My fix was mainly in MidiFile.cpp, but so far I did not need to use device.setChannelMaxVolume(). Still I will need more testing to do this
edit: should the volume change online while the music is playing? or it is sufficient to make the volume be updated after pausing and playing again?

@cameronwhite
Copy link
Member

Yeah, I think the original intention was to have volume changes take effect while playback is active (similar to changing playback speed or enabling / disabling the metronome)

mostafa-nabil added a commit to mostafa-nabil/powertabeditor that referenced this issue Jul 6, 2020
midiplayer.cpp -> volumechanged event is treated separately in order to include the maxVolume threshold
midievent.cpp -> added a check isVolumeChange()
@Ebdim9th
Copy link

Before the refactoring? the mixer was working on Alpha 8....

@cameronwhite cameronwhite added this to the Alpha 14 milestone Nov 22, 2020
@cameronwhite
Copy link
Member

This was fixed with #303

@Ebdim9th
Copy link

Do I do like before and download and install an updated version of Alpha 13 for this feature?

@cameronwhite
Copy link
Member

Yeah, the installers from https://github.com/powertab/powertabeditor/actions/runs/376872326 will have the fix

@Ebdim9th
Copy link

thanks!

@Ebdim9th
Copy link

huh. installed, didnt make any difference. headscratch

@cameronwhite
Copy link
Member

cameronwhite commented Nov 23, 2020 via email

@Ebdim9th
Copy link

any ideas on what might be wrong with mine? Should i try to re-install? Hmmm I'll try that first....

@Ebdim9th
Copy link

The 'repair' relaunch worked perfectly! I didn't even have to temporarily shut down down Avast.... it balked a little but not enough to stop the re-install from completing.....

@Ebdim9th
Copy link

I got a new Dell w Windows 10, installed, I get that nifty dark theme choice but the volume pan "knobs" aren't working....

@cameronwhite
Copy link
Member

cameronwhite commented Feb 13, 2021 via email

@Ebdim9th
Copy link

Ebdim9th commented Feb 14, 2021

only the pan, the volume sliders work perfectly, i would test by panning hard left and right then dropping the volume of first one guitar then another to zero ...

@cameronwhite
Copy link
Member

Yeah, I tested now and the pan seems to be ignored .. The volume slider works fine
Reopening this issue.

@cameronwhite cameronwhite reopened this Feb 17, 2021
@cameronwhite cameronwhite modified the milestones: Alpha 14, Alpha 15 Feb 17, 2021
@Ebdim9th
Copy link

Thanks man! I really appreciate it... seriously. This is the /only/ tab program where i can go and not only be heard but find my requests pretty promptly and successfully implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants