Mozzi  alpha 0.01.1t
sound synthesis library for Arduino
 All Classes Functions Typedefs
Public Member Functions
LowPassFilter Class Reference

A resonant low pass filter for audio signals. More...

List of all members.

Public Member Functions

 LowPassFilter ()
 Constructor.
void setCutoffFreq (unsigned char cutoff)
 Set the cut off frequency,.
void setResonance (unsigned char resonance)
 Set the resonance.
int next (int in)
 Calculate the next sample, given an input signal.

Detailed Description

A resonant low pass filter for audio signals.

Definition at line 48 of file LowPassFilter.h.


Member Function Documentation

int LowPassFilter::next ( int  in) [inline]

Calculate the next sample, given an input signal.

Parameters:
inthe signal input.
Returns:
the signal output.

Definition at line 84 of file LowPassFilter.h.

void LowPassFilter::setCutoffFreq ( unsigned char  cutoff) [inline]

Set the cut off frequency,.

Parameters:
cutoffuse the range 0-255 to represent 0-8192 Hz (AUDIO_RATE/2). Be careful of distortion at the lower end, especially with high resonance.

Definition at line 63 of file LowPassFilter.h.

void LowPassFilter::setResonance ( unsigned char  resonance) [inline]

Set the resonance.

If you hear unwanted distortion, back off the resonance.

Parameters:
resonancein the range 0-255.

Definition at line 73 of file LowPassFilter.h.


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