|
LMMS
|
#include <juce_Gain.h>
Public Member Functions | |
| Gain () noexcept=default | |
| void | setGainLinear (FloatType newGain) noexcept |
| void | setGainDecibels (FloatType newGainDecibels) noexcept |
| FloatType | getGainLinear () const noexcept |
| FloatType | getGainDecibels () const noexcept |
| void | setRampDurationSeconds (double newDurationSeconds) noexcept |
| double | getRampDurationSeconds () const noexcept |
| bool | isSmoothing () const noexcept |
| void | prepare (const ProcessSpec &spec) noexcept |
| void | reset () noexcept |
| template<typename SampleType> | |
| SampleType JUCE_VECTOR_CALLTYPE | processSample (SampleType s) noexcept |
| template<typename ProcessContext> | |
| void | process (const ProcessContext &context) noexcept |
Private Attributes | |
| SmoothedValue< FloatType > | gain |
| double | sampleRate = 0 |
| double | rampDurationSeconds = 0 |
Applies a gain to audio samples as single samples or AudioBlocks.
@tags{DSP}
|
defaultnoexcept |
|
inlinenoexcept |
Returns the current gain in decibels.
|
inlinenoexcept |
Returns the current gain as a linear value.
|
inlinenoexcept |
Returns the ramp duration in seconds.
|
inlinenoexcept |
Returns true if the current value is currently being interpolated.
|
inlinenoexcept |
Called before processing starts.
|
inlinenoexcept |
Processes the input and output buffers supplied in the processing context.
|
inlinenoexcept |
Returns the result of processing a single sample.
|
inlinenoexcept |
Resets the internal state of the gain
|
inlinenoexcept |
Applies a new gain as a decibel value.
|
inlinenoexcept |
Applies a new gain as a linear value.
|
inlinenoexcept |
Sets the length of the ramp used for smoothing gain changes.
|
private |
|
private |
|
private |