Hi-hat
A hi-hat is the same white noise as the snare, filtered much higher and cut much shorter. Accents — some strikes louder than others — make it feel played rather than programmed.
The sound
Compare it with the snare: one high-pass filter instead of two filters, and a decay several times shorter. Same source, very different sound.
export const hiHatSound = (sound: HiHatSettings): PatternModifierCall[] => [
fn('highPass', sound.lowCut), // Keep only the brightest part of the noise.
fn('decay', sound.decay), // Much shorter than the snare: a tick, not a burst.
fn('sustain', 0),
fn('release', 0.01),
fn('gain', 0.08),
]Playing it on its own takes a rhythm, here written next to the sound. Switch to Strudel output to see the values the sliders are playing now.
export const hiHatAlone = (settings: HiHatSettings) => chain(
fn('sample', repeat(NOISE, 8)), // Eight strikes per bar.
...hiHatSound(settings),
// velocity scales each strike: full on the beat, softer in between.
fn('velocity', repeat(sequence(number(1), number(settings.offBeat)), 4)),
fn('cpm', 25),
)How it is built
| Part | Unit | What it does |
|---|---|---|
sample('white') | — | The same source as the snare. |
highPass | Hz | Keeps only the top of the noise. Lower values let in more body and grit. |
decay | seconds | Very short sounds like a closed hi-hat; longer rings like an open one. |
velocity | × gain | Scales each strike: 1 is full, 0.5 is half. Written as its own pattern, so it can accent strikes without changing the sound. |
In a groove
Your hi-hats, accents included, over the kick and snare from the previous pages.
export const hiHatGroove = (settings: HiHatSettings) => chain(
fn('stack',
chain(fn('note', sequence(KICK, rest(), KICK, rest())), ...kickSound(KICK_DEFAULTS)),
chain(fn('sample', sequence(rest(), NOISE, rest(), NOISE)), ...snareSound(SNARE_DEFAULTS)),
chain(
fn('sample', repeat(NOISE, 8)),
...hiHatSound(settings),
fn('velocity', repeat(sequence(number(1), number(settings.offBeat)), 4)),
),
),
fn('cpm', 25),
)Full beat
Used in: Hi-hat accents · Four on the floor · Backbeat