poly~ instances

Aug 6, 2007 at 5:05am

poly~ instances

hey, i had it working but lost it: how does a poly~ instance know what instance it is?

should you do that by mute->thispoly?

i need to make dynamic names for sends in the poly.

-110

#33160
Aug 6, 2007 at 5:10am

ah it was bang :) nevermind.

#110042
Aug 6, 2007 at 8:12am

#110043
Aug 6, 2007 at 4:47pm

Each time you send a bang to a thispoly~ you could send a [mutemap] or [busymap] message to the main poly~ to report the number of poly~ instance and then send it to each instance for using in parallel with the instance number ??

Not testing but it should work…

max v2;
#N vpatcher 125 162 694 515;
#P origin 0 -6;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 89 188 79 9109513 r from_instances;
#B color 14;
#P newex 287 115 46 9109513 thispoly~;
#P newex 195 292 69 9109513 s to_instances;
#B color 14;
#P number 278 217 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Sans Serif” 24.;
#P number 195 229 40 24 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont “Sans Serif” 9.;
#P message 278 236 49 9109513 voices $1;
#P newex 278 256 44 9109513 s topoly;
#P comment 326 238 183 9109513 change the number of voices being used;
#P message 89 244 55 9109513 busymap 2;
#P newex 195 188 29 9109513 zl len;
#P message 89 228 55 9109513 mutemap 2;
#P window linecount 2;
#P comment 156 158 45 9109513 message output 2;
#P window linecount 1;
#P newex 47 107 44 9109513 r topoly;
#P hidden newex 89 292 44 9109513 s topoly;
#P toggle 33 40 15 0;
#P newex 68 63 33 9109513 gate~;
#P newex 33 63 33 9109513 gate~;
#P number 211 107 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 56 36 45 9109513 adc~;
#P newex 33 138 173 9109513 poly~ poly_loadme 3;
#B color 5;
#P user panel 81 216 178 59;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 6 0 4 0;
#P connect 8 0 1 0;
#P connect 4 0 1 0;
#P connect 2 0 4 1;
#P connect 6 0 5 0;
#P connect 20 0 10 0;
#P hidden connect 10 0 7 0;
#P hidden connect 12 0 7 0;
#P connect 2 1 5 1;
#P connect 1 3 11 0;
#P connect 11 0 16 0;
#P connect 16 0 18 0;
#P connect 3 0 1 1;
#P fasten 5 0 1 1 73 100 201 100;
#P connect 17 0 15 0;
#P connect 15 0 14 0;
#P pop;

#110044
Aug 7, 2007 at 10:36pm

jln schrieb:
> It would be nice if thispoly~ allow this. Maybe a bang could output
> something like ‘voice instance, number of voices’ ?

There is no way that you don’t know how many voices your poly~ has:
Either its an argument or you sent a voice message. Just grab it
wherever you set it…
You can also use a busymap or mutemap command and [zl len] to get the
number of voices, but better use the information from the first place…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#110045

You must be logged in to reply to this topic.