newbie poly~ problem

When a key is released and a note off/velocity 0 message is sent to my poly sub patch in the following patch, the amplitude line~ object does not appear to be reacting to the message sent to it (ie the note just plays for the length of time specified by the function object in the main patch and doesn’t end when I release a key). Any pointers on what (irritatingly simple) mistake I’m making gratefully received,

Thanks in advance (and thanks for all the help gleaned from checking previous posts – I’ve been lurking for while!),

Quote: dondelion wrote on Tue, 10 October 2006 13:24
—————————————————-
> Wotcha,
>
> When a key is released and a note off/velocity 0 message is sent to my poly sub patch in the following patch, the amplitude line~ object does not appear to be reacting to the message sent to it (ie the note just plays for the length of time specified by the function object in the main patch and doesn’t end when I release a key). Any pointers on what (irritatingly simple) mistake I’m making gratefully received,
>
>

The first "note…" message that the poly~ sub patch recieves sets its state to busy. It will ignore all subsequent "note…" messages until it that changes, and that happens when the line~ sends a bang out its right outlet. So, the velocity 0 message is being ignored.

You’ll have to send the note off in some other way, addressed to the proper sub patch. Look at the borax and poly (no tilde) objects to help organize your MIDI stream.

you are creating a list of three symbols : note ,"note+velovity", "coordinates of enveloppe" which means you need to unpack three items in your [poly~]; an [unpack do re mi] in your [poly~] will do , the list to feed into [line~] coming from ‘mi’…

Quote: dondelion wrote on Tue, 10 October 2006 13:24
—————————————————-
> Wotcha,
>
> When a key is released and a note off/velocity 0 message is sent to my poly sub patch in the following patch, the amplitude line~ object does not appear to be reacting to the message sent to it (ie the note just plays for the length of time specified by the function object in the main patch and doesn’t end when I release a key). Any pointers on what (irritatingly simple) mistake I’m making gratefully received,
>
> Thanks in advance (and thanks for all the help gleaned from checking previous posts – I’ve been lurking for while!),
>
> Donovan
>
>

forget about my stupid answer, i completly forgot about the note message for [poly~] ( dont use midi that much…)
*spanks*

Quote: (karrrlo) wrote on Tue, 10 October 2006 17:17
—————————————————-
> you are creating a list of three symbols : note ,"note+velovity", "coordinates of enveloppe" which means you need to unpack three items in your [poly~]; an [unpack do re mi] in your [poly~] will do , the list to feed into [line~] coming from ‘mi’…
>