#N canvas -8 -8 1366 686 10; #X obj 584 251 dac~; #X obj 584 231 *~; #X obj 602 214 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -257985 -1 -1 3700 1; #X obj 584 99 *~; #X obj 599 44 tgl 15 0 empty empty empty 17 7 0 10 -258113 -1 -1 0 1; #X obj 585 25 osc~ 440; #X obj 599 80 line~; #X msg 599 61 \$1 50; #X obj 605 121 env~; #X floatatom 605 140 5 0 0 0 - - -; #X obj 605 158 expr if($f1 > 1 \, 1 \, 0); #X floatatom 605 177 5 0 0 0 - - -; #X obj 1024 17 gemhead; #X obj 89 212 gemwin; #X msg 100 153 dimen 400 400; #X obj 1024 152 pix_film; #X obj 605 195 s play; #X msg 1032 114 auto \$1; #X obj 1032 95 r play; #X obj 1033 36 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -1 -1; #X obj 1033 53 openpanel; #X msg 1033 72 open \$1; #X obj 1024 226 pix_texture; #X obj 1069 171 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 100 172 create \, 1; #X msg 100 193 0 \, destroy; #X obj 1024 245 rectangle 4 4; #X msg 1069 188 1; #X obj 1069 207 s replay; #X obj 1069 133 r replay; #X text -41 364 This is the Gemwin. Click "create \, 1" to start rendering to the Gem window \, and "0 \, destroy" to stop.; #X obj 100 134 loadbang; #X text 902 361 This is the Gem render tree. Click on the green bang to open your video. pix_film doesn't loop when in auto mode \, so to make it loop \, we cheat a little bit.; #X text 903 401 When the film has gotten to the last frame \, it outputs a bang. We use that bang to send a 1 (one) to [s replay] \, which goes into the cold inlet of [pix_film]. This inlet is to play from the current frame \, in our case \, frame 1 \, the beginning.; #X text 902 470 [r play] is taken from the audio tree.; #X text 431 362 Here \, an [osc~] is the sound source. [env~] takes the RMS \, and into an [expr] \, which does this:; #X text 658 172 A; #X text 690 172 B; #X text 707 172 C; #X text 726 172 D; #X text 431 402 If $f1 (A \, the RMS) is more than one (B) \, output a one (C). If it's not \, output a zero (D).; #X text 432 437 This is sent into [s play] \, going to your Gem render tree.; #X text 433 463 Don't forget to turn up the yellow slider to a comfortable volume \, and use the red toggle to turn the sound on an off.; #X connect 1 0 0 0; #X connect 1 0 0 1; #X connect 2 0 1 1; #X connect 3 0 1 0; #X connect 3 0 8 0; #X connect 4 0 7 0; #X connect 5 0 3 0; #X connect 6 0 3 1; #X connect 7 0 6 0; #X connect 8 0 9 0; #X connect 9 0 10 0; #X connect 10 0 11 0; #X connect 11 0 16 0; #X connect 12 0 15 0; #X connect 14 0 13 0; #X connect 15 0 22 0; #X connect 15 2 23 0; #X connect 17 0 15 0; #X connect 18 0 17 0; #X connect 19 0 20 0; #X connect 20 0 21 0; #X connect 21 0 15 0; #X connect 22 0 26 0; #X connect 23 0 27 0; #X connect 24 0 13 0; #X connect 25 0 13 0; #X connect 27 0 28 0; #X connect 29 0 15 1; #X connect 31 0 14 0;