linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / Trig.schelp
blob1253658978fe137eb32604deeb026c51bb397b2b
1 class:: Trig
2 summary:: Timed trigger.
3 related:: Classes/Trig1
4 categories::  UGens>Triggers
7 Description::
9 When a nonpositive to positive transition occurs at the input, Trig
10 outputs the level of the triggering input for the specified duration,
11 otherwise it outputs zero.
14 classmethods::
16 method::ar, kr
18 argument::in
20 Trigger. Trigger can be any signal. A trigger happens when the
21 signal changes from non-positive to positive.
24 argument::dur
26 Duration of the trigger output.
29 Examples::
31 code::
33 { Trig.ar(Dust.ar(1), 0.2) * FSinOsc.ar(800, 0.5) }.play
35 { Trig.ar(Dust.ar(4), 0.1) }.play