1. Home
  2. Explore
  3. Music
  4. Melody Writing Techniques

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Melody Writing Techniques

Melody Writing: Planning, Structure, Harmony, and Expression

Melody writing is the process of creating a coherent sequence of pitches and rhythms that sounds purposeful, expressive, and stylistically appropriate. A successful melody is not simply a collection of notes that fills a certain number of bars. It has direction, balance, shape, and a sense of musical logic.

The most reliable way to write a melody is to plan its large-scale structure first, then organize its phrases, keys, cadences, harmony, rhythmic ideas, and melodic details.

A well-written melody grows from a plan. The notes should serve the structure, rather than being added randomly just to fill space.

1. Begin with the Overall Structure

When a melody begins with a short passage, perhaps two bars, it can be tempting to continue writing immediately. This often leads to a melody that wanders unpredictably because each new note is chosen without considering where the music is going.

A stronger approach begins with a question: What is the overall form of the complete melody?

The melody might be:

  • A section of a binary form
  • A complete binary-form piece
  • A ternary-form piece
  • A shorter phrase-based melody
  • A melody written in a particular historical or modern style

Once the overall form is decided, the smaller phrases can be fitted inside it.

Phrase structure

Music is often organized into phrases, which are musical units that resemble sentences in language. A phrase usually leads toward a point of temporary or complete arrival, often marked by a cadence.

Four-bar phrases are especially common, but phrases may also be eight bars long or contain irregular numbers of bars. For example, one phrase might contain five bars and the next three bars. Together, the two phrases create a balanced eight-bar unit.

The important point is not that every phrase must have four bars. The important point is that phrases should feel organized and balanced rather than randomly connected.

A possible plan might look like this:

  • Phrase 1: four bars
  • Phrase 2: four bars
  • Phrase 3: four bars
  • Phrase 4: four bars
  • Optional coda: two additional bars

This creates a sixteen-bar melody, with the possibility of a short coda at the end. A coda is a closing passage added to round off the music after the main structure has reached its conclusion.

Binary form

Binary form has two main sections:

A−BA-BA−B

The A section usually reaches a clear cadence, often marked by a double bar line and sometimes by repeat signs. The B section is based on material from the A section but develops it or moves in another direction.

A complete binary-form piece generally begins and ends in the tonic key, the home key of the piece. A common tonal plan is:

  • The A section begins in the tonic key.
  • The A section modulates to the dominant key.
  • The B section begins in the dominant key.
  • The B section travels back toward the tonic key.
  • The piece ends in the tonic key.

For a piece in a major key, the A section may instead move to the relative minor. For a piece in a minor key, it may move to the relative major. The exact destination can vary, but the essential feature is the contrast between the two sections and the return to the home key by the end.

A binary-form plan is especially useful when a melody must be a certain length. For example, four bars plus four bars could form the A section, followed by two more four-bar phrases for the B section.

Ternary form

Ternary form has the structure:

A−B−AA-B-AA−B−A

The first A section presents the main musical idea. The B section contrasts with it, often through a different key, mood, rhythm, melodic shape, or texture. The final A section then brings back the opening material.

Sometimes the return is almost exactly the same as the first A section. In other cases, it is modified. This is represented as:

A−B−A′A-B-A'A−B−A′

The apostrophe indicates that the returning A section has changed in some way. The changes might be small, such as extra decoration, or more substantial, such as a restructured melody.

Ternary form is useful because the original A section does not need to provide a completely new idea for the entire piece. The B section supplies contrast, and the A section then returns to provide unity and closure.

The B section should be different enough to create variety but related enough to belong to the same piece. A contrasting key is often helpful, along with a distinctive melodic character.

Planning before writing notes

A practical order of planning is:

  1. Decide the overall form.
  2. Divide the form into phrases.
  3. Decide how many bars each phrase will contain.
  4. Plan the keys used in each section.
  5. Decide where the important cadences will occur.
  6. Analyze the given melodic material.
  7. Begin writing individual notes.

This order prevents the melody from becoming a chain of unrelated decisions.

