Browser-based music tool · graded reading practice

Sight-Reading Exercise Generator

Generate a melody (and a left hand for the grand staff) at one of ten difficulty levels, read it on a rendered staff, hear it with a count-in, and save it as MusicXML, MIDI or a printable worksheet. The same seed and settings always give the same exercise, so a link shares it.

Exercise

Melody within 8 scale steps; rhythms up to eighths; leaps up to a third; rests; simple and compound time.

Worksheet

Uses these settings with consecutive seeds, from 1 to 6, so the same sheet can be rebuilt later.

Score

F major, 4/4, 8 bars, about 24 seconds at the chosen tempo.

Playback uses a plain triangle-wave synth, so it shows pitch and rhythm but not touch.

Levels are fixed rules, not a graded curriculum: judge the first few exercises and move the level by one.

Sight-Reading Exercise Generator

Operator: Abdulla Al Fahad. How tools are built and checked

Sight-reading improves with a steady supply of music you have never seen, at a level just above comfortable, and printed books run out. A new melody is written on demand: choose the clef, key, time signature, length and one of ten levels, and the staff is drawn, played with a count-in, and repeated exactly from a seed number.

The levels are not hidden: each one is a set of rules for note range, leap size, rhythms, rests, ties, accidentals and dynamics, shown on the page and listed below, so a teacher can say exactly what level 5 means and move a student one step at a time.

Key features

  • Ten levels, from steps within five notes to sixteenths, leaps of up to an octave and chromatic notes
  • Treble, bass, alto or grand staff, in 15 keys (nine major, six minor), with an Auto setting that picks a key suited to the level
  • 2/4, 3/4, 4/4, 2/2 and 6/8, in 4, 8, 12 or 16 bars at 40 to 160 beats per minute
  • A left hand for the grand staff: single roots, block fifths, broken chords, then an Alberti bass as the level rises
  • Playback with an optional count-in of clicks, the notes drawn with OpenSheetMusicDisplay
  • MusicXML 4.0, a Standard MIDI file, and a PDF worksheet of 2 to 12 exercises with consecutive seeds
  • A link that stores seed, level, staff, key, meter, length and tempo, so the same page reproduces the same sheet

What each of the ten levels adds

The MusicXML is score-partwise 4.0 with divisions of 4 per quarter note, a key and time signature, a metronome mark and, from level 5, one or two dynamics. A grand staff is one part with two staves. Accidentals are written when a note differs from the key signature or from an earlier accidental in the bar on the same line or space.

The MIDI file has one track for the right hand and one for the left, 480 ticks per quarter note, the tempo you chose and the time signature; tied notes are merged into one note. For 6/8 the tempo is in dotted quarter notes per minute, and the MIDI and MusicXML tempo marks are converted to quarter notes.

How it works

A seeded random generator (mulberry32) makes every choice, so the same settings always give the same notes. Durations are counted in sixteenths, a bar holds 8 to 16 of them, and each beat is filled from the rhythm patterns the level allows: quarters, eighth pairs, dotted figures, four sixteenths, syncopations and rests. Phrases are four bars, and the last bar of a phrase ends on a longer note.

Pitch is chosen as a scale degree in a window of notes around the middle of the clef, so the music always stays in the key. Most moves are a step; leaps are chosen by the level's rules, and a leap of a fourth or more is followed by a step in the other direction. The last phrase ends by stepping onto the tonic, and earlier phrases end on the fifth of the scale.

From level 3, the rhythm of bar 1 is sometimes reused in bar 3 with the melody's steps copied from the start of that bar, which gives the exercise a repeated motif. From level 6 some notes that are followed by the note a whole tone away are raised or lowered a semitone, and from level 5 a note at the end of a bar is sometimes tied to the same pitch at the start of the next.

The notes are spelled from the degree and the key, so flats and sharps follow the key signature, and the result is written as MusicXML, drawn by OpenSheetMusicDisplay and played by a simple triangle-wave synth.

Typical uses

  • A piano teacher sets level 2, C major, 3/4, four bars, and prints six consecutive seeds as a warm-up sheet for a beginner.
  • A violist practises alto clef at level 4 in D major with the count-in on, starting each exercise from the click.
  • A violinist takes level 7 in B-flat major, 6/8, eight bars at 76, and sees ties across the barline and the occasional chromatic note.
  • A choir member works through levels 1 to 4 in A minor, one level per week, using the link to return to the same exercise.
  • A school teacher builds twelve level-3 exercises in a mix of keys with the Auto key setting, and prints the worksheet for a class.

