Dynamicaly changing the number of outputs in a poly~ ?

Feb 19, 2008 at 4:07am

Dynamicaly changing the number of outputs in a poly~ ?

Hi i have a poly patch within which i would like to receive independently the outputs for each voice .

Is this possible ?

I was thinking to use a gate~ object and use this poly to select where each voice’s output is sent.
However this doesn’t solve the problem if i’d like to change the number of voices .

Could there be a way to do this with send and receive objects ?

something like send #0 that would send the outputs in to the main patch ?

thanks for any help .

#35881
Feb 19, 2008 at 4:46am

Quote: phaethon wrote on Tue, 19 February 2008 05:07
—————————————————-
> Hi i have a poly patch within which i would like to receive independently the outputs for each voice .
>
> Is this possible ?
>
> I was thinking to use a gate~ object and use this poly to select where each voice’s output is sent.
> However this doesn’t solve the problem if i’d like to change the number of voices .
>
> Could there be a way to do this with send and receive objects ?
>
> something like send #0 that would send the outputs in to the main patch ?

I ran into the same question today while creating a patch to be used with an 8 speaker system.

for now i solved it like this, should work for you too, i hope?

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 134 66 48 196617 loadbang;
#P newex 134 143 62 196617 prepend set;
#P newex 134 104 31 196617 + 96;
#P newex 33 161 44 196617 send~ a;
#P newex 134 85 52 196617 thispoly~;
#P newex 134 123 40 196617 itoa;
#P newex 33 140 27 196617 *~;
#P comment 6 101 100 196617 your patch here;
#P connect 1 0 4 0;
#P connect 6 0 4 0;
#P connect 7 0 3 0;
#P connect 3 0 5 0;
#P connect 5 0 2 0;
#P connect 2 0 6 0;

the outputs of each voice are received starting from [receive~ a] up to [receive~ h] in my case (8 channels).
any thoughts from more experienced polymaxists on the list on how to do it without using send~ and receive~?

regards,
kjg

#122881
Feb 19, 2008 at 4:55am

I cooked up a similar solution using send~. Hope it’s helpful.

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 110 86 94 196617 sprintf set hello%i;
#P number 74 86 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 110 148 60 196617 send~ hello;
#P newex 110 44 52 196617 thispoly~;
#P connect 0 0 2 0;
#P connect 0 0 3 0;
#P connect 3 0 1 0;
#P window clipboard copycount 4;

#122882
Feb 19, 2008 at 4:38pm

#122883
Feb 19, 2008 at 5:03pm

Quote: jeanfrancois.charles wrote on Tue, 19 February 2008 17:38
—————————————————-
> Unfortunately, there is no way of changing dynamically the number of outputs
> of [poly~].

yes, that’s what I thought.

> Using send~ and receive~ to cross the barrier of a [poly~] is not a great
> practice. It can lead to problems

i generally try to stay away from this pair. i prefer patch cords. so i’ll go with your gate~ solution then.

thank you
klaas-jan

#122884
Feb 19, 2008 at 11:38pm

Thanks for all your help guys .

Indeed the send receive thing seems quite messy ,
i’ll stick with the gate idea :)

cheers

#122885

You must be logged in to reply to this topic.