Gridwright Start for $1

Chiptune Maker Online: Write 8-Bit Music for Your Game

Write 8-bit game music in your browser: pulse, triangle and noise voices, a piano roll that stays in key, and a WAV that loops cleanly in Godot 4.

Chiptune Composer at work
Chiptune Composer at work: Chiptune music and loops for your game.

Your game runs. The hero jumps, the coins chime, the first level is playable. And it is silent, because music is the one job you keep pushing to "later". A full music program opens on a mixer with forty knobs and a thousand instruments, none of which sound like a game. A classic tracker sounds exactly right and looks like a spreadsheet of hex numbers. So the level stays silent.

Chiptune is the way out for a small game. The sound comes from a handful of simple voices, so there is no instrument library to learn and no mixing to get wrong, and it fits pixel art by nature. This guide shows how a chiptune loop is built, how to write one in the Chiptune Composer in your browser, and how to make it loop cleanly in Godot 4. You can try it here while you read.

What makes music sound like chiptune

Old consoles mixed a few simple waveforms, and that limit is the sound. The Chiptune Composer gives each track one of these voices:

Chiptune Composer in use
Chiptune Composer in use. Every tool runs in your browser, nothing to install.
  • Pulse. The classic lead. Its duty sets the tone: 50% is hollow and full, 25% nasal, 12.5% thin and bright. A duty sweep moves it while the note plays for a chorus-like shimmer.
  • Triangle. Soft and round: the bass of most 8-bit songs, and a flute when you give it a slow attack and some vibrato.
  • Saw. Buzzier and brighter: a buzz bass, bright brass, a hard lead or a soft string pad.
  • Wavetable. A small wave you draw yourself, 32 steps long, for reeds and odd colours the other voices can't make.
  • Noise. Drums. Here it is a named kit (kick, snare, clap, closed hat, open hat, high and low tom, crash) or pitched noise.

Two more tricks finish the sound. A chord on one voice is played as a fast arpeggio, from 5 to 60 notes a second, which is how chip music fakes harmony. And a Crush setting cuts the bits down to as few as 2 for a rougher, more 8-bit edge.

Write a loop in five steps

1. Start from something that already plays

Press Songs and open a demo song, or press New. A new song is ready to draw in: four tracks (a pulse lead, a pulse harmony, a triangle bass and noise drums), one pattern of 32 steps, 120 BPM, four steps a beat. That is two bars of 4/4, a good size for a first loop. Press Space and it plays.

Chiptune Composer in use
Chiptune Composer in use. Every tool runs in your browser, nothing to install.

The demo songs were written note by note for the tool: an overworld theme with an intro, a dungeon, a chase, a rest theme and a win jingle. Open one, change it, and keep it: what you make is yours for any game or video, commercial too, with no credit needed.

2. Pick a key and lock to it

Choose the key and one of 14 scales, from major and natural minor to dorian, the pentatonics, blues and whole tone. With Scale lock on, every note you draw or move stays on that scale, so no note outside the key sneaks in.

3. Lay down bass and drums first

Pick the triangle track and draw the bass on the piano roll: click to add a note, drag its end to make it longer, right-click to delete. The presets give you a Round bass, a Punch bass that drops into each note, and a Stepped bass whose triangle is grainier.

If a blank grid is too quiet, press Ideas. It writes a starting point for the current track from your scale and a chord progression you choose (I V vi IV, vi IV I V, i VI III VII and others): roots and fifths, driving eighths, rising arpeggios, off-beat stabs, a melody, or drum grooves such as four on the floor. The same seed always gives the same notes, and undo brings your own back.

4. Add the lead

The lead is a pulse track. Start with the Clear lead preset (50% duty with a little delayed vibrato), or Thin lead (12.5%) when it has to cut through busy drums.

5. Chain patterns into a song

A pattern holds a few bars of every track. The chain at the top is the song: patterns in the order they play. Make pattern B a copy of A with a new lead, chain A A B A, and you have a verse that doesn't wear out. Set the tempo (20 to 400 BPM) and a little swing if the song should bounce.

Then mark the loop: click a cell in the chain and press [ where the loop starts and ] where it ends. Everything before the loop is the intro. The tool shows the song's length and the loop's length as you go.

Your game, looking finished

Every Gridwright asset pack, made to fit together, and all 44 tools for the fiddly work, with every new release, for $17 a month. Try it in your own game first: 3 days for $1 with every tool and up to 10 packs. Cancel any time.

