10#ifndef DSY_ANALOG_SNARE_H
11#define DSY_ANALOG_SNARE_H
13#include "Filters/svf.h"
36 static const int kNumModes = 5;
41 void Init(
float sample_rate);
46 float Process(
bool trigger =
false);
84 float f0_, tone_, accent_, snappy_, decay_;
88 inline float SoftLimit(
float x);
89 inline float SoftClip(
float x);
91 int pulse_remaining_samples_;
95 float noise_envelope_;
98 Svf resonator_[kNumModes];
102 float phase_[kNumModes];
808 snare drum model, revisited.
Definition analogsnaredrum.h:31
void SetSustain(bool sustain)
Definition analogsnaredrum.cpp:44
void SetDecay(float decay)
Definition analogsnaredrum.cpp:66
void SetTone(float tone)
Definition analogsnaredrum.cpp:60
float Process(bool trigger=false)
Definition analogsnaredrum.cpp:78
void SetAccent(float accent)
Definition analogsnaredrum.cpp:49
void SetSnappy(float snappy)
Definition analogsnaredrum.cpp:73
void Init(float sample_rate)
Definition analogsnaredrum.cpp:10
void SetFreq(float f0)
Definition analogsnaredrum.cpp:54
void Trig()
Definition analogsnaredrum.cpp:39
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16