808 snare drum model, revisited.
More...
#include <analogsnaredrum.h>
|
static const int | kNumModes = 5 |
|
808 snare drum model, revisited.
- Author
- Ben Sergentanis
- Date
- Jan 2021 Ported from pichenettes/eurorack/plaits/dsp/drums/analog_snare_drum.h
to an independent module.
Original code written by Emilie Gillet in 2016.
◆ Init()
void AnalogSnareDrum::Init |
( |
float | sample_rate | ) |
|
Init the module
- Parameters
-
sample_rate | Audio engine sample rate |
◆ Process()
float AnalogSnareDrum::Process |
( |
bool | trigger = false | ) |
|
Get the next sample
- Parameters
-
trigger | Hit the drum with true. Defaults to false. |
◆ SetAccent()
void AnalogSnareDrum::SetAccent |
( |
float | accent | ) |
|
Set how much accent to use
- Parameters
-
◆ SetDecay()
void AnalogSnareDrum::SetDecay |
( |
float | decay | ) |
|
Set the length of the drum decay
- Parameters
-
decay | Works with positive numbers |
◆ SetFreq()
void AnalogSnareDrum::SetFreq |
( |
float | f0 | ) |
|
Set the drum's root frequency
- Parameters
-
◆ SetSnappy()
void AnalogSnareDrum::SetSnappy |
( |
float | snappy | ) |
|
Sets the mix between snare and drum.
- Parameters
-
snappy | 1 = just snare. 0 = just drum. |
◆ SetSustain()
void AnalogSnareDrum::SetSustain |
( |
bool | sustain | ) |
|
Init the module
- Parameters
-
sample_rate | Audio engine sample rate |
◆ SetTone()
void AnalogSnareDrum::SetTone |
( |
float | tone | ) |
|
Set the brightness of the drum tone.
- Parameters
-
tone | Works 0-1. 1 = bright, 0 = dark. |
◆ Trig()
void AnalogSnareDrum::Trig |
( |
| ) |
|
The documentation for this class was generated from the following files: