Forums > MaxMSP

line~ / data type problem

January 30, 2008 | 9:26 am

Hello,

I’m using line~ and I want to go from 11 to 22 in 3333 ms then close a gate.
Prior to send the message [11, 22 3333] I need to open the gate, so the message box goes through a [t list 1].

The problem is line~ doesn’t accept "11" as list even if it seems to pass the trigger object (print says ok).

Is there a solution ?

max v2;
#N vpatcher 1442 219 2042 619;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 28 173 32 196617 print;
#P newex 216 192 21 196617 t 0;
#P newex 136 216 29 196617 gate;
#P user number~ 136 248 175 263 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P user ezdac~ 321 99 365 132 0;
#P newex 117 105 29 196617 t l 1;
#P message 117 77 68 196617 11 , 22 3333;
#P newex 194 170 32 196617 line~;
#P connect 2 0 7 0;
#P connect 1 0 2 0;
#P fasten 6 0 5 0 221 212 141 212;
#P connect 2 1 5 0;
#P connect 5 0 4 0;
#P connect 0 0 5 1;
#P connect 2 0 0 0;
#P connect 0 1 6 0;
#P pop;


January 30, 2008 | 9:53 am

try this…

L

max v2;
#N vpatcher 10 59 610 459;
#P button 300 252 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 196 234 21 196617 t 1;
#P newex 276 252 21 196617 t 0;
#P newex 196 276 35 196617 gate~;
#P user number~ 196 308 235 323 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221
221 221 222 222 222 0 0 0;
#P user ezdac~ 381 159 425 192 0;
#P message 254 207 68 196617 11 , 22 3333;
#P newex 254 230 32 196617 line~;
#P connect 1 0 6 0;
#P connect 6 0 4 0;
#P fasten 5 0 4 0 281 272 201 272;
#P connect 4 0 3 0;
#P connect 0 0 4 1;
#P connect 1 0 0 0;
#P connect 0 1 5 0;
#P connect 0 1 7 0;
#P pop;


January 30, 2008 | 10:11 am

or …

max v2;
#N vpatcher 10 59 610 459;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 261 173 52 196617 route list;
#P button 309 261 15 0;
#P newex 217 206 29 196617 t i 1;
#P newex 283 261 21 196617 t 0;
#P newex 236 288 35 196617 gate~;
#P user number~ 236 320 275 335 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221
221 221 222 222 222 0 0 0;
#P user ezdac~ 388 166 432 199 0;
#P message 261 152 68 196617 11 , 22 3333;
#P newex 261 237 32 196617 line~;
#P connect 8 1 6 0;
#P connect 6 1 4 0;
#P fasten 5 0 4 0 288 282 241 282;
#P connect 4 0 3 0;
#P connect 1 0 8 0;
#P connect 8 0 0 0;
#P connect 6 0 0 0;
#P connect 0 0 4 1;
#P connect 0 1 5 0;
#P connect 0 1 7 0;
#P pop;


January 30, 2008 | 10:14 am

On 30 janv. 08, at 10:53, Lorenzo Pagliei wrote:

> try this…

Or even that one, because using gate here is not necessary

ej

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 300 182 58 196617 append 0 0;
#P newex 300 160 75 196617 route list;
#P user number~ 300 296 339 311 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221
221 221 222 222 222 0 0 0;
#P newex 300 221 32 196617 line~;
#P message 300 123 68 196617 11 , 22 3333;
#P user ezdac~ 403 222 447 255 0;
#P fasten 4 1 2 0 370 208;
#P connect 5 0 2 0;
#P connect 4 0 5 0;
#P connect 1 0 4 0;
#P connect 2 0 3 0;
#P window clipboard copycount 6;


January 30, 2008 | 3:02 pm

Emmanuel Jourdan schrieb:
> Or even that one, because using gate here is not necessary

Yes, why easy… ;-)

#P window setfont "Sans Serif" 9.;
#P user number~ 300 296 339 311 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221
221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 300 221 32 196617 line~;
#P message 300 182 88 196617 11 0 22 3333 0 0;
#P user ezdac~ 403 222 447 255 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P window clipboard copycount 4;


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


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