GAYBOY piano-roll sequencer running on the Game Boy

Evatech TechNotes

GAYBOY: Four Sound Channels and a Complete Lack of Restraint

GAYBOY piano-roll sequencer running on the Game Boy

A Game Boy has four sound channels, a tiny screen, and absolutely no obligation to become a music workstation. Naturally, I took that personally. GAYBOY is my synth, piano-roll sequencer, sample drum machine, and performance mixer packed into a Game Boy ROM. Yes, that is the name. We can move on now.

Four channels. Several unreasonable requests.

The trick is getting an actual instrument out of the hardware budget. GAYBOY has seven logical tracks sharing four physical sound channels. The pulse, wave, and noise voices cover the native synth side. Ten PCM sample rows and two noise-drum voices handle the beatmaking side. The sample drums share the wave output, so every new feature comes with a little negotiation over who gets to make noise.

Two simultaneous sample voices are mixed as four-bit PCM. That sentence sounds tidy. Making the timing, drawing, controls, and samples coexist has been considerably less tidy. Moving between patterns should not make the clock forget what time is. Drawing the mixer should not interrupt the drums. A handheld from this family of hardware is very good at explaining that your CPU budget is a budget.

The browser player needed ears

Getting a ROM to boot was only part of getting it online. An earlier browser emulator produced a strong unwanted carrier during PCM playback. A technically running demo that adds its own obnoxious instrument is still a broken demo.

The player now uses a self-hosted SameBoy WebAssembly core. In a controlled constant-value PCM test, that change reduced the unwanted noise by about 21.7 dB. The practical goal was simple: hear the samples instead of the emulator arguing with them.

Then came the less glamorous stuff that makes browser instruments usable: touch controls that handle held button combinations, audio recovery after interruptions, and save export. The interactive tutorial runs a separate practice cartridge, demonstrates real controls, and checks whether you actually completed the task. Your normal session stays parked while you learn. Learning to place a note should not cost you the beat you already made.

Of course it needed an intro

There is also a four-shade pixel cinematic: records, an MPC, a train ride, and a handheld coming alive. Did the sequencer require a tiny music video? No. Did I build one anyway? You are reading a development post about something called GAYBOY. You knew the answer.

What works, and what still needs work

The current development build has piano-roll note editing, lengths and velocities, sample kits, pattern pads, mixer levels, pan, mute/solo, and cartridge save slots. Arduinoboy in mGB mode provides a route to playing it from external MIDI gear. Browser play includes the tutorial, local saves, and shared beats.

The downloadable cartridge is currently 1 MiB with MBC5 and battery-backed 32 KiB RAM, targeting the original Game Boy and Game Boy Color. This remains a development build. Physical hardware and audio validation are still in progress. Emulator measurements show progress on sample playback and pattern transitions, but strict live-timing checks still fail in some cases. I am not calling it stage-proof because it survived my browser.

Make it beep

Play GAYBOY in your browser and hit Play tutorial for the guided introduction. Or download the ROM for a compatible emulator or flash cartridge. Back up your saves while development continues.

The illustrated user guide is available as a review draft, and the GitHub repository has the source and issue tracker. You can also find it on Y2KCRISIS.

Headphones on. Plot some notes. Give an elderly handheld a new reason to scream.

Leave A Comment

Your email address will not be published. Required fields are marked *

Machine trouble? Call 330-207-6510