-
Notifications
You must be signed in to change notification settings - Fork 64
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
Support the Sustain pedal #11
Comments
This would be best solved in Magenta.js, so you can try creating an issue there. A workaround here would be to modify the note sequence by extending the durations of notes, similarly to the Also note that the Magenta.js SoundFonts have a maximum note duration (2 seconds I think), after that the note is released anyway. |
Thanks for the links! I attempted to create a similar function and found that magenta.js doesn't return the control changes data at all. I opened a PR in magenta.js, adding that data. Once that merges, I can add that function in here. |
OK. You can also consider submitting another PR to magenta to make their player handle the sustain pedal correctly, which would be a cleaner fix I think. |
Makes sense. I'll plan to fix it in the BasePlayer class then. I'm new to JS so one challenge for me is that I'm not really sure how to run and test the magenta-js codebase locally. Might you have any pointers on that ? |
That should be straightforward, just clone the repo, go to the |
Thanks! I opened a PR adding a method to the magenta-js project. I still need to figure out where to call that method from. Might you have an opinion on that already? |
Thanks! But unfortunately I don't know if this can just be solved by calling your
So the only way I see is to modify Magenta.js's |
Currently the MIDI Player ignores all signals for the sustain pedal (Midi control signal 64). It'd be great if the player could respect the sustain pedal as piano music without the sustain pedal sounds way poorer.
The text was updated successfully, but these errors were encountered: