Claude Game Studio

8 bit music maker

This 8 bit music maker is a step sequencer with a square lead, a triangle bass and noise drums: click notes into a 16 or 32 step grid, press Play, and export the loop as a WAV file that repeats with no gap.

Square leadone note per step, 8 pitches
C6Bb5Ab5G5F5Eb5D5C5
Triangle bassone note per step, lower octave
C3Bb2Ab2G2F2Eb2D2C2
Drumssnare and hat are noise, the kick is a falling tone; all three can sound together
KickSnareHat

Swipe the grid sideways to reach every step.

Length

Press Play to hear the loop, then click cells to change it.

Loop: 32 steps · 3.20 seconds · 141,120 samples · 44,100 Hz mono 16-bit WAV, 276 KB

Three voices, one note at a time

The square lead carries the tune. The NES sound chip has two pulse channels, and a pulse can be wide or thin. This maker offers 50% (full and round) and 25% (thin and reedy). A thin pulse cuts through a busy mix, so the Boss fight preset uses it. The lead plays one note per step, the way a chip channel does.

The triangle is the bass. It has no volume control on the chip, only 16 levels of height, so it sits underneath the lead at one fixed loudness. Here it sits three octaves under the lead, so a bass note and a lead note on the same row never clash. Every row is a note of the chosen scale, so a stray click stays in key.

The noise channel is the drums. Hats and snares come from a 15-bit shift register clocked at different speeds, the way the chip makes them. The kick is a short sine that falls from 150 to 45 Hz. The NESdev wiki's APU page documents the original channels.

Start from game music that already works

Each preset is a finished loop you can play, edit and export. Boss fight is a driving C minor loop, Sunny overworld moves C, A minor, F, G, and Menu bounce is one bar in G major for a title screen. The loop lengths below come from the grid itself, so a 32-step loop at 150 BPM is exactly 3.20 seconds.

A loop that repeats on the sample

A game track plays for minutes, so the seam matters. The exported file holds exactly one pass of the grid: 44,100 samples a second, mono, 16 bits. Notes end before their step does, and a drum tail that runs past the last step wraps round to the start, so the file ends where it begins.

Play it back through a Web Audio buffer with loop set, as below. The MDN reference for AudioBufferSourceNode.loop describes the property. Browsers wait for a tap or click before they start audio, so start the music from the first pointer press.

const ctx = new AudioContext(); const data = await (await fetch("./8-bit-loop.wav")).arrayBuffer(); const music = ctx.createBufferSource(); music.buffer = await ctx.decodeAudioData(data); music.loop = true; // repeats on the sample boundary music.connect(ctx.destination); addEventListener("pointerdown", () => { ctx.resume(); music.start(); }, { once: true });

Other ways to write chiptune

ButtonBass is a drum-pad machine with six chiptune kits and a generator for whole songs, and it renders the song to WAV. It suits a quick beat. This page writes a short loop note by note and sizes the export to one pass, which is what a game's music slot wants.

For a full track with several channels, BeepBox in the browser or FamiTracker on Windows give you more channels and effects. Wikipedia's chiptune article gives the history of the style.

Questions

How do I make 8 bit music?

Click notes into the square lead and triangle bass rows, add kick, snare and hat hits, set the tempo and press Play loop. One column is a sixteenth note, so 16 steps is one bar of 4/4. Export WAV loop saves exactly the samples you heard.

What is 8 bit music called?

It is called chiptune: music written for the sound chips of old consoles and computers, or made to sound like them. This maker uses the three voices of the NES chip, a square wave for the lead, a triangle for the bass and noise for drums.

What software is used to make 8 bit music?

Trackers such as FamiTracker write real NES music, and BeepBox is a browser tracker with a similar feel. This page is a simpler step sequencer: you see every note on a grid and leave with a WAV file the size of one loop, ready to drop into a game.

How do I loop the WAV in a browser game?

Decode the file once with Web Audio and set loop to true on the buffer source. Unlike an audio element with the loop attribute, a buffer source repeats on the sample boundary, so the exported loop does not pause at the seam. Start it from a click or tap.

Put your assets into a playable game. Try the ten game templates or get the kit.