WE Core
|
#include <ModulationSource.h>
Public Member Functions | |
ModulationSource () | |
virtual | ~ModulationSource ()=default |
SampleType | getNextOutput (SampleType inSample) |
virtual SampleType | getLastOutput () const |
void | reset () |
Protected Member Functions | |
virtual SampleType | _getNextOutputImpl (SampleType inSample)=0 |
virtual void | _resetImpl ()=0 |
Protected Attributes | |
SampleType | _cachedOutput |
Provides a standard interface for modulation sources such as LFOs and envelope followers to follow.
This interface only defines how to get output from the modulation source and reset it, and say nothing about setting its parameters, sample rate, etc as these will vary.
Definition at line 34 of file ModulationSource.h.
|
inline |
Definition at line 39 of file ModulationSource.h.
|
virtualdefault |
|
protectedpure virtual |
Must be overriden by the inheriting class to provide the specific implementation of this modulation source.
The implementation may or may not need to use the provided audio sample.
Implemented in WECore::AREnv::AREnvelopeFollowerBase, WECore::Perlin::PerlinSource, WECore::Richter::RichterLFO, and WECore::Richter::RichterLFOPair.
|
protectedpure virtual |
Must be overriden by the inheriting class to reset the internat state as required.
Implemented in WECore::AREnv::AREnvelopeFollowerBase, WECore::Perlin::PerlinSource, WECore::Richter::RichterLFO, and WECore::Richter::RichterLFOPair.
|
inlinevirtual |
Returns the most recent output of getNextOutput without advancing the internal state.
Definition at line 51 of file ModulationSource.h.
References WECore::ModulationSource< SampleType >::_cachedOutput.
|
inline |
Given the provided audio sample, calculates the next output value and advances the internal state (if applicable).
Definition at line 76 of file ModulationSource.h.
Referenced by WECore::Richter::RichterLFOPair::_getNextOutputImpl().
|
inline |
Resets the internal state of the modulation source.
Definition at line 82 of file ModulationSource.h.
Referenced by WECore::Richter::RichterLFOPair::_resetImpl().
|
protected |
Definition at line 59 of file ModulationSource.h.
Referenced by WECore::ModulationSource< SampleType >::getLastOutput().