Navigation Menu

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

fix #282165: Mute voice produces note that doesn't stop when overlap present #5242

Merged
merged 1 commit into from Aug 29, 2019

Conversation

mattmcclinch
Copy link
Contributor

@mattmcclinch mattmcclinch commented Jul 25, 2019

Resolves: https://musescore.org/en/node/282165.

This uses the same logic as in Seq::playEvent() for determining whether or not the event corresponds to a muted track.

@anatoly-os
Copy link
Contributor

anatoly-os commented Jul 26, 2019

@mattmcclinch thanks! Will a MIDI test catch the bug and verify the fix? If so, could you please add one?

@mattmcclinch
Copy link
Contributor Author

I added a test which uncovered a bug in MIDI export. I have fixed this bug as well, using the same logic as before.

@@ -391,8 +394,18 @@ void EventMap::fixupMIDI()

auto it = begin();
while (it != end()) {
NPlayEvent event = it->second;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it possible to avoid code duplication? Extract a method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree that it is better to avoid code duplication. I just pushed a change to this branch that does what you suggest.

@mattmcclinch mattmcclinch changed the title fix #291038: Muted voice causes MIDI events in unmuted voice to be discarded fix #282165: Mute voice produces note that doesn't stop when overlap present Aug 24, 2019
@anatoly-os anatoly-os merged commit ad1852c into musescore:master Aug 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants