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_rateAudio engine sample rate
function Process¶
Get the next sample
Parameters:
triggerHit the hihat with true. Defaults to false.
function SetAccent¶
Set how much accent to use
Parameters:
accentWorks 0-1.
function SetDecay¶
Set the length of the hihat decay
Parameters:
decayWorks > 0. Tuned for 0-1.
function SetFreq¶
Set the hihat tone's root frequency
Parameters:
f0Freq in Hz
function SetNoisiness¶
Sets the mix between tone and noise
Parameters:
snappy1 = just noise. 0 = just tone.
function SetSustain¶
Make the hihat ring out infinitely.
Parameters:
sustainTrue = infinite sustain.
function SetTone¶
Set the overall brightness / darkness of the hihat.
Parameters:
toneWorks 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