All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
MultiChannelFilter Class Referenceabstract
Inheritance diagram for MultiChannelFilter:
MoogFilter

Public Member Functions

void setType (int newType)
 
void setFrequency (double newFrequency)
 
void setQ (double newQ)
 
void setSampleRate (double newSampleRate)
 
void setNumChannels (int newNumChannels)
 
virtual void reset ()=0
 
virtual void updateCoefficients ()=0
 
virtual void processSamples (AudioSampleBuffer &buffer, int startSample, int numSamples)=0
 

Detailed Description

A base class for filters with multiple channels.

It exposes an interface for different filter types which have common methods for setting their parameters, initialisation etc.

Member Function Documentation

virtual void processSamples ( AudioSampleBuffer &  buffer,
int  startSample,
int  numSamples 
)
pure virtual

Implement the filter algorithm here.

virtual void reset ( )
pure virtual

Overwrite this method and reset all internal variables like previous values etc. This will be called when a new voice is started to prevent clicks in the processing.

void setFrequency ( double  newFrequency)
inline

Set the new frequency (real values from 20Hz to Fs/2).

void setNumChannels ( int  newNumChannels)
inline

Sets the amount of channels.

void setQ ( double  newQ)
inline

Set the resonance.

void setSampleRate ( double  newSampleRate)
inline

Sets the samplerate. This will be automatically called whenever the sample rate changes.

void setType ( int  newType)
inline

Set the filter type. The type is just a plain integer so it's up to your filter implementation to decide what is happening with the value.

virtual void updateCoefficients ( )
pure virtual

this will be called whenever the frequency, q, or samplerate changes.

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.