DaisySP
Loading...
Searching...
No Matches
daisysp::HiHat< MetallicNoiseSource, VCA, resonance > Class Template Reference

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

#include <hihat.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 SetNoisiness (float noisiness)
 

Detailed Description

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

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.

Member Function Documentation

◆ Init()

template<typename MetallicNoiseSource = SquareNoise, typename VCA = LinearVCA, bool resonance = true>
void daisysp::HiHat< MetallicNoiseSource, VCA, resonance >::Init ( float sample_rate)
inline

Initialize the module

Parameters
sample_rateAudio engine sample rate

◆ Process()

template<typename MetallicNoiseSource = SquareNoise, typename VCA = LinearVCA, bool resonance = true>
float daisysp::HiHat< MetallicNoiseSource, VCA, resonance >::Process ( bool trigger = false)
inline

Get the next sample

Parameters
triggerHit the hihat with true. Defaults to false.

◆ SetAccent()

template<typename MetallicNoiseSource = SquareNoise, typename VCA = LinearVCA, bool resonance = true>
void daisysp::HiHat< MetallicNoiseSource, VCA, resonance >::SetAccent ( float accent)
inline

Set how much accent to use

Parameters
accentWorks 0-1.

◆ SetDecay()

template<typename MetallicNoiseSource = SquareNoise, typename VCA = LinearVCA, bool resonance = true>
void daisysp::HiHat< MetallicNoiseSource, VCA, resonance >::SetDecay ( float decay)
inline

Set the length of the hihat decay

Parameters
decayWorks > 0. Tuned for 0-1.

◆ SetFreq()

template<typename MetallicNoiseSource = SquareNoise, typename VCA = LinearVCA, bool resonance = true>
void daisysp::HiHat< MetallicNoiseSource, VCA, resonance >::SetFreq ( float f0)
inline

Set the hihat tone's root frequency

Parameters
f0Freq in Hz

◆ SetNoisiness()

template<typename MetallicNoiseSource = SquareNoise, typename VCA = LinearVCA, bool resonance = true>
void daisysp::HiHat< MetallicNoiseSource, VCA, resonance >::SetNoisiness ( float noisiness)
inline

Sets the mix between tone and noise

Parameters
snappy1 = just noise. 0 = just tone.

◆ SetSustain()

template<typename MetallicNoiseSource = SquareNoise, typename VCA = LinearVCA, bool resonance = true>
void daisysp::HiHat< MetallicNoiseSource, VCA, resonance >::SetSustain ( bool sustain)
inline

Make the hihat ring out infinitely.

Parameters
sustainTrue = infinite sustain.

◆ SetTone()

template<typename MetallicNoiseSource = SquareNoise, typename VCA = LinearVCA, bool resonance = true>
void daisysp::HiHat< MetallicNoiseSource, VCA, resonance >::SetTone ( float tone)
inline

Set the overall brightness / darkness of the hihat.

Parameters
toneWorks from 0-1.

◆ Trig()

template<typename MetallicNoiseSource = SquareNoise, typename VCA = LinearVCA, bool resonance = true>
void daisysp::HiHat< MetallicNoiseSource, VCA, resonance >::Trig ( )
inline

Trigger the hihat


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