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¶
function ~HiHat¶
function Init¶
Parameters:
- sample_rate Audio engine sample rate
Initialize the module
function Process¶
Parameters:
- trigger Hit the hihat with true. Defaults to false.
Get the next sample
function Trig¶
Trigger the hihat
function SetSustain¶
Parameters:
- sustain True = infinite sustain.
Make the hihat ring out infinitely.
function SetAccent¶
Parameters:
- accent Works 0-1.
Set how much accent to use
function SetFreq¶
Parameters:
- f0 Freq in Hz
Set the hihat tone's root frequency
function SetTone¶
Parameters:
- tone Works from 0-1.
Set the overall brightness / darkness of the hihat.
function SetDecay¶
Parameters:
- decay Works > 0. Tuned for 0-1.
Set the length of the hihat decay
function SetNoisiness¶
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