Create endless sustain?

nilzie's icon

Hi all,

I'm looking for a way to create a endless sustain for a midi synth - I want to be able to play a chord, take my hands off the keyboard, and let the sustain ring until I press a new chord, that I want to replace the last chord. I found this nice little plugin called Easy Sustain in the maxforlive community, and thought I might build from there - adding a functionality that, once I hit a new chord (and let maxmsp listen to a "noteon" message?), it kills any ringing notes, and instantly after that sets sustain to "on", so that my new chord can ring until I play a new chord. But I just can't get it to work. Does anyone have an idea for a simple solution?

Thanks in advance, I would be very happy for any input :-)

Max Patch
Copy patch and select New From Clipboard in Max.

double_UG's icon

borax
not shure if this works, haven´t tested it

Max Patch
Copy patch and select New From Clipboard in Max.

Roman Thilenius's icon


it seems you are not using a custom envelope generator, which would make this a bit easier, but you could simply filter out note off messages, or hold them back until a new chord comes in, to get that done.

nilzie's icon

@DOUBLE_UG, ROMAN, thank you so much for taking the time to help me out with this one. Couldn't get it to work as for now, but will return to it soon and investigate more!

Cheers

Source Audio's icon

What you describe seems to fit as Midi HOLD Switch.
It sustains currently held notes, wipes them Off when engaged next time.
you can build something like that using sustain object and flush.

But you are not explaining what exactly you want to do.
That's why posted solutions don't work the way you expect.
You must list your sustain pedal switch logic, like
if CC 64 is OFF incoming notes play normaly.
When Switch goes ON it
1- holds currently held notes
or
2- opens the gate to capture new notes to hold

then when Sustain SW goes OFF
1- captured notes sustain, incoming notes play normaly
---------
Or you can activate auto-sustain Switch
which woud collect notes into chord for some ammount of
tiome since first note ON came in.

And so on.

double_UG's icon

Max Patch
Copy patch and select New From Clipboard in Max.