DaisySP
Loading...
Searching...
No Matches
Public Member Functions | List of all members
daisysp::AnalogBassDrum Class Reference

808 bass drum model, revisited. More...

#include <analogbassdrum.h>

Public Member Functions

void Init (float sample_rate)
 
float Process (bool trigger=false)
 
void Trig ()
 
void SetSustain (bool sustain)
 
void SetAccent (float accent)
 
void SetFreq (float f0)
 
void SetTone (float tone)
 
void SetDecay (float decay)
 
void SetAttackFmAmount (float attack_fm_amount)
 
void SetSelfFmAmount (float self_fm_amount)
 

Detailed Description

808 bass drum model, revisited.

Author
Ben Sergentanis
Date
Jan 2021 Ported from pichenettes/eurorack/plaits/dsp/drums/analog_bass_drum.h
to an independent module.
Original code written by Emilie Gillet in 2016.

Member Function Documentation

◆ Init()

void AnalogBassDrum::Init ( float sample_rate)

Initialize the module

Parameters
sample_rateAudio engine sample rate

◆ Process()

float AnalogBassDrum::Process ( bool trigger = false)

Get the next sample.

Parameters
triggerTrue strikes the drum. Defaults to false.

◆ SetAccent()

void AnalogBassDrum::SetAccent ( float accent)

Set a small accent.

Parameters
accentWorks 0-1

◆ SetAttackFmAmount()

void AnalogBassDrum::SetAttackFmAmount ( float attack_fm_amount)

Set the amount of fm attack. Works together with self fm.

Parameters
attack_fm_amountWorks best 0-1.

◆ SetDecay()

void AnalogBassDrum::SetDecay ( float decay)

Set the decay length of the drum.

Parameters
decayWorks best 0-1.

◆ SetFreq()

void AnalogBassDrum::SetFreq ( float f0)

Set the drum's root frequency

Parameters
f0Frequency in Hz

◆ SetSelfFmAmount()

void AnalogBassDrum::SetSelfFmAmount ( float self_fm_amount)

Set the amount of self fm. Also affects fm attack, and volume decay.

Parameters
self_fm_amountWorks best 0-1.

◆ SetSustain()

void AnalogBassDrum::SetSustain ( bool sustain)

Set the bassdrum to play infinitely

Parameters
sustainTrue = infinite length

◆ SetTone()

void AnalogBassDrum::SetTone ( float tone)

Set the amount of click.

Parameters
toneWorks 0-1.

◆ Trig()

void AnalogBassDrum::Trig ( )

Strikes the drum.


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