daisysp::AnalogBassDrum¶
808 bass drum model, revisited. More...
#include <analogbassdrum.h>
Public Functions¶
Name | |
---|---|
AnalogBassDrum() | |
~AnalogBassDrum() | |
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.
Public Functions Documentation¶
function AnalogBassDrum¶
function ~AnalogBassDrum¶
function Init¶
Parameters:
- sample_rate Audio engine sample rate
Initialize the module
function Process¶
Parameters:
- trigger True strikes the drum. Defaults to false.
Get the next sample.
function Trig¶
Strikes the drum.
function SetSustain¶
Parameters:
- sustain True = infinite length
Set the bassdrum to play infinitely
function SetAccent¶
Parameters:
- accent Works 0-1
Set a small accent.
function SetFreq¶
Parameters:
- f0 Frequency in Hz
Set the drum's root frequency
function SetTone¶
Parameters:
- tone Works 0-1.
Set the amount of click.
function SetDecay¶
Parameters:
- decay Works best 0-1.
Set the decay length of the drum.
function SetAttackFmAmount¶
Parameters:
- attack_fm_amount Works best 0-1.
Set the amount of fm attack. Works together with self fm.
function SetSelfFmAmount¶
Parameters:
- self_fm_amount Works best 0-1.
Set the amount of self fm. Also affects fm attack, and volume decay.
---¶
Updated on 2024-01-03 at 19:38:46 +0000