JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
juce::dsp::WaveShaper< FloatType, Function > Struct Template Reference

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

#include "juce_WaveShaper.h"

Public Member Functions

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

Definition at line 35 of file juce_WaveShaper.h.

Member Function Documentation

◆ prepare()

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

Called before processing starts.

Definition at line 41 of file juce_WaveShaper.h.

◆ process()

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

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

Definition at line 53 of file juce_WaveShaper.h.

◆ processSample()

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

Returns the result of processing a single sample.

Definition at line 46 of file juce_WaveShaper.h.

◆ reset()

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

Definition at line 68 of file juce_WaveShaper.h.

Member Data Documentation

◆ functionToUse

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

Definition at line 37 of file juce_WaveShaper.h.


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