Minim
core | ugens | analysis
 

Controller

getGain

Description

Returns the current gain. If a gain control is not available, this returns 0. Note that the gain is not the same thing as the level() of an AudioBuffer! Gain describes the current volume of the sound in decibels, which is a logarithmic, rather than linear, scale. A gain of 0dB means the sound is not being amplified or attenuated. Negative gain values will reduce the volume of the sound, and positive values will increase it.

See: http://wikipedia.org/wiki/Decibel

Signature

float getGain()

Returns

float: the current gain or zero if a gain control is unavailable. the gain is expressed in decibels.

Related

setGain ( )
shiftGain ( )

Example

None available

Usage

Web & Application