Jamoma API  0.6.0.a19
Filter Class Referenceabstract

Filter class. More...

#include <Filter.h>

+ Inheritance diagram for Filter:

Public Member Functions

 Filter ()
 Class constructor.
 
double tick (double input)
 Given an input sample, returns a filtered output sample.
 
virtual void print () const =0
 Prints information about the given filter.
 
void clear ()
 Reinitialize filter's memory.
 
virtual ~Filter ()
 Virtual destructor.
 

Protected Member Functions

double percentToGain (double gainPercentage)
 Convert percentage to linear gain.
 

Protected Attributes

double sr_
 Pi divided by the sample rate.
 
double b1_
 Filter coefficient.
 
double b2_
 Filter coefficient.
 
double a0_
 Filter coefficient.
 
double a1_
 Filter coefficient.
 
double a2_
 Filter coefficient.
 

Static Protected Attributes

static const double MAX_ = 1.0
 Max gain value.
 
static const double MIN_ = 0.0000001
 Min gain value.
 

Detailed Description

Filter class.

A generic biquad filter.

Based on: Biquad.h by Gary Scavone and Perry Cook, and hml_shelf~.c by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006

by Tristan Matthews and Nils Peters, 2007-2008.

A High Mid Low shelf filter. Shelf centre frequencies are immutable.

Based on: Biquad.h by Gary Scavone and Perry Cook, and hml_shelf~.c by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006

by Tristan Matthews and Nils Peters, 2007-2008.

Definition at line 22 of file Filter.h.


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