Shawn Greenlee wrote:
hey there. forgive me a bit as I acclimate (long time MaxMSP user working in Pd).
In Max (Jitter) I've built a lot around jit.peek~ Often this involves reading a one plane matrix at points specified by two signal inputs. The matrix is a still image or video. One input signal species which row, the other input signal specifies which column and out comes an appropriate signal value.
attached patch does this with gridflow (for image stuff) and zexy (for tabdump). quality leaves much to be desired (no anti-aliasing / interpolation, and i only tried with 8-bit images...)
I see that in GEM there are pix_pix2sigs~ and pix_sig2pix~ which on first glance look promising.
So:
- Any pointers out there for treating image as sound in Pd,
specifically looking at sonification (not visualization or simultaneous audio-visual synthesis)?
- Any uses of pix_pix2sig~ or pix_sig2pix~ which I should look at
beyond the help files?
- Any strategies for treating each column of an image as an array (i.
e. the array contents update based on which column of an image is loaded)?
- Do I need something else beyond the current Pd-extended (like
GridFlow)?
Thanks! and all best, shawn
http://shawngreenlee.com seg@02909.com
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
#N canvas 0 0 450 300 10; #X obj 29 24 inlet~; #X obj 124 25 inlet~; #X obj 333 22 inlet; #X obj 124 84 table $0-x 64; #X obj 29 85 table $0-y 64; #X obj 29 63 tabsend~ $0-y; #X obj 124 63 tabsend~ $0-x; #X obj 28 170 table $0-z 64; #X obj 28 194 tabreceive~ $0-z; #X obj 27 221 outlet~; #X obj 216 61 bang~; #X obj 216 84 t b b; #X obj 216 109 tabdump $0-y; #X obj 320 109 tabdump $0-x; #X obj 320 132 #import ( 64 1 ); #X obj 216 132 #import ( 64 1 ); #X obj 216 159 @join -1; #X obj 216 208 #to_list; #X obj 216 231 list prepend 0; #X obj 216 257 s $0-z; #X obj 216 185 #store ( 1 1 1 # 0 ); #X connect 0 0 5 0; #X connect 1 0 6 0; #X connect 2 0 20 1; #X connect 8 0 9 0; #X connect 10 0 11 0; #X connect 11 0 12 0; #X connect 11 1 13 0; #X connect 12 0 15 0; #X connect 13 0 14 0; #X connect 14 0 16 1; #X connect 15 0 16 0; #X connect 16 0 20 0; #X connect 17 0 18 0; #X connect 18 0 19 0; #X connect 20 0 17 0;
#N canvas 0 0 450 404 10; #X obj 20 236 #peek~; #X obj 20 263 /~ 256; #X obj 20 289 hip~ 5; #X obj 11 321 dac~; #X obj 150 116 #in; #X obj 150 147 #rgb_to_greyscale; #X obj 150 183 #dim; #X obj 150 205 #to_list; #X obj 150 227 unpack f f f; #X obj 20 126 *~ 0.5; #X obj 21 149 +~ 0.5; #X obj 21 177 *~ 1; #X obj 82 125 *~ 0.5; #X obj 83 148 +~ 0.5; #X obj 83 176 *~ 1; #X obj 150 30 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 150 58 openpanel; #X msg 150 86 load $1; #X obj 239 225 #out window; #X obj 239 202 #greyscale_to_rgb; #X obj 83 103 osc~ 60.1; #X obj 21 104 osc~ 59.9; #X connect 0 0 1 0; #X connect 1 0 2 0; #X connect 2 0 3 1; #X connect 2 0 3 0; #X connect 4 0 5 0; #X connect 5 0 0 2; #X connect 5 0 6 0; #X connect 5 0 19 0; #X connect 6 0 7 0; #X connect 7 0 8 0; #X connect 8 0 11 1; #X connect 8 1 14 1; #X connect 9 0 10 0; #X connect 10 0 11 0; #X connect 11 0 0 0; #X connect 12 0 13 0; #X connect 13 0 14 0; #X connect 14 0 0 1; #X connect 15 0 16 0; #X connect 16 0 17 0; #X connect 17 0 4 0; #X connect 19 0 18 0; #X connect 20 0 12 0; #X connect 21 0 9 0;