Gin
Public Member Functions | List of all members
AudioEquationParser Class Reference

Enhances the EquationParser with math related functions like filters and oscilllators. More...

Inheritance diagram for AudioEquationParser:

Public Member Functions

 AudioEquationParser ()=default
 
void addConstants ()
 
void addUtilities ()
 
void addOscillatorFunctions ()
 
void addSynthFilterFunctions ()
 
void addEffectFilterFunctions ()
 
- Public Member Functions inherited from EquationParser
 EquationParser ()
 
 EquationParser (const juce::String &equation)
 
 ~EquationParser ()
 
void defineNameChars (const juce::String &chars)
 
void setEquation (const juce::String &equation)
 
void clearVariables ()
 
void addVariable (const juce::String &name, double *value)
 
void setVarFactory (std::function< double *(const char *)> fun)
 
void clearConstants ()
 
void addConstant (const juce::String &name, double value)
 
void addFunction (const juce::String &name, std::function< double(int id, const juce::String &)> fun)
 
void addFunction (const juce::String &name, std::function< double(int id)> fun)
 
void addFunction (const juce::String &name, std::function< double(int id, double)> fun)
 
void addFunction (const juce::String &name, std::function< double(int id, double, double)> fun)
 
void addFunction (const juce::String &name, std::function< double(int id, double, double, double)> fun)
 
void addFunction (const juce::String &name, std::function< double(int id, double, double, double, double)> fun)
 
double evaluate ()
 
bool hasError ()
 
juce::String getError ()
 
- Public Member Functions inherited from AudioFunctionHost
void setSampleRate (double sr)
 
void addConstants (gin::EquationParser &)
 
void addUtilities (gin::EquationParser &)
 
void addOscillatorFunctions (gin::EquationParser &)
 
void addSynthFilterFunctions (gin::EquationParser &)
 
void addEffectFilterFunctions (gin::EquationParser &)
 

Additional Inherited Members

- Public Attributes inherited from AudioFunctionHost
gin::BandLimitedLookupTables * lookupTables = nullptr
 
- Protected Member Functions inherited from AudioFunctionHost
template<class T >
T * getFuncParams (int i, double sr)
 
- Protected Attributes inherited from AudioFunctionHost
std::map< int, std::unique_ptr< FuncState > > funcStates
 
double sampleRate = 44100.0
 

Detailed Description

Enhances the EquationParser with math related functions like filters and oscilllators.

Constructor & Destructor Documentation

◆ AudioEquationParser()

AudioEquationParser::AudioEquationParser ( )
default

Member Function Documentation

◆ addConstants()

void AudioEquationParser::addConstants ( )

◆ addUtilities()

void AudioEquationParser::addUtilities ( )

◆ addOscillatorFunctions()

void AudioEquationParser::addOscillatorFunctions ( )

◆ addSynthFilterFunctions()

void AudioEquationParser::addSynthFilterFunctions ( )

◆ addEffectFilterFunctions()

void AudioEquationParser::addEffectFilterFunctions ( )

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