Minim Gain Fields Methods Gain is another way of expressing an increase or decrease in the volume of something. It is represented in decibels (dB), which is a logorithmic scale. A gain of 0 dB means that you are not changing the volume of the incoming signal at all, positive gain boosts the signal and negative gain decreases it. You can effectively silence the incoming signal by setting the gain to something like -60. Constructors ```Construct a Gain UGen with a value of 0 dB, which means it will not change the volume of something patched to it. Gain() Construct a Gain with the specific dBvalue. 0 dB is no change to incoming audio, positive values make it louder and negative values make it softer. Gain(float dBvalue) ``` Parameters dBvalue — float: the amount of gain to apply to the incoming signal Related Example ```/** This is an example of how to use a Gain UGen to control the gain of an audio file. Gain is expressed in dB, which is short for decibels, and is way that people often think about the level of digital audio. dB is a change in amplitude relative to whatever the incoming amplitude is, so a gain value of 0 will not change the incoming amplitude at all. Positive gain values increase the amplitude of the incoming signal and negative values decrease it. It's not really possible to completely silence incoming audio with a Gain UGen, but you can set the gain value so low that you effectively silence the audio.

dB is a logarithmic scale, so while 0 dB will not change the amplitude of incoming audio at all, 6 dB will approximately double the amplitude and -6 dB will approximately halve it.

Move the mouse left and right to change the gain of the looping audio file. All the way left is -6 dB, all the way right is +6 dB.