DaisySP
|
808 snare drum model, revisited. More...
#include <analogsnaredrum.h>
Public Member Functions | |
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 | SetSnappy (float snappy) |
Static Public Attributes | |
static const int | kNumModes = 5 |
808 snare drum model, revisited.
Init the module
sample_rate | Audio engine sample rate |
Get the next sample
trigger | Hit the drum with true. Defaults to false. |
Set how much accent to use
accent | Works 0-1. |
Set the length of the drum decay
decay | Works with positive numbers |
Sets the mix between snare and drum.
snappy | 1 = just snare. 0 = just drum. |
Init the module
sample_rate | Audio engine sample rate |
Set the brightness of the drum tone.
tone | Works 0-1. 1 = bright, 0 = dark. |
void AnalogSnareDrum::Trig | ( | ) |
Trigger the drum