808 bass drum model, revisited.
More...
#include <analogbassdrum.h>
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.
◆ Init()
void AnalogBassDrum::Init |
( |
float | sample_rate | ) |
|
Initialize the module
- Parameters
-
sample_rate | Audio engine sample rate |
◆ Process()
float AnalogBassDrum::Process |
( |
bool | trigger = false | ) |
|
Get the next sample.
- Parameters
-
trigger | True strikes the drum. Defaults to false. |
◆ SetAccent()
void AnalogBassDrum::SetAccent |
( |
float | accent | ) |
|
Set a small accent.
- Parameters
-
◆ SetAttackFmAmount()
void 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. |
◆ SetDecay()
void AnalogBassDrum::SetDecay |
( |
float | decay | ) |
|
Set the decay length of the drum.
- Parameters
-
◆ SetFreq()
void AnalogBassDrum::SetFreq |
( |
float | f0 | ) |
|
Set the drum's root frequency
- Parameters
-
◆ SetSelfFmAmount()
void 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. |
◆ SetSustain()
void AnalogBassDrum::SetSustain |
( |
bool | sustain | ) |
|
Set the bassdrum to play infinitely
- Parameters
-
sustain | True = infinite length |
◆ SetTone()
void AnalogBassDrum::SetTone |
( |
float | tone | ) |
|
Set the amount of click.
- Parameters
-
◆ Trig()
void AnalogBassDrum::Trig |
( |
| ) |
|
The documentation for this class was generated from the following files: