SuperCollider CLASSES (extension)

TextVU
ExtensionExtension

display level of a UGen as a textual meter
Inherits from: UGen : AbstractFunction : Object

Description

This behaves similar to Poll but displays its output as a textual "VU meter" visualisation (ranging from -60 to 0 dB). The class also automatically inserts an Amplitude analysis into the chain (you can modify this by supplying a function to the ana argument). Also, internally it ONLY RUNS AT CONTROL RATE, although it can analyse ar or kr inputs (and passes them back out again).

Parameters not found in Poll:

width Number of characters used to display the meter. Cannot be modulated.

ana Analysis function (if nil, inserts an automatic amplitude analysis). Cannot be modulated.

reset If >0, resets the ugen's all-time-peak memory.

The result looks something like this:

Mic : XXXXXXXXXXXXXXX---|---- Line: XXXXXXXXXXXXXXXXXXXXXXX

Class Methods

Inherited class methods

Undocumented class methods

*ar (trig: 2, in, label, width: 21, reset: 0, ana)

*kr (trig: 2, in, label, width: 21, reset: 0, ana)

*new (trig: 2, in, label, width: 21, reset: 0, ana)

Instance Methods

Inherited instance methods

Examples

s.boot;
(
x = {
var son = SinOsc.ar(mul: SinOsc.ar(0.3).range(0,1) * Line.ar(0, 1, 20, doneAction: 2));
TextVU.ar(2, son, "Sin");
}.play;
)