Forums > MaxMSP

Is there any way of outputting data from all patches in a poly~?

December 12, 2006 | 9:55 pm

Hi,

I have created a patch and replicated it 10 times within poly~ Is there any way of outputting integers from each patch seperately?

I also have a signal outputting to the dac~ but I do not require seperate streams for it. I’m sure this isn’t possible anyway.

Thanks,

Crisko.


December 12, 2006 | 10:42 pm

Prepend the voice number to the integers on the way out and then use
route to split them up.

hth
Owen

Ciaran McCrisken wrote:
> I have created a patch and replicated it 10 times within poly~ Is
> there any way of outputting integers from each patch seperately?
>


December 12, 2006 | 11:05 pm


December 12, 2006 | 11:06 pm

And will that be capable of taking all that data at once?


December 12, 2006 | 11:24 pm

You could also format the outgoing message from each instance to be
prepended with a unique identifier, like so:

#P window setfont "Sans Serif" 9.;
#P number 59 117 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#N out 1;
#P newobj 59 170 33 196617 out 1;
#P newex 59 148 45 196617 prepend;
#P newex 102 116 62 196617 prepend set;
#P number 102 95 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 102 65 52 196617 thispoly~;
#P connect 5 0 3 0;
#P connect 3 0 4 0;
#P fasten 2 0 3 0 107 140 64 140;
#P connect 1 0 2 0;
#P connect 0 0 1 0;
#P window clipboard copycount 6;

Then just send the output through a [route] object to separate.

Cheers,
Andrew B.


December 12, 2006 | 11:26 pm

> And will that be capable of taking all that data at once?

What does that mean?


December 12, 2006 | 11:51 pm

If you were replying to me (please quote!), then yes, because nothing
happens all at once on a computer.

Ciaran McCrisken wrote:
> And will that be capable of taking all that data at once?


December 13, 2006 | 12:09 am

Sorry. My head’s fried with the patch. Has to be handed in 2m.:(

Basically, I have 10 versions of a patch that generate a stream of integers using the counter and metro. These need to be outputted seperately to 10 faders in the main patch window. I’ve tried all the ideas mentioned but I can’t seem to get round it.

Owen: I can’t prepend the voice number to the integers because it has two integers going into it then. The integers are generated from a number box. Is there any way round this?

Thanks for your patience.


December 13, 2006 | 12:31 am

Don’t waste any more time trying to help, I’m certainly not. Had enough of this crappy patch.

Thanks anyway.


December 13, 2006 | 1:03 am

Feed them into [pack 0 0], to make a list. The [route] object after the
poly would look at the first item in a list it receives (the voice
number, in this case), strip it off and send the remaining data to the
appropriate outlet.

It’s this stuff, the basic mechanics of how to move stuff about in Max,
that bent my brain at first – I can’t recommend reviewing the core
tutorials heartily enough.


Owen

Ciaran McCrisken wrote:
> Owen: I can’t prepend the voice number to the integers because it has
> two integers going into it then. The integers are generated from a
> number box. Is there any way round this?


December 13, 2006 | 1:23 am


December 13, 2006 | 9:59 am

Ciaran McCrisken wrote:
> Basically, I have 10 versions of a patch that generate a stream of
> integers using the counter and metro. These need to be outputted
> seperately to 10 faders in the main patch window. I’ve tried all the
> ideas mentioned but I can’t seem to get round it.

You can also send it directly to the faders if you name them and use
pattrforward…

If this is all too confusing, sit back and redo the tutorials, don’t be
harsh to yourself, some things (like in music) do need their own time,
especially if you learn an instrument, and learning Max is like learning
an instrument: practice, practice, practice…

Stefan


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


December 13, 2006 | 11:59 am

Does this help?

mainpatch.pat:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 144 210 56 9109513 target 0 , $1;
#P newex 144 279 132 9109513 pack 0 0 0 0 0 0 0 0 0 0;
#P user multiSlider 144 316 132 44 0. 100. 10 2665 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P toggle 144 188 15 0;
#P newex 144 242 131 9109513 poly~ polypatch 10;
#P comment 25 212 115 9109513 target 0 to start all metros;
#P connect 2 0 5 0;
#P connect 5 0 1 0;
#P connect 1 0 4 0;
#P connect 4 0 3 0;
#P connect 1 1 4 1;
#P connect 1 2 4 2;
#P connect 1 3 4 3;
#P connect 1 4 4 4;
#P connect 1 5 4 5;
#P connect 1 6 4 6;
#P connect 1 7 4 7;
#P connect 1 8 4 8;
#P connect 1 9 4 9;
#P window clipboard copycount 6;

polypatch.pat:

#P window setfont "Sans Serif" 9.;
#P number 43 279 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 105 312 144 9109513 route 1 2 3 4 5 6 7 8 9 10;
#P newex 105 286 44 9109513 pack 0 0;
#N out 10;
#P newobj 456 383 34 9109513 out 10;
#N out 9;
#P newobj 417 383 29 9109513 out 9;
#N out 8;
#P newobj 378 383 29 9109513 out 8;
#N out 7;
#P newobj 339 383 29 9109513 out 7;
#N out 6;
#P newobj 300 383 29 9109513 out 6;
#N out 5;
#P newobj 261 383 29 9109513 out 5;
#N out 4;
#P newobj 222 383 29 9109513 out 4;
#N out 3;
#P newobj 183 383 29 9109513 out 3;
#N out 2;
#P newobj 144 383 29 9109513 out 2;
#N out 1;
#P newobj 105 383 29 9109513 out 1;
#N in 1;
#P newobj 105 85 23 9109513 in 1;
#P newex 155 247 57 9109513 drunk 100 5;
#P toggle 105 126 15 0;
#P newex 105 175 45 9109513 metro 20;
#P comment 17 296 82 9109513 instance number;
#P newex 105 247 46 9109513 thispoly~;
#P comment 253 314 112 9109513 route to relevant output;
#P connect 18 9 16 0;
#P connect 18 8 15 0;
#P connect 18 7 14 0;
#P connect 18 6 13 0;
#P connect 18 5 12 0;
#P connect 18 4 11 0;
#P connect 18 3 10 0;
#P connect 18 2 9 0;
#P connect 3 0 1 0;
#P connect 3 0 5 0;
#P connect 18 1 8 0;
#P connect 5 0 17 1;
#P connect 18 0 7 0;
#P connect 17 0 18 0;
#P connect 1 0 19 0;
#P connect 1 0 17 0;
#P connect 4 0 3 0;
#P connect 6 0 4 0;
#P window clipboard copycount 20;


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