Learn music theory with Sonid
  • For teachers & schools

    Sonid logo

    Learn music theory with Sonid

    Learn music theory with practical tools, guided app exercises, and a complete reference for chords, scales, notes, intervals, and modes.

    Product

    Use cases

    • For beginners
    • For guitarists
    • For pianists
    • Ear training
    • Theory practice

    Solutions

    • For teachers & schools

    Learn

    Theory

    • Intervals
    • Interval playlists
    • Chords
    • Scales
    • Terms
    • Notes reference

    Tools

    • Music Theory Playground
    • Metronome
    • Why and how to play with a metronome
    • Tuner

    Community

    • Blog
    • Basics
    • Ear training
    • About us

    Get the app

    App StoreGoogle Play

    About

    Created byMartijn van der Eijk
    Written byLida van der Eijk
    Vectors byFreepik

    Legal

    PrivacyTerms of UsePress

    Socials

    YoutubeMusic Theory Video SeriesA step-by-step guide to music theory fundamentals. These 60-second videos provide a clear, structured path to understanding how music works, optimized for a full-screen learning experience.YoutubeMusic Theory ShortsMaster music theory concepts in 60 seconds or less. Quick, vertical videos designed to give you essential theory knowledge in a fast-paced, mobile-friendly format.
    YoutubeFacebook
    @copyright Martijn van der Eijk 2026
    1. Home
    2. Blog
    3. Songwriting & Composition
    4. The Musician's Guide to Writing Better Melodies: Melodic Contour and Intervallic Function

    The Musician's Guide to Writing Better Melodies: Melodic Contour and Intervallic Function

    A single musical note holds no emotional value on its own. Its surrounding environment entirely dictates its color. If your goal is writing better melodies, you must look past random note selection. Learn how to combine horizontal movement with vertical harmony to stop guessing and start directing your listener’s exact emotional response.


    Author: Lida van der Eijk
    May 27, 2026

    Related posts


    Subscribe to our newsletter

    Play music with confidence. Discover tips, technical guides, and best practices in our monthly newsletter just for musicians.

    A single musical note holds no inherent emotional value. A "C" isn't happy, sad, or tense on its own. Its surrounding environment dictates its emotional color. To focus on writing better melodies, look past random note selection. Master how a line operates within two frameworks: horizontal movement (contour) and vertical relationship (harmony).

    When you understand how scale degrees and chords assign tension or stability to your notes, you stop relying on guesswork. Instead, you intentionally compose music that connects with your audience.

    Horizontal Movement

    Before examining how notes interact with chords, analyze how your line moves through horizontal space. This path creates the melodic contour. This geometry forms the foundation of how to write a melody that sticks with your listeners.

    1. Direction (Ascending vs. Descending Lines)

    The human ear instinctively maps physical energy onto pitch height:

    • Ascending Lines: Moving upward to higher notes requires higher frequencies. This action builds energy, suspense, and emotional tension. To write better melodies, use upward climbs to drive momentum into a chorus or climax.

    • Descending Lines: Moving downward releases energy. It mimics a physical sigh or a state of relaxation. These paths work perfectly to wind down phrases and establish resolution. Most satisfying melodic phrases end on a downward slope toward a stable resting note.

    2. Distance (Steps vs. Leaps)

    The distance between your notes determines how smooth or dramatic your melody feels.

    • Stepwise Motion (Conjunct Motion): This occurs when you move to the immediate next note in the scale (e.g., C to D, or E to F). This motion forms the backbone of great hooks. Vocalists sing it easily, and audiences find it cohesive.

    • Leaps (Disjunct Motion): This involves skipping over scale degrees to hit a distant interval (e.g., leaping from C up to A). Leaps break expectations. They deliver a sudden burst of energy or a sharp shift in tension.

    Understanding melodic movement


    On this page
    • Horizontal Movement
    • 1. Direction (Ascending vs. Descending Lines)
    • 2. Distance (Steps vs. Leaps)
    • Chord Tones vs. Tension Notes
    • Melody Note: C (1st Degree / Tonic)
    • Melody Note: D (2nd Degree / Supertonic)
    • Melody Note: E (3rd Degree / Mediant)
    • Melody Note: F (4th Degree / Subdominant)
    • Melody Note: G (5th Degree / Dominant)
    • Melody Note: A (6th Degree / Submediant)
    • Melody Note: B (7th Degree / Leading Tone)
    • A Blueprint for Melodic Impact
    • There are no Golden Rules to composing melodies
    • Blending Geometry and Gravity
    • How to Practice
    • Master writing melodies with Sonid
    Music theory libraries
    On this page
    • Horizontal Movement
    • 1. Direction (Ascending vs. Descending Lines)
    • 2. Distance (Steps vs. Leaps)
    • Chord Tones vs. Tension Notes
    • Melody Note: C (1st Degree / Tonic)
    • Melody Note: D (2nd Degree / Supertonic)
    • Melody Note: E (3rd Degree / Mediant)
    • Melody Note: F (4th Degree / Subdominant)
    • Melody Note: G (5th Degree / Dominant)
    Song Breakdown: How John Mayer Blends Blues and Jazz in Gravity
    Songwriting & Composition

    Song Breakdown: How John Mayer Blends Blues and Jazz in Gravity

    June 11, 2026

    John Mayer’s Gravity (Continuum, 2006) is a masterclass in restraint. The song spends most of its runtime on just two chords in G major, yet it never feels empty: Mayer layers gospel warmth, jazz color, and blues phrasing on a progression simple enough to teach in a minute.

    Songwriting & Composition
  1. Melody Note: A (6th Degree / Submediant)
  2. Melody Note: B (7th Degree / Leading Tone)
  3. A Blueprint for Melodic Impact
  4. There are no Golden Rules to composing melodies
  5. Blending Geometry and Gravity
  6. How to Practice
  7. Master writing melodies with Sonid
  8. Music theory libraries
    Chord libraryScale libraryInterval guide

    The Structural Balance: Relying entirely on steps makes a melody predictable and flat. Using nothing but leaps makes it feel chaotic. To succeed at writing better melodies, maintain a balanced ratio.

    Chord Tones vs. Tension Notes

    Horizontal shape creates momentum. Vertical alignment with chords determines the melody's core emotional weight. The scale provides your vocabulary, but the active chord acts like a magnet. It assigns a specific level of stability to every note.

    To master music theory for melody, categorize your notes into two functional groups based on the underlying chord:

    • Chord Tones (Stability): These notes build the chord playing underneath your melody (the root, 3rd, 5th, or 7th). When your melody hits a chord tone, frequencies lock together smoothly. This creates an immediate sense of rest and clarity. These notes act as safe harbors that tell the listener, "We have arrived."

    • Tension Notes and Extensions (Friction): These notes belong to the scale but sit outside the active chord structure. Because they conflict with the chord's foundation, they generate acoustic friction. Balancing chord tones vs tension notes controls the emotional drive of your song.

    Certain non-chord tones add rich color (like a major 9th). Others act as urgent, unstable suspensions (like a perfect 4th) that demand resolution to an adjacent chord tone. For example, hold a perfect 4th over a dominant V chord. This temporarily suspends the harmony before it resolves down a half-step to the chord's third.

    Master this relationship to predict exactly how bright, dark, stable, or tense your melody note will sound.

    Melody Note: C (1st Degree / Tonic)

    Backing ChordScale Degree of ChordMelodic Interval (above root)The Emotional Effect
    C Major (I)1stPerfect Unison (P1)Ultimate resolution. Home base, stable, and completely grounded.
    D Minor (ii)2ndMinor 7th (m7)Moody, soulful, and sophisticated; classic contemporary R&B texture.
    E Minor (iii)3rdMinor 6th (m6)Dark, melancholic, and deeply introspective.
    F Major (IV)4thPerfect 5th (P5)The "Float." Soaring, open, cinematic, and full of forward momentum.
    G Major (V)5thPerfect 4th (P4)The Sus4 Tension. Suspended and longing to resolve down a half-step.
    A Minor (vi)6thMinor 3rd (m3)Bittersweet, emotional, and classic sad-pop resolution.
    B Dim (vii°)7thMinor 2nd (m2)Extreme, unstable dissonance. Highly anxious.

    Melody Note: D (2nd Degree / Supertonic)

    Backing ChordScale Degree of ChordMelodic Interval (above root)The Emotional Effect
    C Major (I)1stMajor 2nd / 9th (M2/M9)Lush, modern, and dreamy pop color. Adds immediate depth.
    D Minor (ii)2ndPerfect Unison (P1)Stable minor landing pad. Melancholic but structurally safe.
    E Minor (iii)3rdMinor 7th (m7)Soft, jazzy, and quietly reflective.
    F Major (IV)4thMajor 6th (M6)Bright, hopeful, and cinematic. Gives a unique "Dorian" lift.
    G Major (V)5thPerfect 5th (P5)Strong, open, and conversational. Highly stable over the dominant.
    A Minor (vi)6thPerfect 4th (P4)Mild suspension. Wants to settle down to the note C.
    B Dim (vii°)7thMinor 3rd (m3)Dark and tragic, matching the tension of the diminished bass.

    Melody Note: E (3rd Degree / Mediant)

    Backing ChordScale Degree of ChordMelodic Interval (above root)The Emotional Effect
    C Major (I)1stMajor 3rd (M3)Pure sweetness. This note explicitly defines the "happy" major vibe.
    D Minor (ii)2ndMajor 2nd / 9th (M2/M9)Sophisticated and deeply expressive minor ballad flavor.
    E Minor (iii)3rdPerfect Unison (P1)Pure minor stability. Dark, cold, and resolved.
    F Major (IV)4thMajor 7th (M7)Romantic, nostalgic, and dreamy. The classic lo-fi / indie tension.
    G Major (V)5thMajor 6th (M6)Sweet, comforting, and traditional pop/country resolution.
    A Minor (vi)6thPerfect 5th (P5)Haunting, hollow, and perfectly stable minor anchor.
    B Dim (vii°)7thPerfect 4th (P4)Awkward, heavy tension. Wants to move.

    Melody Note: F (4th Degree / Subdominant)

    Backing ChordScale Degree of ChordMelodic Interval (above root)The Emotional Effect
    C Major (I)1stPerfect 4th (P4)Highly unstable over home base; pulls hard to resolve down to E.
    D Minor (ii)2ndMinor 3rd (m3)Warm, standard minor chord stability. Comforting.
    E Minor (iii)3rdMinor 2nd (m2)Extreme phrasing danger. A harsh, rubbing clash against the root.
    F Major (IV)4thPerfect Unison (P1)Absolute foundational major stability on the subdominant.
    G Major (V)5thMinor 7th (m7)Bluesy, driving, and dominant-7th energy. Wants to push forward.
    A Minor (vi)6thMinor 6th (m6)Pensive, eerie, and beautifully bittersweet — a minor 6th above A.
    B Dim (vii°)7thDiminished 5th (b5)Hollow and unstable: the diminished 5th of B°, not a perfect fifth.

    Melody Note: G (5th Degree / Dominant)

    Backing ChordScale Degree of ChordMelodic Interval (above root)The Emotional Effect
    C Major (I)1stPerfect 5th (P5)Bright, open, and triumphant secondary point of rest.
    D Minor (ii)2ndPerfect 4th (P4)Another suspension point; temporarily transforms the ii chord into a sus4.
    E Minor (iii)3rdMinor 3rd (m3)Solid, reliable, and darkly comforting minor fit.
    F Major (IV)4thMajor 2nd / 9th (M2/M9)Airy, modern, and floating. Classic "Lydian" ethereal vibe.
    G Major (V)5thPerfect Unison (P1)Full power energy. Driving, dominant, and authoritative.
    A Minor (vi)6thMinor 7th (m7)Brooding, contemporary pop and R&B minor element.
    B Dim (vii°)7thMinor 6th (m6)Complex, dark tension: a minor 6th above B — not a tritone.

    Melody Note: A (6th Degree / Submediant)

    Backing ChordScale Degree of ChordMelodic Interval (above root)The Emotional Effect
    C Major (I)1stMajor 6th (M6)Playful, jazzy, or nostalgic pop sweet spot.
    D Minor (ii)2ndPerfect 5th (P5)Pure, rock-solid minor-chord stability. Highly focused.
    E Minor (iii)3rdPerfect 4th (P4)Highly unstable; desperately wants to step down to G.
    F Major (IV)4thMajor 3rd (M3)Foundational, bright major sweetness. Warm and comforting.
    G Major (V)5thMajor 2nd / 9th (M2/M9)Rich, floating, and complex extension over the dominant.
    A Minor (vi)6thPerfect Unison (P1)Complete resolution to the dark, relative minor home base.
    B Dim (vii°)7thMinor 7th (m7)Complex, dark, and highly tense.

    Melody Note: B (7th Degree / Leading Tone)

    Backing ChordScale Degree of ChordMelodic Interval (above root)The Emotional Effect
    C Major (I)1stMajor 7th (M7)Sophisticated, fragile, and yearning. Screams to step up to C.
    D Minor (ii)2ndMajor 6th (M6)Mysterious, cinematic, and full of wonder.
    E Minor (iii)3rdPerfect 5th (P5)Chilling, epic, and completely solid minor structure.
    F Major (IV)4thAugmented 4th (+4)Mystical, dreamlike Lydian tension. Sounds like space exploration.
    G Major (V)5thMajor 3rd (M3)The active engine of the dominant chord. Demands to be resolved.
    A Minor (vi)6thMajor 2nd / 9th (M2/M9)Hauntingly beautiful, melancholic minor ballad color.
    B Dim (vii°)7thPerfect Unison (P1)Formally anchored, but trapped inside an unstable diminished chord.

    A Blueprint for Melodic Impact

    To consistently write better melodies, synthesize these two forces into a single strategy. Combine horizontal contour and vertical harmony. Do not treat them as separate rules. Instead, combine them to dictate the exact psychological journey of your listener.

    Imagine you want a melodic line that builds a high-energy transition before locking into a satisfying resolution. Engineer that specific emotional outcome by executing these four steps:

    1. Build: Initiate the phrase with rapid, ascending steps. This upward climb acts like a winding spring. It accumulates energy as the notes fight musical gravity.

    2. Leap: Just as the rising energy peaks, execute a wide upward leap onto a long, sustained note. This sudden jump drives a shockwave into the arrangement and grabs focus.

    3. Lock: Instead of playing it safe, choose a high-tension non-chord tone. Hold a perfect 4th suspension that clashes with the chord. This forces the listener to hold their breath. The upward direction built velocity, the leap delivered drama, and the friction demands stability.

    4. Resolution: Release the tension. Let the sustained note step down a single half-step onto a rock-solid chord tone (like the root or major 3rd). Time this step precisely as the backing track lands on your home chord.

    bach composing a melody

    There are no Golden Rules to composing melodies

    Remember: this blueprint is a tool, not a cage. There are no absolute golden rules in songwriting, for soloing, or writing melodies. While this specific formula creates a slow-burn surge, you can easily flip the architecture to strike a different emotional chord.

    For example, try bursting open a phrase with a massive, sudden leap to instantly shock the listener's system. Then, follow it with a series of small, cascading steps to gently absorb the impact. Theory simply explains why music works—it should never stifle your gut. Use these tools to master the mechanics of tension, and then break them to forge your own path.

    Blending Geometry and Gravity

    When you master both horizontal movement and vertical harmony, you change how you approach songwriting entirely. You stop chasing random notes. Instead, you design intentional paths that actively manipulate your listener’s expectations.

    By balancing steps and leaps, you craft a compelling linear shape. By contrasting chord tones vs tension notes, you control the precise moment your music breathes, suspends, and resolves. Synthesizing these two forces is the ultimate secret to writing better melodies that capture attention and stand the test of time.

    How to Practice

    Theory clicks fastest when you train both axes separately, then combine them. Try one of these exercises. Singing works best because you can feel the frequency changing, but if you're not confident singing, playing the notes on your instrument works as well.

    Chords under a single note
    Pick one scale degree (try C or F) and sing it (or keep the note in the melody) steadily while you loop C → Dm → Em → F → G → Am → B°—one chord per bar, same pitch throughout. Notice how the tension differs per chord: settled over I, suspended over V, tight over vii°. That physical shift is chord tone vs. tension in real time.

    Notes over a single chord
    Over a single chord, sing only direction—eight beats ascending in steps, then eight descending; repeat with one deliberate leap up and a stepwise walk back down. Feel momentum build on the climb and release on the descent.

    Melody over chord progression
    Sing a short melody and loop the same progression underneath. The line’s shape supplies the energy; the changing harmony supplies the color. Notice how some notes might seem stable on one chord but unstable on another.

    Melody toward tension, then release
    Plan a phrase that arrives on friction, then resolves on purpose. Example: over G major (V), step up to F and hold it (your chord becomes G7)—then, as the progression moves to C major (I), step down to E or land on G as the chord changes. Notice how the tension note wants to move forward.

    Master writing melodies with Sonid

    Applying these theoretical concepts to a blank canvas takes consistent practice. Sonid is designed to bridge that gap, helping you make these complex harmonic choices second nature. The app breaks down deep music theory into structured, bite-sized daily lessons that fit perfectly into your creative routine.

    Inside the app, you can visualize scales in our interactive Playground, train your ear to spot chord tones instantly, and build true songwriting confidence. It's time to stop guessing and start knowing exactly why your melodies work. Download Sonid today on iOS or Android or explore our complete music library. Let's build your musicianship together.

     

    Chord library
    Scale library
    Interval guide