Skip to content

Reset pitch bend to zero at note end - #202

Open
BeratYilmaz-dev wants to merge 1 commit into
spotify:mainfrom
BeratYilmaz-dev:fix-pitch-bend-reset
Open

BeratYilmaz-dev wants to merge 1 commit into
spotify:mainfrom
BeratYilmaz-dev:fix-pitch-bend-reset

Conversation

@BeratYilmaz-dev

Copy link
Copy Markdown

Closes #87.

Currently, when pitch bends are estimated for a note event, the pitch bend wheel is never reset back to neutral (0) when the note ends. Because pitch bend is a stateful channel controller in MIDI, any subsequent notes played on that instrument remain detuned.

This PR spaces intra-note pitch bend events across [start_time, end_time) and appends a PitchBend(0, end_time) event when a note with non-zero bend concludes. Added unit tests in test_note_creation.py.

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.

Pitch bend returning to 1365 instead of 0 after initial pitch bend

1 participant