2 summary:: Print the current output value of a demand rate UGen
3 categories:: UGens>Demand, UGens>Info
6 Print the current output value of a demand rate UGen.
7 WARNING:: Printing values from the Server in intensive for the CPU. Poll should be used for debugging purposes. ::
14 ugen to poll vaues from
18 active if 1, inactive if 0. can be a demand ugen (default: 1)
20 the print-out is in the form: code:: label: value block offset: offset. ::
22 structurally related: link::Classes/Poll::
27 { Duty.kr(0.5, 0, Dpoll(Dseries(0, 1, inf) * 2)); 0.0 }.play;
29 // posts only when cursor is in right half of the screen
30 { Duty.kr(0.5, 0, Dpoll(Dseries(0, 1, inf) * 2, run: MouseX.kr > 0.5)); 0.0 }.play;
33 { LFPulse.ar(Duty.kr(0.5, 0, Dpoll(Dseries(0, 1, inf) % 10 + 1 * 30, "value"))) * 0.1 }.play;
36 { Duty.ar(0.511, 0, Dpoll(Dseries(0, 1, inf) * 2)); 0.0 }.play;
38 // multichannel expansion:
42 var x = Duty.kr(0.5, 0,
43 Dpoll([Dseries(0, 1, inf), Dgeom(1, 1.1, inf)], ["first", "second"])
45 LFPulse.ar(100 + (x * 100)) * 0.1
49 { Duty.kr(0.5, 0, Dpoll(( Dseries(0, 1, inf) + _ ).dup, ("value" + _).dup)); 0.0 }.play;
52 // the message dpoll(label, run, trigid) is a shorthand:
54 { Duty.kr(0.5, 0, Dseries(0, 1, inf).dpoll); 0.0 }.play;
55 { Duty.ar(0.5, 0, SinOsc.ar(0.1).dpoll); 0.0 }.play;