SuperCollider CLASSES


Print the current output value of a UGen
Inherits from: UGen : AbstractFunction : Object


Print the current output value of a UGen, useful for debugging SynthDefs.

WARNING: Printing values from the Server in intensive for the CPU. Poll should be used for debugging purposes.

Class Methods

*ar (trig, in, label, trigid: -1)

*kr (trig, in, label, trigid: -1)



a non-positive to positive transition telling Poll to return a value


the signal you want to poll


a string or symbol to be printed with the polled value


if greater then 0, a '/tr' message is sent back to the client (similar to SendTrig)


its in signal (and is therefore transparent).

Inherited class methods

Instance Methods

Inherited instance methods



{,, 1, 1), \test) }.play(s);

// multichannel expansion:

{[10, 5]),, [1, 5], [1, 2]), [\test, \test2]) }.play(s);

// using the poll message:

{, 0, 1).poll(, \test2) }.play(s);

// if no arguments are given, the poll is done every 0.1 sec.
{, 1, 1).poll }.play(s);

// send a '/tr' message back to the client. This can be useful if the server runs on another
// computer than the client, i.e. the post messages by the server cannot be read locally.

o = OSCFunc({arg msg; msg.postln;}, '/tr', s.addr);

{,, 1, 1), \test2, 1234)}.play(s);
{, 0, 1).poll(, "test", 1234)}.play(s);;

// This example will kill the server (by outputting NaN).
// will help us spot why it's happening.
// Warning: You may need to reboot your server after running this.
var cutoff, son;
cutoff =, 0, 500, 500);
son =, cutoff);

// Using Poll to debug by spitting out a value if the output hits NaN<=0)||(son>=0), 0, 1), cutoff, "Cutoff value which causes NaN:");



// This example polls when someone hits the trigger
x = {|t_poll=0|
var minfreq, maxfreq, son;
minfreq =, 100, 110);
maxfreq =, 200, 220);

son = minfreq, maxfreq: maxfreq, mul: 0.1);, [minfreq, maxfreq], ["minfreq", "maxfreq"]);



x.set(\t_poll, 1); // Hit this whenever you want to know what the parameters are