XML Feeds

.

[maxmsp] Multislider query

volker böhm vboehm at gmx.ch
Wed Jun 27 00:15:06 MDT 2007


On 27 Jun 2007, at 05:20, Chris Muir wrote:

> At 11:51 PM +0200 6/26/07, Jeremy Bernstein wrote:
>> You could bang it and count the number of items in the list.
>
> Wow. So obvious, yet I didn't consider that. It presents some  
> complications in my current project, but can be made to work.

in addition to what jeremy said, you could use [grab] to "grab" the  
output list from multislider in order to count it (zl len), so asking  
for the length won't interfere with the rest of the program flow.  
maybe this makes things easier (see below).
cheers,
volker.

#P button 88 73 20 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 88 101 30 196617 grab;
#P number 88 302 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 88 276 34 196617 zl len;
#P number 151 302 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 151 276 34 196617 zl len;
#P user multiSlider 151 133 193 132 -1. 1. 20 2681 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 comment 115 76 100 196617 length?;
#P connect 7 0 6 0;
#P connect 6 0 4 0;
#P connect 6 1 1 0;
#P connect 4 0 5 0;
#P connect 2 0 3 0;
#P connect 1 0 2 0;
#P window clipboard copycount 8;


More information about the maxmsp mailing list