Forums > MaxMSP

sending data to all poly~s


TFF
December 8, 2010 | 9:47 pm

I have a poly~ object I’m using for granular playback, and have added a patcher to the poly~ patch to apply fades to the beginning and ends of each grain. A number box plugged into the second inlet determines how long the fades are.

When only one voice is used, it works fine. However, it appears that none of the other voices have the fades applied. How can I send the fade lengths to all of the voices?

Best,
-Zach

– Pasted Max Patch, click to expand. –

December 8, 2010 | 9:51 pm

havent looked at the patch so maybe it is a dumb answer:

by sending "target 0" to the poly before you change the parameter?

 -110



TFF
December 8, 2010 | 9:57 pm

Welp. I haven’t entirely worked it out, but that seems to be working.

Just to make sure I get this: I just send the message "target 0" into that inlet, and then any values i send after that will go to all the voices?


December 8, 2010 | 10:00 pm

yes, "target 0" means "to all voices".

"into that inlet", not.

into _any inlet of your choice (just use the leftmost all the time), and it
will make the poly instances (not just the inlet or what is behind) all
listen to input.

the helpfile is a bit cryptic but eventually check the help for "target" message.


December 8, 2010 | 10:06 pm

 
example.

"target 1, note on notenumber 60 with velocity 100"
"target 2, note on notenumber 63 with velocity 100"
"target 1, note off notenumber 60"
"target 0, controller data which changes the filter frequency"
"target 3, note on notenumber 67 with velocity 100"

now if you use automatic voicing in your poly~, you wont need to use "target 1", but
the "target 0" message still works the same.
it will not interrupt your automatic voicing, and it has to be sent prior to any new
filter parameter.

-110


December 9, 2010 | 10:46 am

Instead of sending the message target 0, followed by the intended message for all the instances of poly, I just use pairs of [send] and [receive] objects.

Put the [send] object in the main patch and a corresponding [receive] object in the poly patch… all instances will receive it.


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