Skip to content
Try Our Producer Challenges - Win Samples & Real Prizes
Try Our Producer Challenges - Win Samples & Real Prizes
Producer programming a bassline in a DAW piano roll alongside drum channels

How to Write Basslines for Electronic Music

Learn Music Theory for Producers Basslines & Root Movement

Quick answer

How to write a bassline in electronic music: confirm your key, anchor the line on the tonic, place notes around the kick pattern rather than over it, and keep most notes inside the scale with sparing chromatic movement for tension. Note length sets the role - short staccato 16ths for jump-up, sustained quarter and half notes for liquid and halftime dubstep. Layer a simple sub holding the root with a rhythmically active mid-bass on top, and tune both to the kick for clean low-end integration.

Learning how to write a bassline in electronic music is where music theory becomes audibly important. The notes you choose, the rhythm you play them in, and the relationship between your bass and your kick drum determine whether your track has the locked-in low-end groove that defines DnB and UK dubstep - or whether your bass and drums sound like they belong to different songs.

This guide covers bassline writing as a practical theory application. The relationship between bass and kick, root notes and the tonic, how to write basslines that work in the piano roll, rhythmic patterns that lock with DnB and dubstep drums, chromatic movement, the different roles of sub bass and mid-bass, and examples from working production.

The Relationship Between Kick and Bass Note

In electronic music, the kick drum and the bass note are inseparable. They both occupy the low-end frequency range covered in the mixing low end guide, and they both communicate rhythm to the listener. Their relationship - musical and rhythmic - is the foundation of the genre's groove.

Three approaches to the kick-bass relationship dominate in DnB and UK dubstep.

▸ The three kick-bass relationship patterns

Bass Between the Kicks

The bass hits in the spaces between kick drums - typically on the off-beats or in 16th-note patterns that avoid kick positions. The kick punches through cleanly; the bass fills the rhythmic gaps. The standard pattern for DnB jump-up and aggressive sub-genres.

Bass Over the Kicks

The bass plays through the kick positions - either continuously sustaining or playing notes that coincide with kick hits. Requires careful sidechain compression (covered in the sidechain guide) to prevent kick and bass from masking each other. Common in liquid DnB and halftime dubstep where bass and kick coexist as continuous low-end content.

Bass Replaces the Kick

The bass note itself provides the low-end weight that a kick would normally provide. Used in modern UK dubstep where the bass design is so dominant that an additional kick would create clutter. The bass becomes both the harmonic and rhythmic foundation.

For most DnB sub-genres, the "bass between the kicks" pattern is the default. The kick drum drives the rhythm; the bass weaves around it. The result is locked-in low-end groove where both elements have their space.

Root Notes and the Tonic

The tonic is the home note of a key - the note that feels resolved and stable. If your track is in A minor, the tonic is A. The note A is where your music "rests" - your bassline can wander but typically returns to A for resolution.

The root note of a chord is the note the chord is built on. An A minor chord has A as its root note. When the chord changes to F major, F becomes the root note for that chord. The bassline often follows root notes - playing A under the A minor chord, F under the F major chord, etc.

For DnB and UK dubstep specifically, where many tracks have minimal chord movement, the bassline frequently sits on the tonic for the entire track. An A minor track might have a bassline that revolves around A throughout - with occasional movement to other scale notes for variety, but A as the gravitational centre.

Knowing your tonic is the single most important step in writing a bassline. The tonic is where your bassline starts (usually), where it returns to for resolution, and what every other note is heard in relation to.

Producer programming a bassline in a DAW piano roll alongside drum channels

Anchoring the bassline on the tonic and letting it wander to nearby scale notes is what gives DnB and dubstep tracks their gravitational pull back to the root.

How to Write a Bassline in Electronic Music: The Piano Roll Workflow

The practical workflow for writing basslines in any DAW.

▸ The bassline writing workflow
1

Confirm Your Project's Key

Before writing any bass notes, know what key your track is in. If you have a melodic loop or chord stab, identify its key (covered in the scales and modes guide). If you are writing from scratch, choose a key - A minor is a common starting point for DnB.

2

Highlight Scale Notes in the Piano Roll

Modern DAWs let you highlight the notes of a specific scale in the piano roll. Set the scale to your project's key (e.g. A minor). Notes outside the scale are visually de-emphasised, making it harder to accidentally play wrong notes. Ableton's "Scale" feature, FL Studio's piano roll scale highlighting, and Logic's Smart Tempo scales all work for this.

