Skip to content

daisysp::HiHat

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

#include <hihat.h>

Public Functions

Name
HiHat()
~HiHat()
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 SetNoisiness(float noisiness)

Detailed Description

template <typename MetallicNoiseSource  =SquareNoise,
typename VCA  =LinearVCA,
bool resonance =true>
class daisysp::HiHat;

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

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 HiHat()

function ~HiHat

inline ~HiHat()

function Init

inline void Init(
    float sample_rate
)

Parameters:

  • sample_rate Audio engine sample rate

Initialize the module


function Process

inline float Process(
    bool trigger =false
)

Parameters:

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

Get the next sample


function Trig

inline void Trig()

Trigger the hihat


function SetSustain

inline void SetSustain(
    bool sustain
)

Parameters:

  • sustain True = infinite sustain.

Make the hihat ring out infinitely.


function SetAccent

inline void SetAccent(
    float accent
)

Parameters:

  • accent Works 0-1.

Set how much accent to use


function SetFreq

inline void SetFreq(
    float f0
)

Parameters:

  • f0 Freq in Hz

Set the hihat tone's root frequency


function SetTone

inline void SetTone(
    float tone
)

Parameters:

  • tone Works from 0-1.

Set the overall brightness / darkness of the hihat.


function SetDecay

inline void SetDecay(
    float decay
)

Parameters:

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

Set the length of the hihat decay


function SetNoisiness

inline void SetNoisiness(
    float noisiness
)

Parameters:

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

Sets the mix between tone and noise

---

Updated on 2024-01-03 at 19:38:46 +0000