A class that provides different kinds of audio distortion using wave-shaping.
More...
|
| Distortion () |
| Create a new distortion filter with the default input and output gains of 1 and hardness of 0. More...
|
|
| Distortion (Type newType) |
| Create a new distortion filter with the default input and output gains of 1 and hardness of 0. More...
|
|
| Distortion (const Distortion &other) |
| Create an exact copy of another distortion filter. More...
|
|
| ~Distortion () |
| Destroy this distortion filter and clean up any resources. More...
|
|
Distortion & | operator= (const Distortion &other) |
| Assign the state of another distortion filter to this one. More...
|
|
Type | getType () const |
| Return the type of distortion that this distortion filter is using. More...
|
|
void | setType (Type newType) |
| Return the type of distortion that this distortion filter is using. More...
|
|
Gain | getInputGain () const |
| Return the current linear input gain factor of this distortion filter. More...
|
|
Gain | getInputGainDB () const |
| Return the current input gain factor in decibels of this distortion filter. More...
|
|
void | setInputGain (Gain newInputGain) |
| Set the target linear input gain for this distortion filter. More...
|
|
void | setInputGainDB (Gain newDBInputGain) |
| Set the target input gain in decibels for this distortion filter. More...
|
|
Gain | getOutputGain () const |
| Return the current linear output gain factor of this distortion filter. More...
|
|
Gain | getOutputGainDB () const |
| Return the current output gain factor in decibels of this distortion filter. More...
|
|
void | setOutputGain (Gain newOutputGain) |
| Set the target linear output gain for this distortion filter. More...
|
|
void | setOutputGainDB (Gain newDBOutputGain) |
| Set the target output gain in decibels for this distortion filter. More...
|
|
Gain | getMix () const |
| Return the ratio of input signal to distorted signal sent to the output of the distortion effect. More...
|
|
void | setMix (Gain newMix) |
| Set the ratio of input signal to distorted signal sent to the output of the distortion effect. More...
|
|
Gain | getThreshold () const |
| Return the linear full-scale value that indicates the maximum distorted output signal level. More...
|
|
Gain | getThresholdDB () const |
| Return the logarithmic full-scale value that indicates the maximum distorted output signal level. More...
|
|
void | setThreshold (Gain newThreshold) |
| Set the linear full-scale value that indicates the maximum distorted output signal level. More...
|
|
void | setThresholdDB (Gain newThresholdDB) |
| Set the logarithmic full-scale value that indicates the maximum distorted output signal level. More...
|
|
Float | getHardness () const |
| Return the current hardness of this distortion filter's clipping function. More...
|
|
void | setHardness (Float newThreshold) |
| Set the hardness of this distortion filter's clipping function. More...
|
|
Bool | getLowPassIsEnabled () const |
| Return whether or not this distortion filter's low pass filter is enabled. More...
|
|
void | setLowPassIsEnabled (Bool newLowPassIsEnabled) |
| Set whether or not this distortion filter's low pass filter is enabled. More...
|
|
Float | getLowPassFrequency () const |
| Return the low pass filter frequency of this distortion filter. More...
|
|
void | setLowPassFrequency (Float newLowPassFrequency) |
| Set the low pass filter frequency of this distortion filter. More...
|
|
Size | getLowPassOrder () const |
| Return the low pass filter order of this distortion filter. More...
|
|
void | setLowPassOrder (Size newLowPassOrder) |
| Set the low pass filter order of this distortion filter. More...
|
|
virtual UTF8String | getName () const |
| Return a human-readable name for this distortion filter. More...
|
|
virtual UTF8String | getManufacturer () const |
| Return the manufacturer name of this distortion filter. More...
|
|
virtual FilterVersion | getVersion () const |
| Return an object representing the version of this distortion filter. More...
|
|
virtual FilterCategory | getCategory () const |
| Return an object that describes the category of effect that this filter implements. More...
|
|
virtual Size | getParameterCount () const |
| Return the total number of generic accessible parameters this distortion filter has. More...
|
|
virtual Bool | getParameterInfo (Index parameterIndex, FilterParameterInfo &info) const |
| Get information about the distortion filter parameter at the specified index. More...
|
|
virtual Bool | getParameterValueName (Index parameterIndex, const FilterParameter &value, UTF8String &name) const |
| Get any special name associated with the specified value of an indexed parameter. More...
|
|
virtual | ~SoundFilter () |
| Destroy this sound filter object. More...
|
|
SoundResult | read (SoundBuffer &outputBuffer, Size numSamples) |
| Fill the specified output buffer with the requested number of samples, based on internal filter state. More...
|
|
SoundResult | read (SoundFrame &outputFrame, Size numSamples) |
| Fill the specified output frame with the requested number of samples, based on internal filter state. More...
|
|
SoundResult | write (const SoundBuffer &inputBuffer, Size numSamples) |
| Process the specified input buffer samples and do something with them. More...
|
|
SoundResult | write (const SoundFrame &inputFrame, Size numSamples) |
| Process the specified input frame samples and do something with them. More...
|
|
SoundResult | process (const SoundBuffer &inputBuffer, SoundBuffer &outputBuffer, Size numSamples) |
| Apply this filter to the specified input buffer data, placing the result in the output buffer. More...
|
|
SoundResult | process (const SoundBuffer &inputBuffer, SoundFrame &outputFrame, Size numSamples) |
| Apply this filter to the specified input buffer data, placing the result in the output frame. More...
|
|
SoundResult | process (const SoundFrame &inputFrame, SoundFrame &outputFrame, Size numSamples) |
| Apply this filter to the specified input frame data, placing the result in the output frame. More...
|
|
SoundResult | process (const SoundFrame &inputBuffer, SoundBuffer &outputBuffer, Size numSamples) |
| Apply this filter to the specified input frame data, placing the result in the output buffer. More...
|
|
void | reset () |
| Signal to the filter that the audio stream is restarting. More...
|
|
UInt64 | getFrameIndex () const |
| Return the index of the next frame to be processed (or the current one if currently processing). More...
|
|
Size | getInputCount () const |
| Return the current number of audio inputs that this filter has. More...
|
|
virtual UTF8String | getInputName (Index inputIndex) const |
| Return a human-readable name of the filter audio input at the specified index. More...
|
|
Size | getOutputCount () const |
| Return the current number of audio outputs that this filter has. More...
|
|
virtual UTF8String | getOutputName (Index outputIndex) const |
| Return a human-readable name of the filter audio output at the specified index. More...
|
|
Size | getMIDIInputCount () const |
| Return the current number of MIDI inputs that this filter has. More...
|
|
virtual UTF8String | getMIDIInputName (Index inputIndex) const |
| Return a human-readable name of the filter MIDI input at the specified index. More...
|
|
Size | getMIDIOutputCount () const |
| Return the current number of MIDI outputs that this filter has. More...
|
|
virtual UTF8String | getMIDIOutputName (Index outputIndex) const |
| Return a human-readable name of the filter MIDI output at the specified index. More...
|
|
virtual Time | getLatency () const |
| Return a Time value indicating the latency of this sound filter in seconds. More...
|
|
virtual Bool | getParameterIndex (const UTF8String ¶meterName, Index ¶meterIndex) const |
| Query the index of the parameter with the specified name. More...
|
|
Bool | getParameter (Index parameterIndex, FilterParameter &value) const |
| Place the value of the parameter at the specified index in the output parameter. More...
|
|
Bool | getParameter (Index parameterIndex, Bool &value) const |
| Place the value of the parameter at the specified index in the output parameter. More...
|
|
Bool | getParameter (Index parameterIndex, Int64 &value) const |
| Place the value of the parameter at the specified index in the output parameter. More...
|
|
Bool | getParameter (Index parameterIndex, Float32 &value) const |
| Place the value of the parameter at the specified index in the output parameter. More...
|
|
Bool | getParameter (Index parameterIndex, Float64 &value) const |
| Place the value of the parameter at the specified index in the output parameter. More...
|
|
template<typename ParameterType > |
Bool | getParameter (const UTF8String &name, ParameterType &value) const |
| Place the value of the parameter with the specified name in the output parameter. More...
|
|
template<typename ParameterType > |
Bool | getParameter (const char *name, ParameterType &value) const |
| Place the value of the parameter with the specified name in the output parameter. More...
|
|
Bool | setParameter (Index parameterIndex, const FilterParameter &value) |
| Attempt to set the parameter value at the specified index. More...
|
|
Bool | setParameter (Index parameterIndex, Bool value) |
| Attempt to set the parameter value at the specified index. More...
|
|
Bool | setParameter (Index parameterIndex, Int64 value) |
| Attempt to set the parameter value at the specified index. More...
|
|
Bool | setParameter (Index parameterIndex, Float32 value) |
| Attempt to set the parameter value at the specified index. More...
|
|
Bool | setParameter (Index parameterIndex, Float64 value) |
| Attempt to set the parameter value at the specified index. More...
|
|
template<typename ParameterType > |
Bool | setParameter (const UTF8String &name, ParameterType value) |
| Attempt to set the parameter value with the specified name. More...
|
|
template<typename ParameterType > |
Bool | setParameter (const char *name, ParameterType value) |
| Attempt to set the parameter value with the specified name. More...
|
|
virtual Bool | writeState (DataOutputStream &stream) const |
| Write the current state of this sound filter to a data output stream. More...
|
|
virtual Bool | readState (DataInputStream &stream) |
| Read a previously saved filter state from the specified data input stream and replace the filter's state. More...
|
|
virtual Size | getPresetCount () const |
| Return the number of standard configuration presets that this sound filter has. More...
|
|
virtual Bool | getPreset (Index presetIndex, FilterPreset &preset) const |
| Get the standard preset for this sound filter with the specified index. More...
|
|
Bool | getIsSynchronized () const |
| Return whether or not this sound filter performs thread synchronization. More...
|
|
void | setIsSynchronized (Bool newIsSynchronized) |
| Set whether or not this sound filter performs thread synchronization. More...
|
|
virtual Bool | allowsInPlaceProcessing () const |
| Return whether or not this sound filter can process audio data in-place. More...
|
|
A class that provides different kinds of audio distortion using wave-shaping.
The class uses a series of special non-linear functions to produce variable-hardness distortion. The distortion produced can range from a basic soft clipping to very non-linear hard clipping.