13#include "Filters/svf.h"
43 void Init(
float sample_rate);
48 float Process(
bool trigger =
false);
84 inline float DistortedSine(
float phase);
90 float accent_, f0_, fm_amount_, decay_, snappy_;
93 float drum_amplitude_;
94 float snare_amplitude_;
Naive snare drum model (two modulated oscillators + filtered noise).
Definition synthsnaredrum.h:35
void SetFmAmount(float fm_amount)
Definition synthsnaredrum.cpp:187
void SetFreq(float f0)
Definition synthsnaredrum.cpp:181
void SetSnappy(float snappy)
Definition synthsnaredrum.cpp:198
float Process(bool trigger=false)
Definition synthsnaredrum.cpp:42
void SetAccent(float accent)
Definition synthsnaredrum.cpp:176
void SetDecay(float decay)
Definition synthsnaredrum.cpp:193
void SetSustain(bool sustain)
Definition synthsnaredrum.cpp:171
void Trig()
Definition synthsnaredrum.cpp:166
void Init(float sample_rate)
Definition synthsnaredrum.cpp:8
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16