Explicitly include a boost "windows" folder even on linux
[supercollider.git] / HelpSource / Classes / SendPeakRMS.schelp
blob5be047054cfd6a20f6b5340a8bc1637ad31ca069
1 CLASS:: SendPeakRMS
2 summary:: Track peak and power of a signal for GUI applications.
3 related:: Classes/Peak, Classes/PeakFollower, Classes/OSCFunc
4 categories::  UGens>Analysis>Amplitude
7 DESCRIPTION::
9 The SendPeakRMS unit generator computes peak and power of a signal and sends the
10 computed values back to the clients. It does not produce any output.
13 CLASSMETHODS::
15 private:: new1
18 method::ar, kr
20 Unlike with other unit generators, the code::ar:: and code::kr:: methods do not
21 specify the rate of the computation, but the granularity. When the SendPeakRMS ugen
22 is instantiated with code::kr::, the reply rate id quantized to control-rate
23 blocks.
25 argument::sig
27 The input signal.
29 argument::replyRate
31 Float or Integer. Specifies the number of replies that are sent to the clients
32 per second.
34 argument::peakLag
36 Float or Integer. Lag time, which is applied to the peak values. This option is
37 commonly used for GUI VU meters.
39 argument::cmdName
41 Symbol or String. Address pattern for reply message.
43 argument::replyID
45 Integer ID (similar to link::Classes/SendTrig::).
47 INSTANCEMETHODS::
48 private:: numOutputs, writeOutputSpecs
51 EXAMPLES::
53 code::
56         SendPeakRMS.kr(Dust.ar(20), 20, 3, "/replyAddress")
57 }.play;
61 o = OSCFunc({ |msg|
62         "rms: %, peak: %".format(msg[3], msg[4]).postln
63 }, '/replyAddress');
65 o.free;