OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_Bias.h>
Public Member Functions | |
void | setBias (FloatType newBias) noexcept |
FloatType | getBias () const noexcept |
void | setRampDurationSeconds (double newDurationSeconds) noexcept |
double | getRampDurationSeconds () const noexcept |
void | prepare (const ProcessSpec &spec) noexcept |
void | reset () noexcept |
template<typename SampleType > | |
SampleType | processSample (SampleType inputSample) const noexcept |
template<typename ProcessContext > | |
void | process (const ProcessContext &context) noexcept |
Adds a DC offset (voltage bias) to the audio samples.
This is a useful preprocessor for asymmetric waveshaping when a waveshaper is bookended by a bias on input and a DC-offset removing high pass filter on output.
This is an extremely simple bias implementation that simply adds a value to a signal. More complicated bias behaviours exist in real circuits - for your homework ;).
Definition at line 44 of file juce_Bias.h.
|
inlinenoexcept |
Returns the DC bias
Definition at line 63 of file juce_Bias.h.
|
inlinenoexcept |
Definition at line 75 of file juce_Bias.h.
|
inlinenoexcept |
Called before processing starts
Definition at line 79 of file juce_Bias.h.
|
inlinenoexcept |
Processes the input and output buffers supplied in the processing context.
Definition at line 101 of file juce_Bias.h.
|
inlinenoexcept |
Returns the result of processing a single sample.
Definition at line 93 of file juce_Bias.h.
|
inlinenoexcept |
Definition at line 85 of file juce_Bias.h.
|
inlinenoexcept |
Sets the DC bias
newBias | DC offset in range [-1, 1] |
Definition at line 53 of file juce_Bias.h.
|
inlinenoexcept |
Sets the length of the ramp used for smoothing gain changes.
Definition at line 66 of file juce_Bias.h.