Skip to content

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

const int daisysp::AnalogSnareDrum::kNumModes;

Public Functions Documentation

function AnalogSnareDrum

inline daisysp::AnalogSnareDrum::AnalogSnareDrum () 

function Init

void daisysp::AnalogSnareDrum::Init (
    float sample_rate
) 

Init the module

Parameters:

  • sample_rate Audio engine sample rate

function Process

float daisysp::AnalogSnareDrum::Process (
    bool trigger=false
) 

Get the next sample

Parameters:

  • trigger Hit the drum with true. Defaults to false.

function SetAccent

void daisysp::AnalogSnareDrum::SetAccent (
    float accent
) 

Set how much accent to use

Parameters:

  • accent Works 0-1.

function SetDecay

void daisysp::AnalogSnareDrum::SetDecay (
    float decay
) 

Set the length of the drum decay

Parameters:

  • decay Works with positive numbers

function SetFreq

void daisysp::AnalogSnareDrum::SetFreq (
    float f0
) 

Set the drum's root frequency

Parameters:

  • f0 Freq in Hz

function SetSnappy

void daisysp::AnalogSnareDrum::SetSnappy (
    float snappy
) 

Sets the mix between snare and drum.

Parameters:

  • snappy 1 = just snare. 0 = just drum.

function SetSustain

void daisysp::AnalogSnareDrum::SetSustain (
    bool sustain
) 

Init the module

Parameters:

  • sample_rate Audio engine sample rate

function SetTone

void daisysp::AnalogSnareDrum::SetTone (
    float tone
) 

Set the brightness of the drum tone.

Parameters:

  • tone Works 0-1. 1 = bright, 0 = dark.

function Trig

void daisysp::AnalogSnareDrum::Trig () 

Trigger the drum


function ~AnalogSnareDrum

inline daisysp::AnalogSnareDrum::~AnalogSnareDrum () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Drums/analogsnaredrum.h