Forums > MaxMSP

Sustain Help Needed

Jun 28 2012 | 10:54 pm

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 : )

Jun 29 2012 | 12:05 am

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

Jun 29 2012 | 12:33 am

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. --

Jun 29 2012 | 9:23 am

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


Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP