Kick
A kick is a low sine tone that starts high and drops fast. Two envelopes do the work: one moves the pitch, the other fades the volume.
The sound
The sound is a list of settings, with no rhythm in it. The sliders feed its three arguments; every page that uses this kick gets the same sound.
export const kickSound = (sound: KickSettings): PatternModifierCall[] => [
fn('instrument', sample('sine')), // A pure, low tone.
fn('pitchEnvelope', sound.pitchDrop), // Start this many semitones above C2…
fn('pitchDecay', sound.pitchTime), // …and fall back this fast (s): the thump.
fn('decay', sound.decay), // Loudness fades on its own timeline (seconds).
fn('sustain', 0),
fn('release', 0.03),
fn('gain', 0.75),
]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 kickAlone = (settings: KickSettings) => chain(
fn('note', repeat(KICK, 4)), // Four strikes per bar.
...kickSound(settings),
fn('cpm', 25), // 100 BPM.
)How it is built
| Part | Unit | What it does |
|---|---|---|
instrument(sine) | — | The source: a pure tone with no overtones, so it reads as a thump rather than a note. |
pitchEnvelope | semitones | How far above C2 each strike starts. Larger values give more click and punch. |
pitchDecay | seconds | How fast the pitch falls back to C2. This is the pitch envelope; it does not change loudness. |
decay · sustain · release | seconds | The amplitude envelope: how fast loudness fades. Separate from the pitch envelope. |
In a groove
Your kick, with the current slider values, under eighth-note hi-hats.
export const kickGroove = (settings: KickSettings) => chain(
fn('stack',
chain(fn('note', repeat(KICK, 4)), ...kickSound(settings)),
chain(fn('sample', repeat(NOISE, 8)), ...hiHatSound(HI_HAT_DEFAULTS)),
),
fn('cpm', 25),
)Kick and hi-hats
Used in: Four on the floor · Backbeat