House loop

Four-on-the-floor at 124 BPM: off-beat bass and hi-hats, chord stabs and a short lead hook.

  • Intermediate
  • A minor
  • 124 BPM
  • 4 bars

You will learn

  • Build drive from the off-beats, and let parts of different lengths loop against each other

The beat

A kick on every beat, the snare on 2 and 4, and hi-hats on the off-beats. A longer hi-hat decay turns the closed tick into an open “tss”.

// Four-on-the-floor kick, clap-like snare on 2 and 4, and open hi-hats on the
// off-beats: the same hi-hat sound with a longer decay.
export const houseBeat = fn('stack',
  chain(fn('note', sequence(KICK, KICK, KICK, KICK)), ...kickSound(KICK_DEFAULTS)),
  chain(fn('sample', sequence(rest(), NOISE, rest(), NOISE)), ...snareSound({ ...SNARE_DEFAULTS, lowCut: 1800, decay: 0.12 })),
  chain(
    fn('sample', sequence(rest(), NOISE, rest(), NOISE, rest(), NOISE, rest(), NOISE)),
    ...hiHatSound({ ...HI_HAT_DEFAULTS, decay: 0.12 }),
  ),
)

House beat

Ready

Off-beat bass

The bass never plays on the beat. It answers each kick half a beat later, which keeps the low end from clashing and gives house its bounce.

// Off-beat bass: the root on every "and", never on the beat with the kick.
const offBeats = (root: Pitch) => sequence(
  rest(), pitch(root), rest(), pitch(root),
  rest(), pitch(root), rest(), pitch(root),
)
export const offBeatBass = chain(
  fn('cat',
    fn('note', offBeats('a1')),
    fn('note', offBeats('f1')),
    fn('note', offBeats('c2')),
    fn('note', offBeats('g1')),
  ),
  ...bassSound({ ...BASS_DEFAULTS, cutoff: 900, decay: 0.12, sustain: 0 }),
)

Bass with kick

Ready

Chord stabs

Short, bright chords on beat 2 of each bar. off(1 / 16, …) adds a softer copy a quarter of a beat later, a quick flam.

// Short chord "stabs", plus a quieter copy a quarter of a beat later (off).
export const chordStabs = chain(
  fn('cat',
    fn('note', sequence(rest(), CHORDS.Am, rest(), rest())),
    fn('note', sequence(rest(), CHORDS.F, rest(), rest())),
    fn('note', sequence(rest(), CHORDS.C, rest(), rest())),
    fn('note', sequence(rest(), CHORDS.G, rest(), rest())),
  ),
  ...keysSound({ ...KEYS_DEFAULTS, brightness: 4000, decay: 0.15 }),
  fn('off', 1 / 16, patternCallback(fn('velocity', 0.5))),
)

Stabs

Ready

Hook and loop

The hook is two bars long and the chords four, so the hook plays twice per chord cycle. Parts of different lengths loop independently: each cat picks its bar from the cycle count on its own.

// A two-bar lead hook, one bar per cycle, repeating under the four-bar chords.
export const hook = chain(
  fn('cat',
    fn('note', sequence(pitch('e5'), rest(), pitch('e5'), pitch('d5'), rest(), pitch('c5'), pitch('d5'), rest())),
    fn('note', sequence(pitch('c5'), rest(), pitch('a4'), rest(), rest(), rest(), rest(), rest())),
  ),
  ...leadSound({ ...LEAD_DEFAULTS, length: 0.5 }),
)
export const houseLoop = chain(
  fn('stack', houseBeat, offBeatBass, chordStabs, hook),
  fn('postGain', 0.75), // Four busy parts: leave headroom.
  fn('cpm', 31),
)

House loop

Ready