Forums > MaxMSP

techno~UI headaches.


cw
December 23, 2007 | 4:25 am

does anyone understand how the pattrstorage data for the technoui object is handled/organized? It doesnt seem to make much sense.

I am looking to control the technoui object with lists, but this doesnt work so well so far:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden newex 192 339 66 196617 loadmess 16;
#P comment 370 181 121 196617 this doesnt work. ideas?!;
#P message 260 197 87 196617 amplitude $1 $2 ,;
#P newex 260 171 50 196617 listfunnel;
#B color 5;
#P user multiSlider 258 68 237 86 -1. 1. 16 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 newex 260 222 61 196617 zl group 48;
#P message 20 285 83 196617 amplitude $1 $2;
#P user jsui 25 404 486 115 3 0 0 technoui.js;
#P objectname dave;
#P newex 14 172 50 196617 listfunnel;
#B color 5;
#P user multiSlider 15 69 237 86 -1. 1. 16 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 132 382 142 196617 set the number of steps;
#P number 42 382 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 78 382 50 196617 length $1;
#P window linecount 3;
#P comment 36 194 163 196617 this works , yet painfully slow , as it would seem technoUI has to redraw for every message;
#P hidden connect 13 0 2 0;
#P connect 8 0 6 0;
#P connect 10 0 11 0;
#P connect 11 0 8 0;
#P connect 9 0 10 0;
#P connect 7 0 6 0;
#P connect 1 0 6 0;
#P connect 5 0 7 0;
#P connect 4 0 5 0;
#P connect 2 0 1 0;
#P window clipboard copycount 14;

using pattr storage with technoUI is fast, but I cant make any sense of its data structure…


December 23, 2007 | 1:14 pm



cw
December 23, 2007 | 8:37 pm

thanks, it works great! I’m beginning to get the hang of JS…



cw
December 24, 2007 | 2:34 am

and the real insanity begins…

technoUI to jitter matrix wrapper! yay! it records a techno~ sequence as a jitter matrix for further mutation. it records everything except event time-position as i haven’t yet decided the most appropriate way to implement this in a matrix.. (if you start cutting up the matrix wierd things will happen if you just use the position values straight from technoui).

also, this requires using the attached version of technoui.

enjoy!

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P hidden newex 252 159 48 196617 t draw b;
#P message 206 208 126 196617 bounce matrix to technoui;
#P hidden newex 138 142 53 196617 route dim;
#P message 205 65 40 196617 getdim;
#P message 205 84 35 196617 write;
#P toggle 211 185 15 0;
#P newex 317 282 29 196617 gate;
#N vpatcher 131 175 731 575;
#P origin 0 -10;
#P window setfont "Sans Serif" 9.;
#P newex 249 41 110 196617 jit.cycle 5;
#P newex 315 98 79 196617 vexpr (1./$f1);
#P newex 408 96 79 196617 vexpr (1./$f1);
#P newex 232 96 79 196617 prepend curves;
#P newex 408 118 79 196617 prepend decays;
#P newex 315 118 81 196617 prepend attacks;
#P newex 50 95 80 196617 prepend pitches;
#P newex 134 95 96 196617 prepend amplitudes;
#P inlet 249 21 15 0;
#P outlet 239 164 15 0;
#P connect 9 0 3 0;
#P connect 9 1 2 0;
#P connect 9 2 6 0;
#P connect 5 0 0 0;
#P connect 4 0 0 0;
#P connect 6 0 0 0;
#P connect 2 0 0 0;
#P connect 3 0 0 0;
#P connect 1 0 9 0;
#P connect 9 3 8 0;
#P connect 8 0 4 0;
#P connect 9 4 7 0;
#P connect 7 0 5 0;
#P pop;
#P hidden newobj 1 195 99 196617 p matrixToTechnoui;
#N vpatcher 30 89 630 489;
#P window setfont "Sans Serif" 9.;
#P newex 48 147 27 196617 t b l;
#P message 319 96 63 196617 $1 4 val $2;
#P message 252 96 63 196617 $1 3 val $2;
#P message 185 96 63 196617 $1 2 val $2;
#P message 118 96 63 196617 $1 1 val $2;
#P newex 48 127 78 196617 prepend setcell;
#P message 48 96 63 196617 $1 0 val $2;
#P newex 48 70 347 196617 route pitch amplitude curve attack decay;
#P inlet 48 50 15 0;
#P outlet 48 179 15 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 8 0 4 0;
#P connect 7 0 4 0;
#P connect 6 0 4 0;
#P connect 5 0 4 0;
#P connect 3 0 4 0;
#P connect 4 0 9 0;
#P connect 9 1 0 0;
#P connect 9 0 0 0;
#P connect 2 1 5 0;
#P connect 2 2 6 0;
#P connect 2 3 7 0;
#P connect 2 4 8 0;
#P pop;
#P newobj 336 307 97 196617 p technouiToMatrix;
#P hidden message 147 167 50 196617 dim $1 5;
#P hidden newex 1 169 55 196617 zl group 5;
#P hidden newex 1 147 43 196617 jit.spill;
#P button 186 87 15 0;
#P message 204 46 30 196617 read;
#P newex 187 105 87 196617 jit.matrix techno;
#P hidden newex 1083 423 53 196617 autopattr;
#P objectname u486000098;
#P user jit.pwindow 335 82 266 98 0 1 0 0 1 0;
#P newex 335 332 153 196617 jit.matrix techno 1 float32 5 5;
#P number 211 143 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden message 93 167 50 196617 length $1;
#P user jsui 336 182 265 91 1 0 0 technoui2.js;
#P window linecount 2;
#P comment 227 181 100 196617 record changes to matrix;
#P window linecount 1;
#P comment 250 146 100 196617 sequence length;
#P window linecount 3;
#P comment 465 286 100 196617 colin made this. with much help from Emmanuel Jourdan.;
#P hidden connect 5 0 13 1;
#P hidden connect 5 0 4 0;
#P hidden connect 5 0 14 0;
#P hidden connect 23 0 3 0;
#P hidden connect 23 1 11 0;
#P hidden connect 22 0 23 0;
#P hidden fasten 10 0 9 0 209 83 192 83;
#P hidden connect 21 0 5 0;
#P hidden connect 9 1 21 0;
#P hidden connect 9 0 12 0;
#P connect 20 0 9 0;
#P connect 19 0 9 0;
#P hidden fasten 18 0 17 0 216 272 322 272;
#P connect 17 0 15 0;
#P connect 3 0 17 1;
#P hidden connect 13 0 16 0;
#P hidden connect 16 0 3 0;
#P connect 15 0 6 0;
#P hidden connect 4 0 3 0;
#P hidden connect 6 0 7 0;
#P connect 11 0 9 0;
#P hidden connect 12 0 13 0;
#P hidden fasten 14 0 6 0 152 329 340 329;
#P window clipboard copycount 24;


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