DaisySP
Loading...
Searching...
No Matches
daisysp::AnalogSnareDrum Class Reference

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
 

Detailed Description

808 snare drum model, revisited.

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.

Member Function Documentation

◆ Init()

void AnalogSnareDrum::Init ( float sample_rate)

Init the module

Parameters
sample_rateAudio engine sample rate

◆ Process()

float AnalogSnareDrum::Process ( bool trigger = false)

Get the next sample

Parameters
triggerHit the drum with true. Defaults to false.

◆ SetAccent()

void AnalogSnareDrum::SetAccent ( float accent)

Set how much accent to use

Parameters
accentWorks 0-1.

◆ SetDecay()

void AnalogSnareDrum::SetDecay ( float decay)

Set the length of the drum decay

Parameters
decayWorks with positive numbers

◆ SetFreq()

void AnalogSnareDrum::SetFreq ( float f0)

Set the drum's root frequency

Parameters
f0Freq in Hz

◆ SetSnappy()

void AnalogSnareDrum::SetSnappy ( float snappy)

Sets the mix between snare and drum.

Parameters
snappy1 = just snare. 0 = just drum.

◆ SetSustain()

void AnalogSnareDrum::SetSustain ( bool sustain)

Init the module

Parameters
sample_rateAudio engine sample rate

◆ SetTone()

void AnalogSnareDrum::SetTone ( float tone)

Set the brightness of the drum tone.

Parameters
toneWorks 0-1. 1 = bright, 0 = dark.

◆ Trig()

void AnalogSnareDrum::Trig ( )

Trigger the drum


The documentation for this class was generated from the following files: