Melody, Scales, and Step Sequencing

You don't need music theory to make a melody. The pentatonic scale has been humanity's "safe" scale for thousands of years — from blues to Japanese folk music to children's songs.

Why the pentatonic scale works

The C major scale has 7 notes (C-D-E-F-G-A-B). Two of those intervals — the half-steps between E-F and B-C — can clash with the harmonic context and produce dissonance if you're not careful. The pentatonic scale removes those two notes (F and B), leaving C-D-E-G-A. Now every note is at least a whole tone away from its neighbors. The result: you literally cannot play a "wrong" note. Any combination of the 5 pitches creates something that sounds melodic, which makes the pentatonic scale ideal for learning, improvisation, and quick composition.

What is a step sequencer?

A step sequencer is one of the oldest and most important tools in electronic music. It divides time into equal steps and assigns a pitch (or silence) to each step. On playback, the sequencer moves through each step at a tempo defined by BPM. The pattern loops. Early step sequencers (like the Roland TB-303 and TR-808) defined entire genres. This tool's 5-row × 8-step grid means 2^40 possible patterns — about a trillion unique melodies. Hit "Random" to explore some of them.

About the instruments

No audio samples are used — every sound is synthesized in real time using the Web Audio API. Piano uses a sawtooth oscillator with a sharp attack and exponential decay, filtered to remove the harshest high harmonics. Marimba adds a second oscillator at 2.75× the fundamental frequency — this inharmonic partial is characteristic of struck wooden bars. Music Box layers three sine waves (fundamental + 3× + 5×) to create a metallic, bell-like sustain. Synth uses a filtered triangle wave with a medium ADSR envelope for a retro digital feel. The same synthesis principles underlie every electronic instrument and software synth.

About Melody Maker

Create melodies on a 5-note pentatonic grid. Tap cells to place notes, choose Piano, Marimba, Music Box, or Synth, and loop at any tempo. No music theory required — every combination sounds good.

How to use

  1. Click any cell in the 5x8 grid to place a note. Click again to remove it. The 5 rows are C4, D4, E4, G4, A4 (bottom to top) — the pentatonic scale.
  2. Press Play to start the 8-step looping sequence. The playhead highlights the current step as it moves.
  3. Choose an instrument: Piano (bright attack, long decay), Marimba (woody thud), Music Box (bell-like shimmer), or Synth (filtered triangle wave).
  4. Adjust BPM with the slider (60-180). The loop automatically speeds up or slows down.
  5. Press Random to generate a new random pattern. Press Clear to erase all notes and start fresh.
  6. Tap any cell while stopped to preview that note through the selected instrument.

Frequently asked questions

What is the pentatonic scale?
The pentatonic scale uses only 5 notes (C-D-E-G-A in C major pentatonic), avoiding the two 'tense' semitone intervals of the full major scale. Any combination of these 5 notes sounds harmonious — there are no clashing dissonances. This is why pentatonic scales are used globally in folk music, blues, rock solos, and educational tools.
What is a step sequencer?
A step sequencer divides time into equal steps and plays assigned notes in order. Each column = one 1/8 note. When playback reaches a column, all active cells in that column sound simultaneously. The sequence loops back to step 1. Step sequencers are foundational to drum machines, bassline synths, and melodic generators across all of electronic music.
How does the instrument sound differ?
Each instrument uses a different waveform and envelope. Piano: sawtooth wave with fast attack and exponential decay. Marimba: adds a 2.75x partial for the woody character. Music Box: bell-like overtones at 3x and 5x with a long ring. Synth: filtered triangle wave with medium sustain. All built with the Web Audio API — no samples.
What are the 5 notes in the grid?
Top to bottom: A4 (440 Hz), G4 (392 Hz), E4 (330 Hz), D4 (294 Hz), C4 (262 Hz) — C major pentatonic. Top = highest pitch, bottom = lowest.
Can I export my melody?
WAV export is on the roadmap. For now, capture using system audio recording in OBS, Audacity (WASAPI loopback on Windows), or any screen recorder. The melody loops continuously so you can capture as many bars as you like.
Disclaimer: Audio output requires a compatible browser (Chrome, Firefox, Edge, or Safari 14+). iOS requires a tap before audio plays.

Part of ToolFluency’s library of free online tools for Music. No account needed, no data leaves your device.