|  | 
|  | Bias () noexcept=default | 
|  | 
| void | setBias (FloatType newBias) noexcept | 
|  | Sets the DC bias. 
 | 
|  | 
| FloatType | getBias () const noexcept | 
|  | Returns the DC bias. 
 | 
|  | 
| void | setRampDurationSeconds (double newDurationSeconds) noexcept | 
|  | Sets the length of the ramp used for smoothing gain changes. 
 | 
|  | 
| double | getRampDurationSeconds () const noexcept | 
|  | 
| void | prepare (const ProcessSpec &spec) noexcept | 
|  | Called before processing starts. 
 | 
|  | 
| void | reset () noexcept | 
|  | 
| template<typename SampleType > | 
| SampleType | processSample (SampleType inputSample) 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. 
 | 
|  | 
template<typename FloatType>
class juce::dsp::Bias< FloatType >
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 ;).