Think About It

How would a melody feel different if its phrases were planned as four-bar units rather than written one note at a time without a larger structure?

2. Plan Keys and Cadences

After deciding the form and phrase lengths, the next step is to plan the tonal movement. A melody becomes easier to write when the main destinations are already known.

Tonic, dominant, and relative keys

The tonic key is the home key. It provides the strongest sense of stability.

The dominant key is the key built on the fifth degree of the tonic scale. Moving to the dominant creates contrast while remaining closely related to the home key.

The relative minor of a major key shares the same key signature, while the relative major of a minor key does the same. These keys provide contrast without being as distant as unrelated keys.

For example, a binary-form melody in a major key might move from the tonic to the dominant at the end of its A section. The B section can then begin in the dominant and gradually return to the tonic.

Cadences as structural punctuation

A cadence is a harmonic and melodic ending point. It functions like punctuation in a sentence: it may create a pause, a temporary stopping point, or a strong conclusion.

Important cadence types include:

  • Perfect cadence: A strong conclusion, generally involving chord V moving to chord I.
  • Imperfect cadence: A phrase ending on chord V, creating continuation rather than final closure.
  • Plagal cadence: A movement from chord IV to chord I.
  • Interrupted cadence: A movement that avoids the expected arrival, commonly moving from chord V to chord VI instead of chord I.

In a binary-form melody, the end of the A section usually needs a firm cadence in the new key if the section has modulated. A perfect cadence is often especially effective because it clearly confirms the new key. The end of a complete B section normally requires a strong cadence returning to the tonic key.

Other phrase endings can be less final. For example, the first phrase might use an imperfect cadence, leaving the music open so that the second phrase can continue toward a stronger cadence.

A possible four-phrase plan could be:

  • Phrase 1: imperfect or perfect cadence in the home key
  • Phrase 2: stronger cadence confirming the dominant key
  • Phrase 3: interrupted cadence while moving back toward the tonic
  • Phrase 4: perfect or plagal cadence in the tonic key

This creates variety while preserving an overall sense of direction.

Using cadences to guide the melody

Cadence planning provides a harmonic framework. If the melody is supposed to end a phrase with an imperfect cadence, the final chord must be chord V. The melody should therefore use notes that belong to chord V near the end.

For example, in D major:

  • Chord I is D–F-sharp–A.
  • Chord V is A–C-sharp–E.
  • Chord II is E–G–B.
  • Chord IV is G–B–D.
  • Chord VII is C-sharp–E–G.

An imperfect cadence ending on chord V would use A, C-sharp, and E as important melodic notes. The preceding chord could be chord I, chord II, or chord IV.

The melody does not need to state the chords as solid blocks. It can arpeggiate them, reorder their notes, or connect them with passing and auxiliary notes. However, the important notes should make the harmony recognizable.

Think About It

If a phrase is intended to end on chord V, which melodic notes would make that ending sound more convincing, and why would notes outside the chord need to be treated carefully?

3. Understand Harmonic Rhythm

Harmonic rhythm is the rate at which the chords change. It does not refer to the rhythm of the melody itself. Instead, it describes how quickly the underlying harmony moves.

A melody may contain many notes without requiring a new chord for every note. If a passage contains rapid semiquavers, changing the chord for every semiquaver would usually make the harmony too restless and unclear.

Suppose a melody in D major begins with F-sharp, A, and D. Those notes spell out chord I:

D−F-sharp−AD-F\text{-sharp}-AD−F-sharp−A

The first chord might last for the first dotted-crotchet beat of a 6/8 bar. The following notes might imply chord V even if they do not all belong literally to the triad.

Chord V in D major is:

A−C-sharp−EA-C\text{-sharp}-EA−C-sharp−E

Other notes can be understood in relation to this chord:

  • D may act as an upper auxiliary note, moving away from and back to C-sharp.
  • B may act as a passing note between harmony notes.
  • A belongs directly to chord V.
  • G may be a passing note or may turn chord V into a dominant seventh chord:
A−C-sharp−E−GA-C\text{-sharp}-E-GA−C-sharp−E−G

