linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / Gate.schelp
blob99d1c88f6bb3d53bb244cf25a5f4e145824abc04
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 Trigger. Trigger can be any signal. A trigger happens when the
22 signal changes from non-positive to positive.
25 Examples::
27 code::
29 Server.internal.boot;
30 // Control rate so as not to whack your speakers with DC
31 { Gate.kr(WhiteNoise.kr(1, 0), LFPulse.kr(1.333, 0.5))}.scope(zoom: 20);