MEAP The Library

MOZZI
MEAP The Class
C++ tips
Mozzi Reworks
mOscil
mSample
Generators
mDust
mNoise
mOperator
mSineLFO
mEnvSection
Effects
mBitcrusher
mChorus
mDigitalDelay
mFlanger
mPlateReverb
mSchroederReverb
DSP
mDelayLine
mFeedbackComb
mFeedforwardComb
mFIR
mIIR
mNaturalComb
mOnePoleLPF
mResonz
mRingz
mSchroederAllpass
mInstruments
mDrumRack
mFM4Instrument
mMarimbaInstrument
mPopInstrument
mRompler
mStringInstrument
mStringSynthInstrument
Composition
mMML
mTransitionTable
Utilities
mEventDelayMicros
mRandomDistribution

class: mOnePoleLPF


simple lowpass filter

Description

A simple lowpass filter, useful for smoothing signals or filtering audio.

Template Parameters

template <class T = int32_t>

T: data type to be filtered

Class Methods

Constructor

mOnePoleLPF(float damping)

damping: sets cutoff of LPF from high frequencies at 0 to low frequencies at 1.0. At values very close to 1, filter can be used to smooth control signals.


void setDamping(float damping)

damping: sets cutoff of LPF from high frequencies at 0 to low frequencies at 1.0. At values very close to 1, filter can be used to smooth control signals.


T next(T in_sample)

Send a sample to the filter and receive a filtered sample back

Example

Relevant Tutorials