hello,
I made an other oscilloscope wih gem. using pack~ to get audio data and repeat to display them.
you nead any / zl / zexy to use this patch.
james tittle wrote:
On Feb 3, 2005, at 11:50 AM, Thoralf Schulze wrote:
this is probably better ... anyone up for a spectrum analyzer? :-)
it should not be much harder (?)
...this is cool, but it's incredibly slow on OSX, and I think that's for the same reason that most of the pmpd example's seem slow: they use [sphere]
...I replaced [sphere 0.2] with [cube 0.2] and got a huge speed up, which leads me to put the gem sphere object on the to-fix list :-\
as cgc sugested, you can also use model and load a sphere in the model.
cyrille
jamie
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
#N canvas 845 583 450 300 10; #N canvas 428 247 645 555 osc~ 0; #X obj 82 14 block~ 512; #X obj 82 67 pack~; #X obj 82 42 inlet~; #X text 171 15 change block size; #X text 137 67 pack 512 audio value in a list; #X obj 131 360 zl slice 2; #X obj 66 160 t a b; #X msg 126 205 0; #X obj 96 229 f; #X obj 66 184 repeat 511; #X obj 112 254 + 1; #X obj 161 406 unpack f f; #X obj 20 524 curve 2; #X obj 66 137 l; #X obj 36 114 t a b; #X obj 20 418 any; #X obj 66 205 t a b; #X obj 131 383 t b a; #X obj 36 91 gemhead; #X obj 66 339 zl slice 0; #X obj 212 427 / 64; #X obj 212 449 - 4; #X obj 292 427 / 64; #X obj 292 449 - 4; #X msg 161 491 $2 $1 0; #X obj 241 470 pack f f; #X obj 161 469 pack f f; #X msg 241 493 $2 $1 0; #X text 140 42 audio input; #X text 96 94 wait for the gem rendering images (to comput position only when a frame is rendered : (you can change gem framerate...); #X text 162 175 repeat as many time as element in the list (as to be change if you change the block~ ); #X text 155 240 where are we in this list; #X text 222 347 get only 2 elements in this list to the good position ; #X text 238 381 render a line for each elements; #X text 348 439 compute the position of the line; #X connect 1 0 13 1; #X connect 2 0 1 0; #X connect 5 0 17 0; #X connect 6 0 9 0; #X connect 6 1 7 0; #X connect 7 0 8 1; #X connect 8 0 10 0; #X connect 8 0 19 1; #X connect 8 0 20 0; #X connect 9 0 16 0; #X connect 10 0 8 1; #X connect 10 0 22 0; #X connect 11 0 26 0; #X connect 11 1 25 0; #X connect 13 0 6 0; #X connect 14 0 15 1; #X connect 14 1 13 0; #X connect 15 0 12 0; #X connect 16 0 19 0; #X connect 16 1 8 0; #X connect 17 0 15 0; #X connect 17 1 11 0; #X connect 18 0 14 0; #X connect 19 1 5 0; #X connect 20 0 21 0; #X connect 21 0 26 1; #X connect 22 0 23 0; #X connect 23 0 25 1; #X connect 24 0 12 1; #X connect 25 0 27 0; #X connect 26 0 24 0; #X connect 27 0 12 2; #X restore 138 152 pd osc~; #X obj 137 120 osc~ 333; #X msg 218 121 reset , create , 1; #X msg 224 143 0 , destroy; #X floatatom 137 97 5 0 0 0 - - -; #X obj 218 165 gemwin 60; #X msg 216 83 ; pd dsp 1 ;; #X obj 80 97 noise~; #X obj 80 120 *~ 0.1; #X connect 1 0 0 0; #X connect 2 0 5 0; #X connect 3 0 5 0; #X connect 4 0 1 0; #X connect 7 0 8 0; #X connect 8 0 0 0;