#N canvas 332 24 886 518 10;
#N canvas 698 230 582 570 REFERENCE 0;
#X text 24 51 Summary: toggle a signal on/off without clicking.;
#X text 24 104 Inlet 0: audio signal to toggle;
#X text 24 144 Inlet 1: <float> Turn on/off the audio signal. Any non-zero
floats are treated as a 1 aka on.;
#X text 25 192 Outlet 0: toggled audio signal;
#X text 24 284 Description: This is just a convenience audio signal
[spigot]. It includes a 5 ms fade in/out to avoid clicks.;
#X text 24 364 See also: [spigot] [c_ead] [c_adsr] [c_adsrj];
#X text 24 435 Tags: Control \, Audio;
#X text 24 31 Name: [c_spigot];
#X text 25 222 Outlet 1: <float> 1 or 0 for [switch~] control. This
is useful in disabling DSP in the patch when the audio signal is turned
off.;
#X coords 0 -1 1 1 450 450 1 10 10;
#X restore 5 49 pd REFERENCE;
#X obj 5 19 cnv 15 450 20 empty empty empty 20 12 0 14 -261234 -66577
0;
#X text 468 52 Example:;
#X obj 610 295 soundoutput;
#X obj 655 198 tgl 15 0 empty empty on/off 0 -6 0 10 -262144 -1 -1
0 1;
#X obj 610 118 osc~ 440;
#X obj 610 152 *~ 0.1;
#X text 129 22 - toggle a signal without clicking;
#X obj 610 224 c_spigot;
#X obj 8 21 c_spigot;
#X text 479 479 rc-patches (https://github.com/danomatika/rc-patches)
- 2012;
#X obj 540 403 c_spigot 1;
#X text 483 374 creation arg: set state like [spigot];
#X text 664 427 second outlet can toggle DSP in the patch using [switch~]
, f 29;
#X obj 597 431 switch~;
#X connect 4 0 8 1;
#X connect 5 0 6 0;
#X connect 6 0 8 0;
#X connect 8 0 3 0;
#X connect 8 0 3 1;
#X connect 11 1 14 0;
