midi notes keep sustaining

kazouki's icon

hi everybody,
i have a problem which is driving me near to nuts,
what my patch does is take midi notes from notein then
send the pitch data through a processing part which then manipulates
the number and sends it out of the processing part to the noteout where it should meet with the appropriate velocity value. now this works whenever i'm playing single notes or playing slowly, but when i play a chord, often the notes don't receive the note-off and they get sustained.
anybody have a good suggestion how to get rid of this problem?
i try'd it with pack/unpack, but does'nt seem to work with alot of simultaneous notes.
thanx alot.

thom

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

As you surmise the notes are probably not getting their proper associated note-off message sent. From your description it sounds like you're transposing the pitch of incoming notes, so you need to be certain that the note-off has the same transposition. And it sounds like any time you play more than one note at a time, the second note is changing the transposition before the first note gets a note-off sent for it. So to solve that you need to keep track of what transposition you give to each incoming note. Something like this.

kazouki's icon

hi christopher,

im really sorry i forgot to say i'm running max 4.5, cant load your patch.
like you say there's transposing involved as well. could you
explain to me shortly what objects your patch holds?
thanx a million!

thom

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

kazouki's icon

Thanx alot!!! this looks like a good trick :)