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¶
function Init¶
Initialize the module
Parameters:
sample_rate
Audio engine sample rate
function Process¶
Get the next sample.
Parameters:
trigger
True strikes the drum. Defaults to false.
function SetAccent¶
Set a small accent.
Parameters:
accent
Works 0-1
function SetAttackFmAmount¶
Set the amount of fm attack. Works together with self fm.
Parameters:
attack_fm_amount
Works best 0-1.
function SetDecay¶
Set the decay length of the drum.
Parameters:
decay
Works best 0-1.
function SetFreq¶
Set the drum's root frequency
Parameters:
f0
Frequency in Hz
function SetSelfFmAmount¶
Set the amount of self fm. Also affects fm attack, and volume decay.
Parameters:
self_fm_amount
Works best 0-1.
function SetSustain¶
Set the bassdrum to play infinitely
Parameters:
sustain
True = infinite length
function SetTone¶
Set the amount of click.
Parameters:
tone
Works 0-1.
function Trig¶
Strikes the drum.
function ~AnalogBassDrum¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Drums/analogbassdrum.h