The listener can therefore hear the passage as being supported by one harmony even though the melody contains several notes that are not chord tones.

Estimating the harmonic rhythm

When analyzing a given opening, the student should ask:

  • How often does the harmony appear to change?
  • Do the important notes suggest one chord per beat?
  • Are some notes merely passing or decorative?
  • Does the opening establish a repeated harmonic pattern?

If the opening suggests one chord per dotted-crotchet beat, that pattern is a useful starting point for the rest of the melody. It does not have to continue without variation. The harmonic rhythm can slow down at a cadence, perhaps allowing the final chord to last for two beats, or it can briefly become faster at a point of increased energy.

The opening harmonic rhythm provides a general plan rather than an unbreakable rule.

Building a phrase from a harmonic scheme

Suppose the end of bar four is planned as an imperfect cadence in D major. The final harmony must be chord V, using A, C-sharp, and E.

A possible process is:

  1. Reserve the final part of bar four for chord V.
  2. Choose a preceding chord in the second half of bar three, such as chord I, II, or IV.
  3. Choose another chord for the beginning of bar three.
  4. Ensure that the chords do not create unnecessary repetition.
  5. Select melodic notes belonging to each chosen chord.
  6. Connect those notes with passing or auxiliary notes.

This approach turns melody writing into a series of manageable decisions. Instead of searching for any note that might sound acceptable, the student chooses notes from a harmonic framework and then adds melodic decoration.

Harmony gives the melody a framework; melodic movement and decorative notes give that framework life.

4. Use Harmony Notes and Inessential Notes

A harmony note belongs to the chord sounding underneath it. Harmony notes provide stability and help the listener recognize the harmony.

An inessential note does not belong to the underlying chord but has a melodic function. These notes are not “wrong” notes. They create motion, decoration, and smooth connections between harmony notes.

Passing notes

A passing note moves by step between two harmony notes.

For example, if C-sharp and A belong to a chord while B lies between them, B may function as a passing note. It connects the two chord tones rather than establishing a new harmony.

A passing note is:

  • Unaccented when it occurs between beats or in a metrically weak position.
  • Accented when it occurs on a strong beat or another emphasized position.

The same pitch can therefore have a different function depending on where it appears rhythmically.

Auxiliary notes

An auxiliary note moves away from a harmony note by step and then returns to that original harmony note.

An upper auxiliary pattern might be:

C-sharp−D−C-sharpC\text{-sharp}-D-C\text{-sharp}C-sharp−D−C-sharp

A lower auxiliary pattern might be:

C-sharp−B−C-sharpC\text{-sharp}-B-C\text{-sharp}C-sharp−B−C-sharp

The auxiliary note provides brief decoration while the harmony note remains the structural focus.

Combining chord tones and decoration

A convincing melody often combines:

  • Leaps or arpeggios that outline the harmony
  • Stepwise movement that connects larger intervals
  • Passing notes
  • Auxiliary notes
  • Repeated notes
  • Rhythmic figures derived from the opening

Too many chord tones can sound mechanically arpeggiated. Too many inessential notes can obscure the harmony. The balance between stability and movement is what allows the melody to sound both clear and expressive.

Think About It

What would happen if every melodic note belonged directly to the chord? What might be gained by allowing some notes to pass between or decorate the chord tones?

5. Analyze the Given Opening

Before adding new material, the opening should be studied carefully. It contains the musical ingredients that the rest of the melody should usually develop.

Analysis should consider three main areas:

  1. Harmony
  2. Rhythm
  3. Melody

Rhythmic ideas

A short rhythmic figure can become a recurring motif. Possible ideas might include:

  • A dotted rhythm
  • A continuous run of semiquavers
  • A quaver followed by two semiquavers and another quaver
  • A crotchet followed by a quaver

These figures can be repeated, varied, or placed into sequences.

Melodic ideas

Melodic ideas may include:

  • A triadic or arpeggiated opening
  • A repeated-note figure
  • A rapid conjunct run
  • A distinctive leap
  • A particular interval
  • A recognizable contour

