LMMS
Loading...
Searching...
No Matches
juce::dsp::WaveShaper< FloatType, Function > Struct Template Reference

#include <juce_WaveShaper.h>

Public Member Functions

void prepare (const ProcessSpec &) noexcept
template<typename SampleType>
SampleType JUCE_VECTOR_CALLTYPE processSample (SampleType inputSample) const noexcept
template<typename ProcessContext>
void process (const ProcessContext &context) const noexcept
void reset () noexcept

Public Attributes

Function functionToUse

Detailed Description

template<typename FloatType, typename Function = FloatType (*) (FloatType)>
struct juce::dsp::WaveShaper< FloatType, Function >

Applies waveshaping to audio samples as single samples or AudioBlocks.

@tags{DSP}

Member Function Documentation

◆ prepare()

template<typename FloatType, typename Function = FloatType (*) (FloatType)>
void juce::dsp::WaveShaper< FloatType, Function >::prepare ( const ProcessSpec & )
inlinenoexcept

Called before processing starts.

◆ process()

template<typename FloatType, typename Function = FloatType (*) (FloatType)>
template<typename ProcessContext>
void juce::dsp::WaveShaper< FloatType, Function >::process ( const ProcessContext & context) const
inlinenoexcept

Processes the input and output buffers supplied in the processing context.

◆ processSample()

template<typename FloatType, typename Function = FloatType (*) (FloatType)>
template<typename SampleType>
SampleType JUCE_VECTOR_CALLTYPE juce::dsp::WaveShaper< FloatType, Function >::processSample ( SampleType inputSample) const
inlinenoexcept

Returns the result of processing a single sample.

◆ reset()

template<typename FloatType, typename Function = FloatType (*) (FloatType)>
void juce::dsp::WaveShaper< FloatType, Function >::reset ( )
inlinenoexcept

Member Data Documentation

◆ functionToUse

template<typename FloatType, typename Function = FloatType (*) (FloatType)>
Function juce::dsp::WaveShaper< FloatType, Function >::functionToUse

The documentation for this struct was generated from the following file: