video synthesizer

Feb 20, 2009 at 7:26pm

video synthesizer

hei

i’m trying to build something that uses the histogram output of my built-in macbookpro camera as wavetables for wave~.

i managed to send histogram data to a multislider but it seems to have some gaps! i.e. values that are always 0.

maybe you could show me an example of a better way to do thisdoing, but in the meanwhile here’s my patch

thanks!
.klive

max v2;
#N vpatcher 190 62 1092 818;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 185 430 25 196617 iter;
#P newex 412 377 92 196617 buffer~ wave 128;
#P user multiSlider 347 122 466 189 0. 510. 128 2937 0 0 0 1 0 0 0;
#M frgb 255 174 173;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 255 255 255;
#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 182 398 158 196617 jit.spill @plane 2 @listlength 128;
#B color 5;
#P hidden number 163 290 35 9 0 2 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P hidden newex 46 397 105 196617 jit.matrix 4 char 256;
#P hidden message 166 339 65 196617 normalize $1;
#P hidden toggle 98 300 15 0;
#P hidden message 98 339 65 196617 autoclear $1;
#P hidden message 62 339 31 196617 clear;
#P user jit.pwindow 177 127 162 123 0 1 0 0 1 0;
#P hidden newex 50 366 313 196617 jit.histogram 4 long 256 @autoclear 1 @normalize 1 @normval 255;
#B color 5;
#P number 145 27 35 9 0 2 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 145 47 53 196617 vmode $1;
#P newex 145 74 152 196617 route vdevlist inputlist;
#P user jit.pwindow 15 127 162 122 0 1 0 0 1 0;
#P toggle 16 29 15 0;
#P newex 16 47 50 196617 metro 2;
#P message 104 47 38 196617 close;
#P message 69 47 32 196617 open;
#P newex 16 74 122 196617 jit.qt.grab 320 240;
#B color 5;
#N vpatcher 190 308 711 609;
#P window setfont “Fixedwidth Serif” 10.;
#P message 104 35 80 1441802 getinputlist;
#P message 28 35 73 1441802 getvdevlist;
#P outlet 60 222 15 0;
#P newex 230 123 50 1441802 t clear;
#P newex 400 123 50 1441802 t clear;
#P message 305 169 53 1441802 input $1;
#P user ubumenu 305 148 145 1441802 0 1 1 0;
#X prefix_set 0 0 0;
#P newex 305 123 92 1441802 prepend append;
#P newex 305 100 32 1441802 iter;
#P message 135 169 68 1441802 vdevice $1;
#P user ubumenu 135 148 145 1441802 0 1 1 0;
#X prefix_set 0 0
0;
#P newex 135 123 92 1441802 prepend append;
#P newex 135 100 32 1441802 iter;
#P inlet 135 74 15 0;
#P inlet 305 74 15 0;
#P fasten 9 0 12 0 310 203 65 203;
#P fasten 5 0 12 0 140 203 65 203;
#P fasten 14 0 12 0 109 136 65 136;
#P fasten 13 0 12 0 33 136 65 136;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P fasten 11 0 4 0 235 144 140 144;
#P connect 4 0 5 0;
#P fasten 1 0 11 0 140 97 235 97;
#P connect 0 0 6 0;
#P connect 6 0 7 0;
#P connect 7 0 8 0;
#P fasten 10 0 8 0 405 144 310 144;
#P connect 8 0 9 0;
#P fasten 0 0 10 0 310 97 405 97;
#P pop;
#P newobj 145 98 92 196617 p device_input;
#P connect 5 0 4 0;
#P connect 4 0 1 0;
#P hidden fasten 3 0 1 0 109 68 21 68;
#P hidden connect 2 0 1 0;
#P hidden connect 8 0 1 0;
#P hidden fasten 0 0 1 0 150 121 12 121 12 69 21 69;
#P hidden connect 1 0 6 0;
#P hidden fasten 10 0 16 0 55 412 51 412;
#P hidden connect 6 0 10 0;
#P hidden fasten 12 0 10 0 67 360 55 360;
#P hidden fasten 13 0 10 0 103 360 55 360;
#P hidden fasten 15 0 10 0 171 360 55 360;
#P hidden connect 14 0 13 0;
#P connect 9 0 8 0;
#P hidden connect 1 1 7 0;
#P connect 7 0 0 0;
#P hidden connect 17 0 15 0;
#P hidden connect 16 0 11 0;
#P connect 11 0 18 0;
#P connect 18 0 21 0;
#P fasten 7 1 0 1 221 94 232 94;
#P connect 18 0 19 0;
#P pop;

#42427
Feb 20, 2009 at 9:16pm

Im not sure exactly, but if you open the help file it appears that there are dips no matter what you run into the histogram… maybe a glitch in jit.histogram??

#151863

You must be logged in to reply to this topic.