Skip to content

Class daisysp::AnalogBassDrum

ClassList > daisysp > AnalogBassDrum

808 bass drum model, revisited. More...

  • #include <analogbassdrum.h>

Public Functions

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

Detailed Description

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.

Public Functions Documentation

function AnalogBassDrum

inline daisysp::AnalogBassDrum::AnalogBassDrum () 

function Init

void daisysp::AnalogBassDrum::Init (
    float sample_rate
) 

Initialize the module

Parameters:

  • sample_rate Audio engine sample rate

function Process

float daisysp::AnalogBassDrum::Process (
    bool trigger=false
) 

Get the next sample.

Parameters:

  • trigger True strikes the drum. Defaults to false.

function SetAccent

void daisysp::AnalogBassDrum::SetAccent (
    float accent
) 

Set a small accent.

Parameters:

  • accent Works 0-1

function SetAttackFmAmount

void daisysp::AnalogBassDrum::SetAttackFmAmount (
    float attack_fm_amount
) 

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

Parameters:

  • attack_fm_amount Works best 0-1.

function SetDecay

void daisysp::AnalogBassDrum::SetDecay (
    float decay
) 

Set the decay length of the drum.

Parameters:

  • decay Works best 0-1.

function SetFreq

void daisysp::AnalogBassDrum::SetFreq (
    float f0
) 

Set the drum's root frequency

Parameters:

  • f0 Frequency in Hz

function SetSelfFmAmount

void daisysp::AnalogBassDrum::SetSelfFmAmount (
    float self_fm_amount
) 

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

Parameters:

  • self_fm_amount Works best 0-1.

function SetSustain

void daisysp::AnalogBassDrum::SetSustain (
    bool sustain
) 

Set the bassdrum to play infinitely

Parameters:

  • sustain True = infinite length

function SetTone

void daisysp::AnalogBassDrum::SetTone (
    float tone
) 

Set the amount of click.

Parameters:

  • tone Works 0-1.

function Trig

void daisysp::AnalogBassDrum::Trig () 

Strikes the drum.


function ~AnalogBassDrum

inline daisysp::AnalogBassDrum::~AnalogBassDrum () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Drums/analogbassdrum.h