3

Start with the Tonic

Write the tonic note at the start of your bassline pattern. For A minor, that is A. Most basslines start on the tonic; it establishes the key for the listener immediately.

4

Place Notes Around the Kick Pattern

Look at your kick drum pattern. Place bass notes in the rhythmic gaps between kicks (for "bass between the kicks" approach) or aligned with kick hits if you want continuous low-end weight. The bass rhythm should complement the kick rhythm, not duplicate or fight it.

5

Use Mostly Tonic, with Variations

For DnB and dubstep, the bassline often plays mostly the tonic note with occasional movement to other scale notes. Try a pattern of mostly A with occasional jumps to G, E, or C (other notes in the A minor scale). The variation breaks monotony while the tonic provides anchor.

6

Test Against the Drums

Play the bassline with the drums. Does it lock with the kick pattern? Does it feel resolved or unresolved? Adjust note placement, length and pitch until the bassline feels like it belongs with the drums.

Rhythmic Relationship Between Bass and Kick

The rhythmic pattern of your bassline relative to your kick is what creates groove. Three common patterns to know.

Off-Beat Bass (The Standard)

The kick hits on the downbeats (1 and 3 in DnB's 174 BPM 4/4 pattern). The bass hits on the off-beats (2 and 4, plus the 8th-note off-beats between them). Each element gets its rhythmic space; together they create a continuous low-end pulse.

In 16th-note terms for a typical DnB pattern: kicks on 1 and 11 (the second kick is the "and of 3" in a 16-step grid), bass notes on 5, 7, 9, 13, 15 - filling the spaces between the kicks. The exact pattern varies; the principle is bass-fills-gaps.

Halftime Bass (Modern Dubstep)

In halftime dubstep at 140 BPM, the kick hits on beat 1 only (out of 4 beats per bar). The snare hits on beat 3. The bass typically sustains across the bar - one long note from beat 1 to beat 3, another from beat 3 to the end of the bar. The bass is continuous; the rhythm comes from the drums alone.

Doubled Bass (Bass on Every Kick)

The bass plays a note exactly when the kick hits, with the two elements doubling each other rhythmically. This creates a strong, locked-together feel but requires careful sidechain compression to prevent frequency masking. Common in some neurofunk and modern UK dubstep where bass and kick are designed as a single low-end statement.

Note Length and How It Affects Groove

The length of each bass note is as important as which note plays.

▸ How bass note length affects feel
16th-note bass Short, punchy, rhythmic. Each bass note is a percussive event that fills a specific rhythmic position. Used in jump-up DnB and aggressive sub-genres where the bass is rhythmically driving.
8th-note bass Medium length, balanced. Bass notes have time to develop pitch character while still feeling rhythmic. The most common length in standard DnB.
Quarter-note bass Longer, more sustained. Each bass note has time to feel like a held tone rather than a percussive hit. Common in liquid DnB and atmospheric tracks.
Half-note bass (or longer) Sustained, harmonic. Bass functions as continuous harmonic content rather than rhythmic elements. Common in halftime dubstep and atmospheric sections.

For DnB and dubstep specifically, the note length communicates sub-genre identity. Jump-up uses short staccato basslines; liquid uses longer sustained notes; halftime dubstep uses very long sustained bass; neurofunk uses a mix depending on the section.

Chromatic Movement for Tension

Most of your bassline should use notes from your project's scale. The exception: chromatic notes (notes outside the scale) used sparingly for tension.

A chromatic note creates harmonic tension because it does not "belong" to the key. The listener perceives it as unresolved, expecting it to move to a resolution. When used deliberately, this tension adds drama and movement to a bassline that would otherwise feel static.

Common chromatic uses in DnB bass:

  • Chromatic approach notes: playing a note one semitone below the target before landing on the target. In A minor, playing G# before resolving to A creates a leading-tone tension that pulls into the resolution.
  • Chromatic walks: a short series of chromatic notes leading up or down to a scale note. Creates movement and direction in the bassline.
  • Tension notes on weak beats: chromatic notes placed on rhythmically weak positions (16th-note off-beats) where they feel like passing tension rather than structural problems.

The rule: chromatic notes are powerful but should be the exception, not the rule. A bassline that uses too many chromatic notes loses its harmonic foundation - the listener cannot tell what key the track is in, and the tension stops feeling like tension because nothing else is stable.

Pair of studio monitors and a sub on stands set up for low-end listening

Splitting bass into a sustained sub layer and a rhythmically active mid-bass is how neurofunk and modern dubstep get weight and movement out of the same low-end window.

Sub vs Mid-Bass Rhythmic Roles

In most DnB and dubstep tracks, the bass is actually two (or more) elements - a sub bass and a mid-bass - working together. Each one has a different role.

Sub Bass Role

Provides the low-end weight and harmonic foundation. Typically plays simpler rhythmic patterns - often just root notes on long sustained notes or aligned with kick positions. The sub bass establishes the key's tonic at low frequencies.

Mid-Bass Role

Provides rhythmic character and tonal personality. Typically plays more rhythmically active patterns - 16th notes, chromatic variations, faster movement. The mid-bass carries most of the audible musical interest of the bass.

The relationship: the sub bass might play long sustained tonic notes throughout a section while the mid-bass plays an active 16th-note pattern with chromatic variations. The two layers complement each other - sub providing weight and harmonic foundation, mid-bass providing character and movement.

For sound design of these layers, see the dubstep bass design guide and the neurofunk bass design guide.

Bass Movement Over Chord Changes

When your track does have chord changes (more common in liquid DnB and atmospheric dubstep than in aggressive sub-genres), your bassline needs to follow the changes.

The principle: your bass follows the root note of whatever chord is playing. If your progression is A minor → F major → C major → G major, your bassline plays primarily A under the A minor, F under the F major, C under the C major, and G under the G major.

This is the foundation of bass writing across most Western music. The bass note tells the listener what chord they are hearing - more so than the chord notes themselves. A piano chord without bass sounds incomplete; the bass note is what makes it feel rooted.

The variations: your bass can also play other notes from the chord (the 3rd or 5th of the chord) for movement, but the root note should be the most common bass note under each chord. This is called walking bass in jazz terminology - the bass walks between root notes via passing tones - and applies in electronic music too, though usually less actively than in jazz. Attack Magazine's Beat Dissected teardowns and Sound on Sound's piece on programming basslines both unpack how working producers shape root movement against drums.

Playing Bass Patterns Against a Drum Loop

The practical exercise for developing bassline writing skill: take a drum loop you like, then write multiple different bass patterns against it. See which patterns lock with the drums and which fight them.

▸ The bassline practice exercise
1

Load a Drum Loop

A 2-bar DnB drum loop or 4-bar dubstep drum loop. From a sample pack or one you have programmed. Set the project to the loop's tempo and identify the kick positions.

2

Choose a Key

Set your project to a minor key - A minor is a good default. Highlight scale notes in the piano roll so you stay in key by default.

3

Write Variation 1: Off-Beat Bass

Place bass notes in the rhythmic gaps between kicks. Mostly tonic note (A) with occasional movement to G or E. Listen to how the bass and drums interact.

4

Write Variation 2: Doubled Bass

Place bass notes aligned with kick positions plus filling between. Heavier feeling, requires careful kick-bass tuning and sidechain. Compare to Variation 1.

5

Write Variation 3: Sustained Bass

Long bass notes that sustain across multiple beats. The bass provides continuous low-end weight; rhythm comes from the drums alone. Compare to Variations 1 and 2.

6

Write Variation 4: With Chromatic Tension

Take your best previous variation and add 1-2 chromatic notes for tension. Notice how the chromatic notes change the emotional feel.

7

A/B All Variations

Listen to all variations back to back against the same drum loop. Notice which patterns lock most naturally, which feel rhythmic vs harmonic, which have most energy. The exercise teaches you what works.

Examples from DnB and Dubstep Production

Studying basslines in finished tracks accelerates understanding. Specific examples to listen for:

Jump-up DnB basslines often use the off-beat-bass pattern with short 16th-note bass notes - the bass is rhythmically aggressive and primarily uses the tonic and a few neighbour notes. Listen to tracks from artists like Hedex or Bou for the modern jump-up bassline approach.

Liquid DnB basslines use longer note durations and more chord movement. The bass follows chord progressions and provides harmonic foundation rather than rhythmic drive. Listen to tracks from High Contrast or Calibre for melodic, harmonically active basslines.

Neurofunk basslines often have layered bass with a sustained sub plus an aggressive mid-bass playing rhythmic patterns. The sub holds the tonic; the mid-bass provides the technical movement that defines the sub-genre. Listen to Noisia or Mefjus tracks for this approach.

Halftime dubstep basslines are often sustained across very long durations - one bass note might last for an entire 2-bar phrase, with the rhythmic interest coming entirely from the drums above. Listen to Deep Medi releases for the long-sustained bassline approach.

Modern aggressive dubstep basslines often replace the kick entirely - the bass design is so dominant that an additional kick would clutter the mix. The bass becomes both harmonic and rhythmic foundation. Listen to producers like Zomboy or Excision for this approach.

Common Bassline Writing Mistakes

Not knowing your project's key. Writing a bassline without knowing what key you are in produces basslines that randomly clash with melodic content. Identify your key first; write the bassline in that key.
Bass and kick playing identical rhythms. Unless you are deliberately doubling kick and bass (and sidechaining heavily), bass and kick should occupy different rhythmic positions. Identical rhythms create frequency masking and loss of clarity.
Too many chromatic notes. Chromatic notes are powerful when used sparingly. A bassline that constantly uses out-of-key notes loses its harmonic foundation and stops creating tension because nothing else is stable.
Sub bass that is too rhythmically active. The sub bass should usually be simpler than the mid-bass. Sub bass playing fast 16th-note patterns creates muddy low-end pulsing rather than clean foundation. Keep sub simple; let mid-bass do the rhythmic work.
Ignoring note length. The same notes played with different durations produce very different basslines. Short staccato notes feel rhythmic; long sustained notes feel harmonic. Match note length to the role you want the bass to play.
Wrong bass note under a chord. If your chord is F major and your bass plays A under it, the chord sounds inverted (which can be intentional but often creates ambiguity). Default to playing the root note of whatever chord is playing.
No relationship to the kick at all. A bassline written without considering the kick pattern produces drums and bass that feel disconnected. Always write basslines in relation to the kick pattern.

Key Takeaways

▸ What to remember from this guide
  1. The kick-bass relationship is the foundation of DnB and dubstep groove. Bass between kicks, over kicks, or replacing kicks - each pattern produces different feels.
  2. The tonic is the home note of your key. Most basslines revolve around the tonic with variations to other scale notes.
  3. Confirm your project's key before writing any bassline. Highlight scale notes in the piano roll to stay in key by default.
  4. Note length affects groove: short staccato notes feel rhythmic, long sustained notes feel harmonic. Match length to the bassline's role.
  5. Use chromatic notes sparingly for tension. Most of your bassline should use notes from your project's scale.
  6. Sub bass and mid-bass have different roles. Sub provides weight and harmonic foundation; mid-bass provides rhythmic character.
  7. Under chord changes, follow the root note of each chord. The bass tells the listener what chord they are hearing.
  8. Practice exercise: write multiple bassline variations against the same drum loop. Compare which patterns lock and which fight.
  9. Listen to genre exemplars: jump-up for off-beat bass, liquid for melodic bass, neurofunk for layered bass, halftime dubstep for sustained bass.

Sub Bass and Bass Loop Material for Writing

Bassline writing depends on having appropriate bass material to work with. Sub bass one-shots tuned to common DnB and dubstep root notes simplify the writing process - you can write basslines in your project's key without worrying about retuning the source material. Bass loops in known keys provide ready-made rhythmic material that you can integrate with your own programmed elements.

Where KAN Samples fits in: KAN Samples packs include sub bass one-shots and bass loops labelled by key, designed for the rhythmic patterns this guide covers. Use them as the foundation of your bass writing - play one-shots in your project's key, or build around bass loops with your own kick and mid-range bass programming.

Music Theory Pillar Complete

Sub Bass One-Shots and Loops in Known Keys

KAN Samples packs include sub bass one-shots and bass loops labelled by key - so when you write basslines in your project's key, the source material works without retuning or guesswork.

Browse KAN Sample Packs →
Previous article Producer Workflow - How to Work Faster and Finish More Tracks
Next article Frequency and Pitch in Music Production
About KAN Samples

About KAN Samples

At KAN Samples, our mission is to preserve the rich history of Drum & Bass while helping producers shape its future.

Through free resources, classic break restorations, and professional-grade sample packs, we aim to empower artists at every level with tools that inspire creativity and respect the roots of the genre.

Explore Free Resources