Add a bass line

Give your beat a low end. Start with one bass note per bar, add a rhythm, then balance it against the drums.

  • Lesson 3
  • 100 BPM

You will learn

  • Follow C–Am–F–G with bass roots
  • Reuse a rhythm with a root and its fifth
  • Balance parts with velocity

Follow the chord roots

The next song uses C, Am, F and G. Its bass roots are C, A, F and G: one note for each bar. fn('cat', …) plays one child pattern per cycle, so these four notes span four bars.

Lower octaves put the bass below the melody. The Bass Cookbook supplies its filtered sound.

// One note per bar: the root (lowest note) of each chord in C – Am – F – G.
export const roots = chain(
  fn('cat',
    fn('note', pitch('c2')),
    fn('note', pitch('a1')),
    fn('note', pitch('f2')),
    fn('note', pitch('g2')),
  ),
  ...bassSound(BASS_DEFAULTS),
)

One bass root per bar

Ready

Write one reusable bar

Give the bass eight slots per bar. Rests leave space between notes; the root establishes the chord and its fifth adds another chord tone. A fifth here is seven semitones above the root.

The helper takes two pitches, so the rhythm stays the same when the harmony changes.

react-strudel-kit
// A function writes the rhythm once; each bar passes its own root and fifth.
// The fifth is the note seven semitones (five letter names) above the root.
const bassBar = (root: Pitch, fifth: Pitch) => sequence(
  pitch(root), rest(), pitch(root), pitch(fifth),
  rest(), pitch(root), pitch(fifth), pitch(root),
)

Carry the rhythm through four bars

Call that helper with C/G, A/E, F/C and G/D. Each pair gets one bar through cat. The first bass strike lands with the kick on beat 1; later notes fill the spaces.

export const walkingRoots = chain(
  fn('cat',
    fn('note', bassBar('c2', 'g2')), // C: C and G.
    fn('note', bassBar('a1', 'e2')), // Am: A and E.
    fn('note', bassBar('f2', 'c3')), // F: F and C.
    fn('note', bassBar('g2', 'd3')), // G: G and D.
  ),
  ...bassSound(BASS_DEFAULTS),
)

Roots and fifths

Ready

Bring the drums back

Stack the bass with the kick and snare from Make a beat. The drum pattern repeats each bar while the bass travels through its four-bar progression. Put cpm on the combined pattern so the parts share one tempo.

// The kick and snare from the Backbeat example, under the new bass line.
export const bassWithDrums = chain(
  fn('stack', walkingRoots, kickOneThree, snareTwoFour),
  fn('cpm', 25),
)

Bass with kick and snare

Ready

Make it yours

Change the controls, then press Play. While playing, changes apply live; while stopped, they wait for your next Play. The Strudel output tab shows your current values.

Your bass mix

Ready
export const makeBassMix = (bpm: number, bassLevel: number) => chain(
  fn('stack',
    kickOneThree,
    snareTwoFour,
    eighthHats,
    chain(walkingRoots, fn('velocity', bassLevel)), // Balance the bass without replacing its gain.
  ),
  fn('cpm', bpm / 4),
)

Recap

The practice mix adds hi-hats. Start with the bass at 0, then raise it until its rhythm is clear against the drums. velocity scales the sound’s gain; it does not replace the sound design.

  • cat advances through bars; sequence divides the notes inside a bar.
  • A rhythm helper lets each chord use its own root and fifth.
  • Use rests and level changes to leave space for the other parts.

Compare the Bass line example before adding harmony in the next lesson.