Classes | Server

Volume : Object

Model for the global volume of the synthesis server
Source: Volume.sc

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

Volume.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

.ampSynth

.close

.freeSynth

.isMuted

.max

.min

.numChannels

.numChannels = num

.numChans

.numChans =

From extension in /usr/local/share/SuperCollider/SCClassLibrary/deprecated/3.9/deprecated-3.9.sc

.numOutputChannels

.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;