Building one

  1. Choose a level, staff, key, time signature and length, and press New exercise until one looks right.
  2. Play it with the count-in on, then read it again without playing.
  3. Copy the link to share the exact exercise, or build a worksheet of consecutive seeds and download the PDF.

Example

Settings: level 3, treble clef, G major, 4/4, 4 bars, 72 beats per minute, seed 42

Open the page with level 3, key G major, seed 42 and press Play

The four bars the page draws (note, octave, length in sixteenths)

Bar 1: B4 (16)
Bar 2: C5 (2) B4 (2) A4 (2) G4 (2) G4 (2) G4 (2) B4 (4)
Bar 3: A4 (16)
Bar 4: G4 (4) B4 (2) C5 (2) A4 (4) G4 (4)
The last note is the tonic G, the melody stays between G4 and C5, and the same seed gives these notes again

Tips for best results

  • Raise the level only when a bar of the next level is almost easy: the step from level 5 to 6 adds sixteenths, 6/8 rhythms and chromatic notes at once, so go slowly there.
  • Read the key signature aloud before pressing Play; the Auto key changes with the level, so a key you know well at level 2 may not appear at level 8.
  • Use the grand staff only when both hands are ready: the left hand adds chord shapes from level 4 and an Alberti bass from level 8.

Things to check before you rely on it

The levels are fixed rules, so the music is correct but not composed: at the highest levels the melody can still feel random even with the repeated motif.

Playback is a plain synth with each note cut 20 ms short, so it shows pitch and rhythm but not phrasing or touch.

The minor keys use the natural minor scale only, so a raised leading tone appears only as one of the chromatic notes at levels 6 to 10.

A time signature that a level does not use (for example 6/8 at level 1) is still allowed and drawn; the choice list marks it as beyond that level.

The PDF is made from the on-screen rendering, so a worksheet of twelve 16-bar exercises takes noticeably longer to build than one of two short ones.

Common errors and how to fix them

The score could not be drawn
Press New exercise or reload the page; the page draws with OpenSheetMusicDisplay, which needs a normal browser window to measure the staff.
The worksheet could not be built
Choose fewer exercises or shorter ones, then build it again.

Best practices

  • Keep a record of the seed with the date, so next month you can read the same exercise and see how much faster it goes.

What each level adds

Level 1 uses quarter and half notes in a window of five scale steps and moves only by step. Level 2 adds whole and dotted-half notes, rests and thirds, within six steps. Level 3 adds eighth-note pairs, a window of eight steps and 6/8, and the first repeated motifs. Level 4 adds dotted rhythms, a window of nine steps, leaps of up to a fourth and 2/2 time, plus a block left hand.

Level 5 adds syncopation (eighth, quarter, eighth), ties over the barline and dynamics, within ten steps. Level 6 adds sixteenths, dotted eighth and sixteenth figures, chromatic notes at about 8% and a broken-chord left hand. Level 7 adds more sixteenth patterns, 12 steps and fifths; level 8 widens to 13 steps, sixths and an Alberti left hand. Levels 9 and 10 widen the window to 14 and 15 steps, allow leaps of a seventh and an octave, and raise the share of chromatic notes to about 20% and 24%.

Rules every exercise obeys

Across every level, all four staves and every time signature, each bar of each staff adds up exactly to the time signature, the melodies stay inside their level's window, no accidental outside the key signature appears below level 6, and every piece ends on its tonic. The MusicXML is well-formed and written in the score-partwise structure; a publisher that requires validation against the W3C schema should run its own check.

Which keys Auto picks

With the key on Auto, levels 1 and 2 draw from C, G, F and A minor. Levels 3 and 4 add D major, E minor and D minor. Levels 5 to 7 add B-flat major, A major and G minor, and levels 8 to 10 draw from all 15 keys, including E major, A-flat major, B minor and C minor. The choice comes from the seed, so the same seed gives the same key.

Frequently asked questions

Does the same seed give the same exercise on another computer?

Yes. The generator uses only the seed and the settings, so any browser produces the same notes. The link carries both.

Can I select or search the text in the worksheet PDF?

No. The PDF is made from the on-screen rendering, so each page is an image. It prints well, but the notes and headings cannot be selected, and a screen reader finds nothing on the page; the MusicXML file is the accessible copy.

Why are some of my tied notes drawn as two notes?

A tie joins two notes of the same pitch across a barline. The score shows both notes and a tie curve, and playback and MIDI merge them into one sound.