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

midi.py: Fix to remove repeated note from sustained_notes #450

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

dpwe
Copy link
Collaborator

@dpwe dpwe commented Jan 24, 2025

Fixes a problem with prematurely terminating a note on pedal-up (release of piano sustain). Previously, the sequence [pedal down, play & release notes (they sustain), play one of the sounding notes again, hold it down but release the pedal] would execute a note-off for the note that was being held down, because its note-off from the release of the first chord was still pending.

With this fix, note-on ensures the note in question is not in the list of deferred note-offs, so it is not prematurely terminated.

Thanks to matt-har-vey for identifying the problem and providing the fix!

@dpwe dpwe merged commit 27f3857 into main Jan 24, 2025
1 check passed
@dpwe dpwe deleted the sustain-repeated-note branch January 24, 2025 01:09
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.

1 participant