Forums > Jitter

float into message for line

April 18, 2008 | 7:36 pm

Hey lsit, long time, how do I get a float into a message for use in line to create some interesting camera movements?

heres the patch

max v2;
#N vpatcher 25 70 625 470;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 126 82 54 9109513 append set;
#P newex 49 107 57 9109513 random 360;
#P newex 126 55 61 9109513 pak set 0. 0.;
#P message 126 110 34 9109513 $1 , $2;
#P newex 158 143 40 9109513 line;
#P newex 116 143 40 9109513 line;
#P newex 59 143 48 9109513 line $1 $2;
#P flonum 17 40 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 438 151 928 528;
#P origin 0 12;
#P button 55 315 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 55 293 41 9109513 togedge;
#P objectname >[1];
#P toggle 55 274 15 0;
#P outlet 55 335 15 0;
#P user ezadc~ 7 27 51 60 0;
#P inlet 236 27 15 0;
#P user umenu 55 27 164 9109543 1 64 43 1;
#X add fast (no ballistics);
#X add VU;
#X add DIN 45 406 (IEC PPM type IIb);
#X add BBC (IEC PPM type IIa);
#X add Nordic (IEC PPM type I);
#X add EBU Digital;
#P objectname umenu;
#P message 55 48 45 9109513 mode $1;
#P newex 55 215 23 9109513 abs;
#P newex 55 250 33 9109513 > 10.;
#P objectname >;
#P newex 55 147 27 9109513 t i i;
#P newex 55 185 27 9109513 -;
#P objectname -;
#P user levelmeter~ 55 73 128 64 20 0 0 0 -48 12 0 0 0 0 0;
#X brgb 240 240 240;
#X frgb 200 200 200;
#X rgb2 0 0 0;
#X rgb3 0 0 0;
#X rgb4 0 0 0;
#X rgb5 255 0 0;
#X rgb6 220 100 100;
#X rgb7 220 150 80;
#X rgb8 220 200 100;
#X rgb9 180 210 100;
#X markers 12 6 0 -6 -12 -24 -36 -48 48475280;
#X markersused 8;
#X done;
#P connect 6 0 5 0;
#P connect 8 1 0 0;
#P connect 8 0 0 0;
#P connect 5 0 0 0;
#P connect 0 0 2 0;
#P connect 2 1 1 0;
#P connect 1 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 10 0;
#P connect 10 0 11 0;
#P connect 11 0 12 0;
#P connect 12 0 9 0;
#P connect 2 0 1 1;
#P fasten 7 0 3 1 241 241 83 241;
#P pop;
#P newobj 17 63 43 9109513 p Attack;
#P newex 35 86 57 9109513 random 360;
#P flonum 193 172 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 157 172 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 121 172 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 85 172 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 85 203 102 9109513 pak rotate 0. 0. 0. 0.;
#P window linecount 3;
#P comment 319 74 100 9109513 howe do I get a float into a mesage to be used by line ?;
#P connect 8 0 7 0;
#P connect 7 0 6 0;
#P connect 7 0 14 0;
#P connect 2 0 9 0;
#P connect 12 0 9 0;
#P fasten 2 0 1 1 90 195 113 195;
#P connect 3 0 10 0;
#P connect 13 0 15 0;
#P connect 15 0 12 0;
#P fasten 3 0 1 2 126 195 136 195;
#P connect 14 0 13 1;
#P fasten 4 0 1 3 162 195 159 195;
#P connect 4 0 11 0;
#P connect 6 0 13 2;
#P fasten 5 0 1 4 198 195 182 195;
#P pop;



MIB
April 18, 2008 | 8:09 pm

here you go… this should get you started.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 255 120 40 196617 + 360.;
#P flonum 211 230 68 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 336 187 54 196617 append set;
#P newex 211 95 71 196617 random 360;
#P newex 211 152 54 196617 pack 0. 0.;
#P message 211 181 37 196617 $1 $2;
#P newex 211 205 40 196617 line 0.;
#P flonum 211 21 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 654 149 1144 526;
#P origin 0 12;
#P button 55 315 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 55 293 41 196617 togedge;
#P objectname >[1];
#P toggle 55 274 15 0;
#P outlet 55 335 15 0;
#P user ezadc~ 7 27 51 60 0;
#P inlet 236 27 15 0;
#P user umenu 55 27 164 196647 1 64 43 1;
#X add fast (no ballistics);
#X add VU;
#X add DIN 45 406 (IEC PPM type IIb);
#X add BBC (IEC PPM type IIa);
#X add Nordic (IEC PPM type I);
#X add EBU Digital;
#P objectname umenu;
#P message 55 48 45 196617 mode $1;
#P newex 55 215 23 196617 abs;
#P newex 55 250 33 196617 > 10.;
#P objectname >;
#P newex 55 147 27 196617 t i i;
#P newex 55 185 27 196617 -;
#P objectname -;
#P user levelmeter~ 55 73 128 64 20 0 0 0 -48 12 0 0 0 0 0;
#X brgb 240 240 240;
#X frgb 200 200 200;
#X rgb2 0 0 0;
#X rgb3 0 0 0;
#X rgb4 0 0 0;
#X rgb5 255 0 0;
#X rgb6 220 100 100;
#X rgb7 220 150 80;
#X rgb8 220 200 100;
#X rgb9 180 210 100;
#X markers 12 6 0 -6 -12 -24 -36 -48 0;
#X markersused 8;
#X done;
#P connect 6 0 5 0;
#P connect 5 0 0 0;
#P connect 8 0 0 0;
#P connect 8 1 0 0;
#P connect 0 0 2 0;
#P connect 2 1 1 0;
#P connect 1 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 10 0;
#P connect 10 0 11 0;
#P connect 11 0 12 0;
#P connect 12 0 9 0;
#P connect 2 0 1 1;
#P fasten 7 0 3 1 241 241 83 241;
#P pop 1;
#P newobj 211 44 43 196617 p Attack;
#P newex 255 73 71 196617 random 360;
#P window linecount 2;
#P comment 394 186 100 196617 set message won’t give you an output!!;
#P comment 298 121 100 196617 offset: so timegrain is never 0;
#P connect 2 0 11 0;
#P connect 11 0 7 1;
#P connect 3 0 8 0;
#P fasten 3 0 2 0 216 67 260 67;
#P connect 7 0 6 0;
#P connect 8 0 7 0;
#P connect 5 0 10 0;
#P connect 6 0 5 0;
#P connect 4 0 3 0;
#P window clipboard copycount 12;



MIB
April 18, 2008 | 9:24 pm

instead of "so timegrain is never 0" I should have said "so ramp time is never 0"…


April 19, 2008 | 12:26 am

Sweetness, thanx


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