#N canvas 544 50 611 424 10; #X obj -333 24 adc~; #X obj 0 390 writesf~ 2; #X text -240 17 audio coming into delwrite |-------------|; #X text -240 27 audio in to [vd~] (2 seconds later) |---------------| ; #X text -56 63 so if you record the output of \; [vd~] you will record from 2 seconds ago \; until when you pressed record.; #X obj -144 296 delay 2000; #X msg -144 330 stop; #X text 10 143 start recording; #X text -238 296 wait 2 seconds; #X obj -259 346 loadbang; #X msg -259 374 \; pd dsp 1; #X text -350 323 turn on audio processing; #X msg -127 237 start; #X msg -144 145 open example.wav; #X obj -332 58 delwrite~ left_delay 2000; #X obj -312 85 delwrite~ right_delay 2000; #X text -331 172 this is called a "trigger" \; it outputs bangs (b) or it's \; input (a) from right to left; #X obj -1 329 vd~ left_delay; #X obj 56 362 vd~ right_delay; #X obj 55 279 sig~; #X msg 55 256 2000; #X obj -144 178 t b b b a; #X text 97 270 play back 2sec when \; banged; #X text -60 170 send command to [writesf~] and \; then start vd~ playing and then \; start [writesf~ recording \; and then wait 2 second (delay below) \; and then stop recording; #X connect 0 0 14 0; #X connect 0 1 15 0; #X connect 5 0 6 0; #X connect 6 0 1 0; #X connect 9 0 10 0; #X connect 12 0 1 0; #X connect 13 0 21 0; #X connect 17 0 1 0; #X connect 18 0 1 1; #X connect 19 0 17 0; #X connect 19 0 18 0; #X connect 20 0 19 0; #X connect 21 0 5 0; #X connect 21 1 12 0; #X connect 21 2 20 0; #X connect 21 3 1 0;