#N canvas 91 310 620 503 12;
#X obj 36 259 osc~ 220;
#X obj 36 288 *~;
#X obj 37 374 *~;
#X obj 37 403 dac~;
#X obj 58 326 hsl 128 15 0 1 0 0 empty empty volume -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 55 346 lop~ 100;
#X msg 498 417 \; pd dsp 1;
#X obj 498 384 loadbang;
#X obj 54 220 EM_adsr~ 150 100 0.5 500;
#X obj 54 150 EM_makegate 2000;
#X text 74 72 <-inlet1: trigger (bang);
#X obj 54 75 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 166 98 hsl 128 15 100 5000 0 0 empty empty empty -2 -8 0 10
-262144 -1 -1 0 1;
#X floatatom 163 123 5 0 0 0 - - -;
#X text 301 95 <-inlet2 & argument1: duration (float \, 0-);
#X obj 54 179 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 77 178 <-output: gate (int \, 0 or 1);
#X text 32 437 Eito Murakami - EM_makegate (06/21/21);
#X text 38 14 EM_makegate is a gate generator. Sending a bang to the
first inlet resets and opens the gate. The output is 0 or 1;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 3 1;
#X connect 4 0 5 0;
#X connect 5 0 2 1;
#X connect 7 0 6 0;
#X connect 8 0 1 1;
#X connect 9 0 15 0;
#X connect 11 0 9 0;
#X connect 12 0 13 0;
#X connect 13 0 9 1;
#X connect 15 0 8 0;