Even a repeated note can become useful material if it is developed rhythmically or placed in a new harmonic context.

Motifs and sequences

A motif is a short musical idea that can be recognized and reused. It may be defined by rhythm, pitch, contour, or a combination of these.

A sequence repeats a motif at a different pitch level. The repeated figure may be moved upward or downward while preserving its general shape or rhythm.

For example, a short rhythmic figure can be repeated several times while the pitches rise step by step. A melodic figure can also be adapted so that it fits changing chords.

Motivic development helps the melody feel unified. The listener recognizes connections between different sections even when the material is changed.

A strong plan often includes both:

  • Reusing important ideas from the opening
  • Introducing enough contrast to prevent monotony

Think About It

Which feature of an opening is most memorable: its rhythm, its intervals, its contour, or its harmony? That feature can become the central material for later development.

6. Balance Conjunct and Disjunct Movement

Melodic movement can be described as conjunct or disjunct.

Conjunct movement

Conjunct movement proceeds mainly by step, using neighboring notes. A scale-like run is an example of conjunct writing.

Conjunct movement tends to sound smooth, connected, and singable. It is useful for creating flow and for filling the space between more widely separated notes.

Disjunct movement

Disjunct movement includes leaps between notes. Arpeggios and wide intervals are examples.

Disjunct movement can create energy, excitement, and a strong sense of character. However, a melody made entirely of leaps may sound fragmented or difficult to sing.

Likewise, a melody made entirely of stepwise movement may become predictable or dull. Effective melody writing balances the two types of movement.

An opening might begin with a strong leap, continue with a stepwise figure, repeat a note, and then end with another leap. Such a design already contains contrast between disjunct and conjunct motion.

A useful strategy is to balance different kinds of movement within a phrase:

  • A phrase may begin with leaps and respond with a smoother scale passage.
  • A phrase may rise by step and then fall through an arpeggio.
  • A wide interval may be followed by stepwise movement in the opposite direction.
  • A disjunct first half may be balanced by a conjunct second half.

7. Hear the Melody as Well as Analyze It

Analysis is important, but melody writing is an auditory and musical activity. The student should try to hear the opening internally, either by playing it, singing it, imagining it, or clapping its rhythm.

The ability to look at notation and imagine its sound makes it easier to judge:

  • Whether an interval sounds natural
  • Whether the rhythm has energy or feels crowded
  • Whether a phrase has a clear direction
  • Whether a cadence sounds complete or unfinished
  • Whether a new idea belongs stylistically to the opening

Even if every note cannot be heard internally, the general contour and rhythm can still be recognized. The student can identify whether the melody rises, falls, leaps, repeats notes, or moves by step.

A melody should be understood both analytically and musically. The harmonic analysis explains why certain notes fit, while the imagined sound reveals whether the result is expressive.

8. Shape, Balance, and Breathing Space

A phrase needs a sense of direction. Many phrases rise toward a central point and then fall toward the cadence, but this is not the only possible shape.

Other patterns include:

  • A phrase that begins high, descends, and rises again
  • A phrase that alternates between high and low notes
  • A phrase that begins with leaps and ends with stepwise movement
  • A phrase that gradually expands in range
  • A phrase that builds energy and then settles

The important issue is not following one fixed contour. It is creating a shape that feels intentional.

Phrase endings

A phrase should usually have some space at its end. Without this, a long melody can feel breathless because one phrase runs directly into the next without a moment of release.

Cadences are natural breathing points. The melody might:

  • Settle on a slightly longer note
  • Use a less busy rhythm
  • Leave a short rest
  • Reduce the amount of melodic activity before beginning the next phrase

This does not mean every cadence should be followed by a long pause. Excessive stopping would make the melody disconnected. Instead, the cadence should provide enough space for the listener to sense the end of one phrase and the beginning of another.

Breathing space matters physically for singers and wind players, but it also matters musically for keyboard players and instrumentalists. Silence and relaxation help clarify the structure.

The use of rests

