DaisySP
|
Naive snare drum model (two modulated oscillators + filtered noise). More...
#include <synthsnaredrum.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 | SetFmAmount (float fm_amount) |
void | SetDecay (float decay) |
void | SetSnappy (float snappy) |
Naive snare drum model (two modulated oscillators + filtered noise).
Init the module
sample_rate | Audio engine sample rate |
Get the next sample.
trigger | True = hit the drum. This argument is optional. |
Set how much accent to use
accent | Works 0-1. |
Set the length of the drum decay
decay | Works with positive numbers |
Set the amount of fm sweep.
fm_amount | Works from 0 - 1. |
Sets the mix between snare and drum.
snappy | 1 = just snare. 0 = just drum. |
Make the drum ring out infinitely.
sustain | True = infinite sustain. |
void SyntheticSnareDrum::Trig | ( | ) |
Trigger the drum