Understanding the Song Maker
A song is melody, harmony, and rhythm working together. This tool gives you three grids — one for each — and a scheduler that plays them all in sync. Here's how to use them to make something that sounds like a real song.
Scales — why every note sounds right
The melody and bass rows aren't chromatic (every half-step). They're locked to the selected scale. In pentatonic, any combination of notes sounds good — it's the Chinese/Japanese/Irish folk scale where there are no "wrong" notes. In major, you get the Western pop/classical vocabulary. In minor, everything turns pensive or sad. In blues, the flat-5 gives you the growl. In chromatic, every semitone is available — you can write anything, including outright dissonance.
Writing the melody
Good melodies move in small steps most of the time, with occasional leaps. Start by clicking cells in a roughly connected contour — up a few notes, down a few — rather than jumping wildly. Leave gaps (rests) so the melody breathes. A catchy hook is usually 4-8 notes that repeat with small variations. The Random Song button uses this principle: it walks mostly by step, jumps occasionally, uses a scale, and leaves rests. Hit it a few times and you'll hear how a simple algorithm produces convincingly musical results.
Bass — the foundation
Bass doesn't need to be complex — most pop and rock bass lines hit the root note on the downbeat of each chord change. Land on step 1, 9 (and maybe 17, 25 if using 32 steps) with the root note, and fill in with the 5th or 3rd on off-beats. The bass is what makes a song feel "grounded" — a melody without bass sounds suspended, a melody with bass sounds like a song.
Percussion — the groove
Even a simple kick-snare pattern (kick on 1 & 3, snare on 2 & 4) transforms a melody into a song. Add hi-hat on every 8th for energy, or every 16th for more intensity. Clap doubles up on the snare for a denser backbeat. Don't over-program — sparse percussion often grooves harder than busy percussion.
Sharing your song
Every song you make is encoded into the URL. Copy the URL and send it to anyone — when they open it, the grids load exactly as you saved them. No account, no upload, no server. This is possible because the song data is small (a few bitmasks) and fits into the URL's hash fragment. You can also export as JSON for backup or round-trip through other tools.
About Song Maker
Compose melodies and bass lines on a 16-step × 8-pitch grid using C major pentatonic scale. Save and load songs in localStorage. Free browser-based song composer.
How to use
- Click any preset (Twinkle Twinkle, Mary Had a Little Lamb, Ode to Joy) to load a familiar melody, or start from scratch by clicking cells on the Melody grid.
- Click the Melody tab to place notes in the higher register. Each row is a pitch (A5 at top to E4 at bottom), each column is one 16th-note step.
- Switch to the Bass tab to add bass notes in the lower octave (A3 to E2). Melody and bass play simultaneously during playback.
- Adjust the Tempo slider and press Play to hear your composition loop. The active step moves across the grid as it plays.
- Press Save to store your song in your browser and Load to restore it on your next visit. Press Clear to blank both tracks and start fresh.
Frequently asked questions
Why does the tool use a pentatonic scale?
The C major pentatonic scale (C, D, E, G, A) is used because every note in it sounds good with every other note. Unlike the full major scale, there are no 'avoid notes' or dissonant combinations. This makes free composition forgiving and fun — you can click almost any pattern of notes and it will sound musical. Pentatonic scales underlie an enormous amount of the world's music: folk songs, blues, rock, pop, and the melodies of many classical composers. The tool uses two octaves of pentatonic pitches (E4 through A5 for melody, E2 through A3 for bass) for an 8-row grid that is easy to navigate visually.
How does the 16-step grid map to musical time?
The grid uses 16 steps of 16th notes — the smallest common subdivision in 4/4 time. At 120 BPM, each 16th note is 125 milliseconds, and the full 16-step loop is exactly 2 seconds (one measure of 4/4). The beat markers every 4 steps show where the quarter-note beats fall. Step 1 is beat 1 (the downbeat), step 5 is beat 2, step 9 is beat 3, step 13 is beat 4. Placing notes on these beat markers creates on-beat, stable rhythms. Placing notes between beat markers creates syncopation and off-beat rhythmic interest.
What instruments are used and how are they synthesized?
The melody uses a triangle wave oscillator — a warm but clear tone with some harmonic content above the fundamental frequency. Triangle waves have only odd harmonics at rapidly decreasing amplitude, giving them a flute-like sound between a pure sine (no harmonics) and a square wave (strong odd harmonics). The bass uses a sine wave — the purest tone, with no harmonics, for a deep, clean bass note that supports the melody without competing with it. Both use simple linear amplitude envelopes: fast attack (10–15ms), sustain at constant volume for most of the note duration, then a fade to silence — similar to a piano's basic note shape.
Can I compose in other keys or scales?
This tool is fixed to C major pentatonic to keep the experience approachable — every note combination sounds good without music theory knowledge. If you want to compose in other keys or scales, the pitches would need to change. For more advanced composition tools that support custom scales, keys, and instruments, a full digital audio workstation (DAW) like GarageBand (free on Mac/iOS), LMMS (free, cross-platform), or Bandlab (free, browser-based) offers complete scale and key selection alongside many more instruments.
How do I make a good melody?
Start with a simple idea: try placing notes mostly on beat positions (columns 1, 5, 9, 13) and adding one or two off-beat notes for rhythm. Use mostly stepwise motion (adjacent rows) with occasional larger jumps for interest. Repeat short rhythmic patterns — repetition is what makes a melody memorable. The preset songs show this well: Twinkle Twinkle uses pairs of the same note, Mary Had a Little Lamb uses a descending-then-ascending stepwise phrase, Ode to Joy uses an ascending-then-descending pattern with a climactic jump. Load a preset, study its pattern, then try modifying it to make it your own.
Part of ToolFluency’s library of free online tools for Music. No account needed, no data leaves your device.