Skip to content

Class daisysp::HiHat

template <typename MetallicNoiseSource, typename VCA, bool resonance>

ClassList > daisysp > HiHat

808 HH, with a few extra parameters to push things to the CY territory... More...

  • #include <hihat.h>

Public Functions

Type Name
HiHat ()
void Init (float sample_rate)
float Process (bool trigger=false)
void SetAccent (float accent)
void SetDecay (float decay)
void SetFreq (float f0)
void SetNoisiness (float noisiness)
void SetSustain (bool sustain)
void SetTone (float tone)
void Trig ()
~HiHat ()

Detailed Description

Author:

Ben Sergentanis

Date:

Jan 2021 The template parameter MetallicNoiseSource allows another kind of "metallic \n noise" to be used, for results which are more similar to KR-55 or FM hi-hats.

Ported from pichenettes/eurorack/plaits/dsp/drums/hihat.h to an independent module. Original code written by Emilie Gillet in 2016.

Public Functions Documentation

function HiHat

inline daisysp::HiHat::HiHat () 

function Init

inline void daisysp::HiHat::Init (
    float sample_rate
) 

Initialize the module

Parameters:

  • sample_rate Audio engine sample rate

function Process

inline float daisysp::HiHat::Process (
    bool trigger=false
) 

Get the next sample

Parameters:

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

function SetAccent

inline void daisysp::HiHat::SetAccent (
    float accent
) 

Set how much accent to use

Parameters:

  • accent Works 0-1.

function SetDecay

inline void daisysp::HiHat::SetDecay (
    float decay
) 

Set the length of the hihat decay

Parameters:

  • decay Works > 0. Tuned for 0-1.

function SetFreq

inline void daisysp::HiHat::SetFreq (
    float f0
) 

Set the hihat tone's root frequency

Parameters:

  • f0 Freq in Hz

function SetNoisiness

inline void daisysp::HiHat::SetNoisiness (
    float noisiness
) 

Sets the mix between tone and noise

Parameters:

  • snappy 1 = just noise. 0 = just tone.

function SetSustain

inline void daisysp::HiHat::SetSustain (
    bool sustain
) 

Make the hihat ring out infinitely.

Parameters:

  • sustain True = infinite sustain.

function SetTone

inline void daisysp::HiHat::SetTone (
    float tone
) 

Set the overall brightness / darkness of the hihat.

Parameters:

  • tone Works from 0-1.

function Trig

inline void daisysp::HiHat::Trig () 

Trigger the hihat


function ~HiHat

inline daisysp::HiHat::~HiHat () 


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