Class daisysp::AnalogSnareDrum¶
ClassList > daisysp > AnalogSnareDrum
808 snare drum model, revisited. More...
#include <analogsnaredrum.h>
Public Static Attributes¶
Type | Name |
---|---|
const int | kNumModes = 5 |
Public Functions¶
Type | Name |
---|---|
AnalogSnareDrum () |
|
void | Init (float sample_rate) |
float | Process (bool trigger=false) |
void | SetAccent (float accent) |
void | SetDecay (float decay) |
void | SetFreq (float f0) |
void | SetSnappy (float snappy) |
void | SetSustain (bool sustain) |
void | SetTone (float tone) |
void | Trig () |
~AnalogSnareDrum () |
Detailed Description¶
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.
Public Static Attributes Documentation¶
variable kNumModes¶
Public Functions Documentation¶
function AnalogSnareDrum¶
function Init¶
Init the module
Parameters:
sample_rate
Audio engine sample rate
function Process¶
Get the next sample
Parameters:
trigger
Hit the drum with true. Defaults to false.
function SetAccent¶
Set how much accent to use
Parameters:
accent
Works 0-1.
function SetDecay¶
Set the length of the drum decay
Parameters:
decay
Works with positive numbers
function SetFreq¶
Set the drum's root frequency
Parameters:
f0
Freq in Hz
function SetSnappy¶
Sets the mix between snare and drum.
Parameters:
snappy
1 = just snare. 0 = just drum.
function SetSustain¶
Init the module
Parameters:
sample_rate
Audio engine sample rate
function SetTone¶
Set the brightness of the drum tone.
Parameters:
tone
Works 0-1. 1 = bright, 0 = dark.
function Trig¶
Trigger the drum
function ~AnalogSnareDrum¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Drums/analogsnaredrum.h