Class daisysp::HiHat¶
template <typename MetallicNoiseSource, typename VCA, bool resonance>
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¶
function Init¶
Initialize the module
Parameters:
sample_rate
Audio engine sample rate
function Process¶
Get the next sample
Parameters:
trigger
Hit the hihat with true. Defaults to false.
function SetAccent¶
Set how much accent to use
Parameters:
accent
Works 0-1.
function SetDecay¶
Set the length of the hihat decay
Parameters:
decay
Works > 0. Tuned for 0-1.
function SetFreq¶
Set the hihat tone's root frequency
Parameters:
f0
Freq in Hz
function SetNoisiness¶
Sets the mix between tone and noise
Parameters:
snappy
1 = just noise. 0 = just tone.
function SetSustain¶
Make the hihat ring out infinitely.
Parameters:
sustain
True = infinite sustain.
function SetTone¶
Set the overall brightness / darkness of the hihat.
Parameters:
tone
Works from 0-1.
function Trig¶
Trigger the hihat
function ~HiHat¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Drums/hihat.h