Start: 3 days for $1 See everything it includes

Save the music

Press Export. The WAV is rendered to match what you heard: 16-bit, 44.1 kHz, stereo or mono. Normalise to -1 dB sets the loudest peak to -1 dB, and Let the last notes ring out decides whether the file stops when the chain ends or goes on until the last note and echo have faded.

Chiptune Composer in use
Chiptune Composer in use. Every tool runs in your browser, nothing to install.

Also press Save. The project is a .json file that opens again in the tool. Keep it with your game's source: a WAV can't be opened back for editing. Share turns the whole song into one line of text that starts with GWCHIP1: to paste anywhere and open again with Ctrl+V.

What the free demo saves, exactly as the tool says: 4 tracks, 8 patterns, one WAV of the song, project files and share strings. The full edition adds 8 tracks, no pattern limit, seamless loop WAVs, an intro plus loop with loop points in the file, stems as a ZIP (one WAV per track at the same gain, so they add up to the mix), MIDI, tempo changes inside a song and a saved library. Two demo songs, the five-track shop theme and the eight-track boss fight, open only in the full edition.

Make it loop in Godot 4

Put the WAV in your project folder. Godot 4.7 imports it compressed (QOA) by default, which keeps music small without any setting from you.

Chiptune Music
Chiptune Music: 10 chiptune game music loops + 12 jingles in 8-bit and 16-bit: intros, endings, stems. One of the 150 packs in Gridwright.

With a loop file from the full edition, there is nothing to set. The seamless loop WAV and the intro plus loop WAV carry their loop points inside the file. Godot's import option Loop Mode starts on Detect From WAV, which reads them. We checked this in Godot 4.7.2 with a test file built the same way: it imported as a Forward loop with Loop Begin at sample 22050, the end of a half-second intro. The intro plays once, then the loop passage repeats. The tool builds the loop file by adding the notes that ring past the end back to its start, and compares two passes sample by sample, so the seam has no click and no gap.

With the whole-song WAV from the demo, export with Let the last notes ring out turned off. The file then ends exactly where the chain ends, with a 3 ms fade so it doesn't click. In Godot, select the WAV in the FileSystem dock, open the Import dock, set Loop Mode to Forward, leave Loop Begin at 0 and Loop End at -1 (the end of the file), and press Reimport. We checked that as well: Godot looped the whole file. The difference from a loop file is the seam: a note or an echo still ringing at the end is cut there, so end your last bar on a short note.

To play it, add an AudioStreamPlayer node, set its Stream to the WAV and turn on Autoplay. Or from a script:

extends Node

@onready var music: AudioStreamPlayer = $Music

func _ready() -> void:
	music.stream = load("res://music/overworld_loop.wav")
	music.play()

When it doesn't sound right

  • A click where the loop restarts. The whole-song WAV was saved with ring-out on, or the last bar holds a long note or heavy echo. Save again with ring-out off and end on a short note, or use the loop file.
  • The music doesn't loop at all. Loop Mode is Disabled, or the file has no loop points and Loop Mode is still on Detect From WAV. Set Forward and reimport.
  • It drowns the sound effects. Turn the song's master down in the tool, or lower the player's volume in Godot. Chip music and retro sound effects are both bright, simple waves, so let the music sit a little under the effects.
Retro Sound Effects
Retro Sound Effects: 700+ retro game sounds, each in 8-bit and 16-bit: UI, coins, jumps, lasers, magic, loops. One of the 150 packs in Gridwright.

Score your first level today

Open the Chiptune Composer, press Space, and change the first demo song until it sounds like your game. It sits next to the Sound Effect Generator for the game's sound effects, and the Chiptune Music pack has 10 finished loops and 12 jingles in 8-bit and 16-bit for the levels you haven't scored yet. All of it is part of Gridwright: 44 tools and 150 asset packs. Start for 3 days for $1, then $17 a month, and give your game its theme tonight.

Sound Effect Generator: Game sound effects, from retro to sci-fi
Sound Effect Generator: Game sound effects, from retro to sci-fi. Included in Gridwright.
Your game, looking finished

Every Gridwright asset pack, made to fit together, and all 44 tools for the fiddly work, with every new release, for $17 a month. Try it in your own game first: 3 days for $1 with every tool and up to 10 packs. Cancel any time.

Start: 3 days for $1 See everything it includes