A rest is not merely an absence of notes. It can create contrast, allow the melody to breathe, and make surrounding notes more expressive.

Earlier musical styles often contain more notes than rests, though occasional rests can still be useful. In many modern styles, rests may be extremely prominent, sometimes appearing as frequently as notes or even more frequently.

The use of rests should fit the style. A rest can:

  • Separate two phrases
  • Emphasize a rhythmic idea
  • Create anticipation
  • Prevent the texture from becoming overcrowded
  • Provide contrast between sound and silence

9. Match the Style and Mood

A melody should continue the character established by its opening. A Baroque opening should not suddenly be followed by material that sounds unrelated to Baroque style. Similarly, a Classical, Romantic, folk, or modern opening creates different expectations.

Mood and tempo

Tempo affects the character of a melody. A piece marked vivace will generally have a lively, energetic quality, while one marked adagio will suggest a slower and more reflective character.

If no tempo is given, the student should infer an appropriate mood from the opening. A melody should maintain that mood unless the structure deliberately introduces contrast.

In ternary form, the B section may provide a contrasting mood before the original mood returns in the final A section.

Historical style

The opening may suggest a particular period:

  • Baroque style may encourage patterned figures, sequences, and clear harmonic movement.
  • Classical style may suggest balanced phrases and clear formal organization.
  • Romantic style may permit broader expressive gestures and more adventurous melodic shapes.
  • Modern style may use unusual rhythms, extreme dynamics, wide intervals, changing meters, or nontraditional scales.

The writing should remain consistent with the style. This does not mean copying the opening exactly; it means developing its musical language rather than abandoning it.

Modern and nontraditional materials

Some melodies do not follow conventional major- and minor-key procedures. The opening may use:

  • A pentatonic scale, which contains five pitches within the octave
  • A whole-tone scale, built entirely from whole-step intervals
  • A mode, as found in many folk melodies
  • A note row associated with serialism
  • Sudden dynamic contrasts
  • Extremely wide intervals
  • Unusual accents or instrumental effects
  • Irregular or changing time signatures

A serialist note row uses all twelve chromatic notes, with each note stated once before any note is repeated. The order can be chosen freely. If a melody is based on a given note row, conventional tonal planning, such as writing in D major and organizing perfect cadences, may not be appropriate.

The central principle remains the same: the style of the opening determines the methods used to continue the melody.

10. Consider Instrumental Range and Transposition

The melody must be playable or singable by the instrument or voice for which it is written.

Instrumental range

The lower limit of an instrument is especially important because it cannot be exceeded. Examples include:

  • Flute: approximately middle C as its lowest note
  • Oboe: approximately B-flat below middle C as its lowest note
  • Violin: approximately G below middle C as its lowest note

Upper limits depend more on the player’s ability. Highly skilled players may perform notes beyond the usual comfortable range. However, frequent use of many ledger lines at the top of the staff should prompt a practical check.

A melody should not merely be technically possible. It should also be comfortable and idiomatic for the instrument.

Transposing instruments

A transposing instrument sounds a different pitch from the pitch written in its music.

For example, a B-flat clarinet sounds one tone lower than the written pitch. Therefore, if the desired sounding pitch is a particular note, the composer writes the note one tone higher.

This also affects accompaniment. If a clarinet part is written in D major, the sounding pitch corresponds to a different key, so a pianist or other accompanying instrument must account for the transposition. The example given is that an accompaniment may need to be in E major to match the written D-major clarinet part.

The practical procedure is:

  1. Identify the instrument’s transposition.
  2. Determine the desired sounding key or pitch.
  3. Write the part at the correct transposed pitch.
  4. Check that the resulting range remains playable.
  5. Avoid unnecessarily extreme keys filled with difficult double-sharps or double-flats.

11. Writing for the Voice

Many general principles of melody writing apply to vocal music, but a vocal melody must also respect the range of voices and the organization of words.

Vocal range

Approximate comfortable ranges include:

  • Soprano: middle C up to approximately G above it
  • Tenor: a similar range one octave lower
  • Alto: approximately G to D
  • Bass: approximately G to D one octave lower

