Sustain Help Needed

Jun 28, 2012 at 10:54pm

Sustain Help Needed

Evening all,

I’m a first time poster in the forums and a first time user of MAX.

Cutting to the chase, I need to select which notes the sustain affects. I’ve got the ‘notein’, ‘noteout’ sussed and currently have the sustain toggling through the spacebar. I was thinking it’d have to be an ‘if then’ statement, but I can’t seem to wrap my head around it.

Any advise, or a point in the right direction would be gratefully appreciated.

P.S. I’m new to this, so go easy on me : )

#39945
Jun 29, 2012 at 12:05am

maybe use a gate to route your incoming note-off messages according to whether the space bar is being held down or not. the pitches that have a velocity zero could be grouped [zl group], and when the spacebar up is detected these pitches are iterated out [iter] to a [noteout] with a velocity zero argument; also look at borax– there might be an neater way to do it using that

#140896
Jun 29, 2012 at 12:33am

OK I think borax and gate is the way to go– I haven’t tried this out but it should work. Will give you a start anyway.

– Pasted Max Patch, click to expand. –
#140897
Jun 29, 2012 at 9:23am

Thank you very much Terry. I’ll get working on it.

Regards.

#140898

You must be logged in to reply to this topic.