Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

syn::RbjFilter Class Reference

Robert Bristow-Johnson filter. More...

#include <Filter.h>

List of all members.

Public Methods

 RbjFilter ()
void filter (float &sample)
 digital filter. More...

void setup (float frequency, float sampRate, float dBgain=20.0f, float Q=1.0f)
void setCutoff (float frequency, float sampRate)
 make this filter low pass, with fc cuttoff frequency. More...


Public Attributes

float A
float omega
float sn
float cs
float alpha
float beta


Detailed Description

Robert Bristow-Johnson filter.

by Robert Bristow-Johnson, pbjrbj@viconet.com a.k.a. robert@audioheads.com

Todo:
: doesn't work! I don't know why...

Definition at line 236 of file Filter.h.


Constructor & Destructor Documentation

syn::RbjFilter::RbjFilter ( ) [inline]
 

Definition at line 239 of file Filter.h.


Member Function Documentation

void syn::RbjFilter::filter ( float & sample ) [inline]
 

digital filter.

Example (how to use this filter on a buffer of float-type samples)

/code for (int x = 0; x < buf.size(); ++x) { f.filter( buf[x] ); } /endcode

Definition at line 252 of file Filter.h.

void syn::RbjFilter::setup ( float frequency,
float sampRate,
float dBgain = 20.0f,
float Q = 1.0f ) [inline]
 

Definition at line 276 of file Filter.h.

Referenced by setCutoff().

void syn::RbjFilter::setCutoff ( float frequency,
float sampRate ) [inline]
 

make this filter low pass, with fc cuttoff frequency.

Parameters:
fc   Positive value in Herz between 0 and Nyquist frequency (samplingrate / 2).
sampRate   sampling rate of your data in hz.

Definition at line 293 of file Filter.h.


Member Data Documentation

float syn::RbjFilter::A
 

Definition at line 270 of file Filter.h.

float syn::RbjFilter::omega
 

Definition at line 271 of file Filter.h.

float syn::RbjFilter::sn
 

Definition at line 272 of file Filter.h.

float syn::RbjFilter::cs
 

Definition at line 273 of file Filter.h.

float syn::RbjFilter::alpha
 

Definition at line 274 of file Filter.h.

float syn::RbjFilter::beta
 

Definition at line 275 of file Filter.h.


The documentation for this class was generated from the following file:
Generated at Mon Apr 15 09:28:05 2002 for subsynth by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001