Forgot a help fix: Drag a dock's title bar, not divider, to reposition
[supercollider.git] / HelpSource / Classes / Gate.schelp
blob945406c685ee206dfa5e01f686ed6df75acad955
1 class:: Gate
2 summary:: Gate or hold.
3 related:: Classes/Latch
4 categories::  UGens>Triggers
7 Description::
9 Allows input signal value to pass when gate is positive, otherwise holds last value.
12 classmethods::
14 method::ar, kr
16 argument::in
17 The input signal.
19 argument::trig
21 Gate - can be any signal. The output is held fixed when this is non-positive.
24 Examples::
26 code::
28 Server.internal.boot;
29 // Control rate so as not to whack your speakers with DC
30 { Gate.kr(WhiteNoise.kr(1, 0), LFPulse.kr(1.333, 0.5))}.scope(zoom: 20);