Synth.cpp
 All Data Structures Namespaces Files Functions Variables Macros
Public Member Functions | Private Member Functions | Private Attributes
Filter Class Reference

#include <synth.h>

Public Member Functions

 Filter ()
 
void setF (uint32_t f)
 
void setQ (float q)
 
void step (int32_t x)
 
int32_t highpass (void)
 
int32_t bandpass (void)
 
int32_t lowpass (void)
 

Private Member Functions

void compute_two_k (void)
 

Private Attributes

int32_t integrator1
 
int32_t integrator2
 
int32_t u
 
int32_t w0dt
 
int32_t two_k
 
int32_t _f
 
int32_t _k
 

Detailed Description

Definition at line 212 of file synth.h.

Constructor & Destructor Documentation

Filter::Filter ( )
inline

Definition at line 218 of file synth.h.

Member Function Documentation

int32_t Filter::bandpass ( void  )
inline

Definition at line 229 of file synth.h.

Referenced by NoisyVoice::output().

Here is the caller graph for this function:

void Filter::compute_two_k ( void  )
private

Definition at line 300 of file synth.cpp.

Referenced by setF(), and setQ().

Here is the caller graph for this function:

int32_t Filter::highpass ( void  )
inline

Definition at line 226 of file synth.h.

Referenced by NoisyVoice::output().

Here is the caller graph for this function:

int32_t Filter::lowpass ( void  )
inline

Definition at line 232 of file synth.h.

void Filter::setF ( uint32_t  f)

Definition at line 305 of file synth.cpp.

Referenced by NoisyVoice::step().

Here is the call graph for this function:

Here is the caller graph for this function:

void Filter::setQ ( float  q)

Definition at line 312 of file synth.cpp.

Referenced by NoisyVoice::NoisyVoice().

Here is the call graph for this function:

Here is the caller graph for this function:

void Filter::step ( int32_t  x)

Definition at line 321 of file synth.cpp.

Referenced by NoisyVoice::step().

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

int32_t Filter::_f
private

Definition at line 213 of file synth.h.

Referenced by compute_two_k(), and setF().

int32_t Filter::_k
private

Definition at line 213 of file synth.h.

Referenced by compute_two_k(), and setQ().

int32_t Filter::integrator1
private

Definition at line 213 of file synth.h.

Referenced by bandpass(), Filter(), and step().

int32_t Filter::integrator2
private

Definition at line 213 of file synth.h.

Referenced by Filter(), lowpass(), and step().

int32_t Filter::two_k
private

Definition at line 213 of file synth.h.

Referenced by compute_two_k(), and step().

int32_t Filter::u
private

Definition at line 213 of file synth.h.

Referenced by Filter(), highpass(), and step().

int32_t Filter::w0dt
private

Definition at line 213 of file synth.h.

Referenced by setF(), and step().


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