|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Applies a gain to audio samples as single samples or AudioBlocks. More...
#include "juce_Gain.h"
Public Member Functions | |
| void | setGainLinear (FloatType newGain) noexcept |
| Applies a new gain as a linear value. | |
| void | setGainDecibels (FloatType newGainDecibels) noexcept |
| Applies a new gain as a decibel value. | |
| FloatType | getGainLinear () const noexcept |
| Returns the current gain as a linear value. | |
| FloatType | getGainDecibels () const noexcept |
| Returns the current gain in decibels. | |
| void | setRampDurationSeconds (double newDurationSeconds) noexcept |
| Sets the length of the ramp used for smoothing gain changes. | |
| double | getRampDurationSeconds () const noexcept |
| Returns the ramp duration in seconds. | |
| bool | isSmoothing () const noexcept |
| Returns true if the current value is currently being interpolated. | |
| void | prepare (const ProcessSpec &spec) noexcept |
| Called before processing starts. | |
| void | reset () noexcept |
| Resets the internal state of the gain. | |
| template<typename SampleType > | |
| SampleType JUCE_VECTOR_CALLTYPE | processSample (SampleType s) noexcept |
| Returns the result of processing a single sample. | |
| template<typename ProcessContext > | |
| void | process (const ProcessContext &context) noexcept |
| Processes the input and output buffers supplied in the processing context. | |
Applies a gain to audio samples as single samples or AudioBlocks.
@tags{DSP}
Definition at line 35 of file juce_Gain.h.
|
noexcept |
Returns the current gain in decibels.
Definition at line 51 of file juce_Gain.h.
|
noexcept |
Returns the current gain as a linear value.
Definition at line 48 of file juce_Gain.h.
|
noexcept |
Returns the ramp duration in seconds.
Definition at line 64 of file juce_Gain.h.
|
noexcept |
Returns true if the current value is currently being interpolated.
Definition at line 67 of file juce_Gain.h.
|
noexcept |
Called before processing starts.
Definition at line 71 of file juce_Gain.h.
|
noexcept |
Processes the input and output buffers supplied in the processing context.
Definition at line 94 of file juce_Gain.h.
|
noexcept |
Returns the result of processing a single sample.
Definition at line 87 of file juce_Gain.h.
|
noexcept |
Resets the internal state of the gain.
Definition at line 78 of file juce_Gain.h.
|
noexcept |
Applies a new gain as a decibel value.
Definition at line 45 of file juce_Gain.h.
|
noexcept |
Applies a new gain as a linear value.
Definition at line 42 of file juce_Gain.h.
|
noexcept |
Sets the length of the ramp used for smoothing gain changes.
Definition at line 54 of file juce_Gain.h.