Home | History | Annotate | Download | only in lib_src

Lines Matching full:gain

155 /* the max positive gain used in the synth for EG1 */
168 We implement the EG1 using a linear gain value, which means that the
169 attack segment is handled by incrementing (adding) the linear gain.
171 the Attack portion. For Decay, Sustain, and Release, the gain is
173 a linear scale. Because we use a linear gain for EG1, we implement
180 #define MULT_EG1_EG1(gain,damping) /*lint -e(704) <avoid divide for performance>*/ \
183 ((EAS_I32)(gain)) * ((EAS_I32)(damping)) \
199 #define MULT_EG1_EG1_X2(gain,damping) /*lint -e(702) <avoid divide for performance>*/ \
202 ((EAS_I32)(gain)) * ((EAS_I32)(damping)) \
237 For gain, the LFO generates a value that modulates in terms
238 of dB. However, we use a linear gain value, so we must convert
239 the LFO value in dB to a linear gain. Normally, we would use
240 linear gain = 10^x, where x = LFO value in dB / 20.
252 So, in order to convert the LFO gain value in dB to something
253 that our existing 2^x approximation can use, multiply the LFO gain
256 The divide by 20 helps convert dB to linear gain, and we might
262 /* use LFO_GAIN_TO_CENTS to convert the LFO gain value to cents */
347 * Transform log value to linear gain multiplier using piece-wise linear
351 * nGain - log scale value in 20.10 format. Even though gain is normally
353 * the need for saturation checking when combining gain values.
368 * Transform volume control in 1dB increments to gain multiplier