Playing midi mono with sustain pedal
Hi!
I have been trying to solve a problem, that seemed easy at first, for a long time now. Maybe there is a simple solution that I am overlooking, but for now I'd like to share it with you.
I created a patch that converts incoming midi notes to mono midi notes. It uses the ddg.mono object, and the flush object. I want to convert this to a max4live midi device later to send midi notes to a VST instrument that doesn't have mono functionality. My goal is to also connect the sustain pedal to this and have the last note played sustained. The note is sustained by maintaining the last velocity value and only sending out the note-off signal when the sustain pedal is released. I can't send a CC64 value to the VST itself, because it will simply sustain all notes that come in (regardless if they receive a note-off signal). The "sustain" of the notes must therefore be determined by the notes themselves by means of a note-on (velocity value) and a note-off (velocity value 0).
I've tried several ways to get this to work, but I can't figure it out. I think I'm missing something (it can't be that difficult, right?) Does anyone know a solution? I would be very grateful! My patch is attached at the bottom.
Cheers!
if you want to hold last note and turn it off when sustain is released,
then simply gate input to ddg.mono when sustain is on
and bang flush when sustain gets released.
midi input will be disabled as long as sustain is on.
Thanks for replying!
However, I want to play continuously while the sustain pedal pressed, like a mono-synth. So disabling midi input is not usable in this case.
try this ..............
Yes! This was what I was looking for.
Thank you so much! :)