JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::dsp::WaveShaper< FloatType, Function > Struct Template Reference

Applies waveshaping to audio samples as single samples or AudioBlocks. More...

#include <juce_WaveShaper.h>

Collaboration diagram for juce::dsp::WaveShaper< FloatType, Function >:

Public Member Functions

void prepare (const ProcessSpec &) noexcept
 Called before processing starts. More...
 
template<typename ProcessContext >
void process (const ProcessContext &context) const noexcept
 Processes the input and output buffers supplied in the processing context. More...
 
template<typename SampleType >
SampleType JUCE_VECTOR_CALLTYPE processSample (SampleType inputSample) const noexcept
 Returns the result of processing a single sample. More...
 
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.

References juce::dsp::WaveShaper< FloatType, Function >::functionToUse, and juce::dsp::AudioBlock< SampleType >::process().

◆ 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.

References juce::dsp::WaveShaper< FloatType, Function >::functionToUse.

◆ 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: