sclang: ServerShmInterface - try to avoid multiple destructor calls
[supercollider.git] / HelpSource / Classes / InRange.schelp
blob73fbf6a2be30be341f05d38c01f1d8d45311d98c
1 class:: InRange
2 summary:: Tests if a signal is within a given range.
3 related:: Classes/InRect, Classes/Schmidt
4 categories::  UGens>Maths
7 Description::
9 If  code::in::  is ≥  code::lo::  and ≤
10 code::hi::  output 1.0, otherwise output 0.0. Output is
11 initially zero.
14 classmethods::
16 method::ar, kr, ir
18 argument::in
20 Signal to be tested.
23 argument::lo
25 Low threshold.
28 argument::hi
30 High threshold.
33 Examples::
35 code::
37 Server.internal.boot;
39 { InRange.kr(SinOsc.kr(1, 0, 0.2), -0.15, 0.15)}.scope; // see the trigger
41 { InRange.kr(SinOsc.kr(1, 0, 0.2), -0.15, 0.15) * BrownNoise.ar(0.1)}.scope; // trigger noise Burst