SuperCollider CLASSES

Volume

Model for the global volume of the synthesis server
Inherits from: Object

Description

Internally used by Server. When volume value != 0 dB or muted, a server's volume object will create a synth for controlling the volume on the main outputs for the number of channels given.

Class Methods

*new (server, startBus: 0, numChannels, min: -90, max: 6, persist: false)

Create and return a new instance of Volume for a given server, ranging from startBus over numChans (usually the server's number of output bus channels).

Arguments:

server

a server

startBus

start bus

numChannels

number of channels

min

minimum volume in decibel

max

minimum volume in decibel

persist

whether to persist a reset

Inherited class methods

Instance Methods

-mute

mute output

-unmute

unmute output

-volume

-volume = aVolume

set the volume (in db)

-lag

-lag = aLagTime

set the lag time that dampens volume changes

-setVolumeRange (argMin, argMax)

set the volume range

-gui (window, bounds)

create a volume gui.

Inherited instance methods

Undocumented instance methods

-close

-isMuted

-max

-min

-numChannels

-numChannels = num

-numChans

-numChans =

-persist

-reset

-sendSynthDef

-server

-startBus

-updateSynth

-window

-window = value

Examples

v = s.volume;

v.min;
v.max;
v.volume = rrand(-50, 5);
v.setVolumeRange(-90, 8);
v.mute;
v.unmute;

// separate window
v.gui;