Singers may extend beyond these limits, but consistently writing outside a sensible range can create serious performance difficulties.

Stress and word setting

The music should place important words and syllables in strong rhythmic positions. A significant word such as “love” is likely to deserve a strong beat, while small connecting words such as “and” or “but” are less likely to belong on the first beat of a bar.

The setting must also account for the number of syllables in each word. A one-syllable word needs at least one note, although it may be sung across several notes. This is called melismatic writing.

A word with several syllables needs at least one note for each syllable. For example, “Constantinople” contains five syllables and therefore requires at least five notes if each syllable is to be clearly sung.

Two basic approaches are:

  • Syllabic writing: one note for each syllable
  • Melismatic writing: several notes sung to one syllable

A good vocal melody often balances the two. Too much syllabic writing can become plain and rigid, while too much melismatic writing can obscure the words or make the line unnecessarily elaborate.

12. A Complete Working Method

The ideas can be combined into a practical method for writing a melody.

Step 1: Identify the requirements

Determine:

  • The required length
  • The requested form
  • The instrument or voice
  • The style
  • The time signature
  • The key or tonal system
  • Any required modulation or cadence

Step 2: Analyze the opening

Study:

  • The implied harmony
  • The harmonic rhythm
  • The rhythmic motifs
  • The melodic motifs
  • The range
  • The use of leaps and steps
  • The mood and tempo
  • Any unusual scales or techniques

Step 3: Design the form

Choose a structure such as binary or ternary form. Decide where each section begins and ends, and divide those sections into phrases.

Step 4: Plan the tonal movement

Mark the keys for each section. In a tonal binary form, the A section might end in the dominant or relative minor, while the B section eventually returns to the tonic.

Step 5: Plan the cadences

Choose the cadence type for each phrase ending. Use weaker or more open cadences when the music should continue, and stronger cadences at major structural points.

Step 6: Establish the harmonic scheme

Choose chords for the main beats or harmonic units. Make sure the planned chords support the cadences and create a logical progression.

Step 7: Select melodic material

Use chord tones for stability. Connect them with passing notes, auxiliary notes, scales, repeated notes, and motifs taken from the opening.

Step 8: Shape the phrases

Create a clear melodic contour. Balance conjunct and disjunct movement, and allow the melody to rise, fall, expand, contract, or settle with purpose.

Step 9: Add breathing space

Use longer notes, less active rhythms, or rests at appropriate phrase endings. Avoid filling every available beat with unnecessary notes.

Step 10: Check practicality and style

Confirm that the melody:

  • Fits the instrument or vocal range
  • Accounts for transposition
  • Uses a sensible key
  • Matches the opening’s style
  • Preserves the important rhythmic and melodic characteristics
  • Provides contrast without losing unity
  • Sounds musical when played or sung

Comprehensive Review

Melody writing is most successful when it is approached as both a structural and creative task. The melody should not be produced by filling bars with random notes. It should be designed from the outside inward.

The overall form comes first. Binary form uses two sections, while ternary form returns to the opening material after a contrasting middle section. Phrases provide smaller units within those forms, and cadences give the phrases their punctuation and direction.

Key planning establishes where the music begins, where it travels, and where it returns. Harmonic rhythm determines how quickly the underlying chords change. Chord tones provide stability, while passing notes and auxiliary notes create movement and decoration.

The opening should be analyzed for its rhythmic motifs, melodic motifs, harmonic implications, style, mood, range, and distinctive intervals. These ideas can be repeated, varied, or developed through sequences. Conjunct and disjunct movement should be balanced so that the melody is neither fragmented nor monotonous.

A convincing melody also needs shape and breathing space. Longer notes and rests can clarify phrase endings, while contrasting sections can create variety. Instrumental and vocal writing must respect range, transposition, pronunciation, syllable stress, and the balance between syllabic and melismatic writing.

The final goal is not merely a technically correct sequence of notes. It is a melody whose structure, harmony, rhythm, style, and expressive character work together to create a clear and satisfying musical line.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent