Forums > MaxMSP

newbie poly~ problem

October 10, 2006 | 8:24 pm

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

*****************************************************************main patch

max v2;
#N vpatcher 154 46 807 623;
#P window setfont "Sans Serif" 9.;
#P newex 291 62 19 9109513 t b;
#P newex 351 193 47 9109513 tosymbol;
#P user function 329 85 529 185 1 1 0 0;
#X frgb 82 82 82;
#X brgb 204 204 204;
#X rgb2 85 85 85;
#X rgb3 255 255 255;
#X rgb4 0 0 0;
#X rgb5 0 0 0;
#X add 0. 0. 0;
#X add 457.446808 0.933333 0;
#X add 1000. 0. 0;
#X domain 1000.;
#X range 0. 1.;
#X done;
#P newex 208 164 47 9109513 tosymbol;
#P newex 211 209 52 9109513 pack do re;
#P newex 241 64 28 9109513 sel 0;
#P user gain~ 214 328 24 100 158 0 1.071519 7.94321 10.;
#P newex 203 120 44 9109513 pack 0 0;
#P newex 198 28 41 9109513 notein a;
#P newex 208 251 62 9109513 prepend note;
#P user ezdac~ 208 465 252 498 0;
#P newex 210 292 110 9109513 poly~ poly_test_synth 4;
#P connect 3 0 4 0;
#P connect 4 0 8 0;
#P connect 7 0 2 0;
#P connect 5 0 1 0;
#P connect 2 0 0 0;
#P connect 8 0 7 0;
#P connect 0 0 5 0;
#P connect 3 1 4 1;
#P connect 3 1 6 0;
#P connect 10 0 7 1;
#P connect 6 1 11 0;
#P connect 11 0 9 0;
#P connect 9 1 10 0;

*****************************************************************poly_test_synth sub patch

max v2;
#N vpatcher 167 96 907 672;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 95 185 16 9109513 0;
#P newex 113 238 32 9109513 / 127.;
#P newex 95 309 28 9109513 *~ 0.;
#P newex 95 146 28 9109513 sel 0;
#P newex 52 87 59 9109513 fromsymbol;
#P newex 230 87 59 9109513 fromsymbol;
#P newex 51 119 54 9109513 unpack 0 0;
#P newex 207 52 62 9109513 unpack do re;
#P newex 230 203 38 9109513 line~ 0.;
#P message 174 456 48 9109513 mute 0 , 1;
#P message 247 457 45 9109513 mute 1 , 0;
#P newex 177 508 50 9109513 thispoly~;
#P newex 51 368 27 9109513 *~;
#P newex 51 271 41 9109513 phasor~;
#P newex 51 204 28 9109513 mtof;
#N out~ 1;
#P newobj 51 510 34 9109513 out~ 1;
#N in 1;
#P newobj 207 24 26 9109513 in 1;
#P connect 12 0 10 0;
#P connect 10 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 1 0;
#P connect 9 0 12 0;
#P connect 14 0 4 1;
#P connect 10 1 13 0;
#P connect 13 0 16 0;
#P connect 8 0 14 0;
#P connect 13 1 15 0;
#P connect 15 0 14 1;
#P connect 13 1 7 0;
#P connect 7 0 5 0;
#P connect 6 0 5 0;
#P connect 0 0 9 0;
#P connect 9 1 11 0;
#P connect 16 0 8 0;
#P connect 11 0 8 0;
#P connect 8 1 6 0;
#P connect 13 0 6 0;


October 10, 2006 | 9:25 pm

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.

Good luck,

mz


October 11, 2006 | 12:16 am


October 11, 2006 | 12:17 am

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


October 11, 2006 | 1:25 am

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’…
>


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