In part one I worked out the idea: a blueprint, sketches, a quick, throwaway sound test on the 2DS and a browser prototype that looked right. This part is about leaving the browser (almost; hey, quick checks are still allowed :-)). A real app in C, on my New 2DS XL. The agent writes the code. I set the rules, make the decisions and check every step myself. I wanted one thing above all: build quality I can trust.
The screens in this post are drawn by the app's own C code, in a browser. The photos are from the console.
House rules before code
Before any code, I wrote a rules file for every AI agent that touches the project. How I like to build in general, and especially with coding agents.
Four layers: the sound engine, the app logic, the screens, and a thin part that talks to the console. Two threads: one for buttons and screens, one only for sound. The sound thread may never wait, never ask for memory, never print. One forbidden call there and you hear it as a click.
I had the agent check my rules against the way we already worked and merge them. Three questions were mine to answer. Where does the log live? In my notes, not in the code. One branch per feature? Yes. And should it run on the old 3DS too? I thought so, but I didn't want to guess. That stayed open until we had measured.
The design was a translation
First surprise: the written design no longer matched what I wanted. And it never quite had. It was the agent's translation of my words. I said: make something new out of one recording, erase parts of it spectrally, add clicks and crackle, play it like a Kaoss Pad. It wrote: a picture of the sound you paint on with brushes. In the browser I showed what I meant: up to eight playheads moving through the sound, like grains. Building the written design would have meant building the wrong instrument. So step zero was rewriting it from the prototype, and only then writing code.
A skeleton and a beep
The first feature made no music at all. It is the skeleton everything else hangs on: the layers, the sound thread, a safe way for the two threads to talk, and a test tone.
My favourite part is one command that checks everything: the tests run twice under different watchdogs, the sound is rendered to a WAV file on my Mac, the 3DS version builds with zero warnings allowed, and a few of my rules are checked automatically. To make sure the guards really bite, I had the agent break two rules on purpose. Both times the build stopped.
Then the app went over Wi-Fi to the 2DS. A clean beep, soft in and out, no crackle. A beep is not music, and it's not mine: every sound the agent generates, like this beep or the little tick in the menu, is a placeholder. The real sounds will come from me. But now I knew the ground holds.
Measured, not guessed
Same evening, the playheads arrived in C. And with them the question that decides who can play MUSICALA: how many playheads does an old 3DS manage?
I don't guess, so I asked for a benchmark built into the app. Press a button and it runs nine combinations by itself, then shows a table. Eight playheads in "old" mode (more on that below): more than 100 % of the time budget.
And one honest catch: at 103 % load, the counter for gaps in the sound still said zero. Impossible. It only noticed a gap when every buffer was empty at the same moment. A measuring tool that lies is worse than none. So first the counter got fixed. Then the engine got a trick from old game consoles: count positions in whole numbers with an invisible decimal point, because the chip in the 3DS hates turning decimals into whole numbers. Eight playheads went from 103 % to 63 % in "old" mode.
Then I made the call the rules leave to me: MUSICALA runs on every 3DS. Old ones get four playheads, new ones eight.
An old 3DS inside a new one
I only own a New 2DS XL. Its processor runs at 804 MHz and has a second core for the sound. The first 3DS from 2011 runs at 268 MHz, with no second core. If MUSICALA should run there too, I have to test for it, without buying another console.
So I asked for a developer mode. In developer builds, holding a finger on the bottom-left corner of the title screen for two seconds opens a hidden menu. There I set the clock speed and the cores, and my 2DS turns into an old 3DS: 268 MHz, sound on the same core as everything else, four playheads instead of eight.
This changed how I build. The house rules now say: every feature has to stay within the old console's budget, four playheads plus effects at no more than half the time available. Every new feature gets checked in the slow mode on my own console before it counts as done. That way "it also runs on the old 3DS" isn't a hope. It's tested.
Look before you send
Next came the screens you see first: the boot, a quiet title, a list of projects. Scroll through them and each one plays its own sound softly underneath. No menu music.
On the Mac everything was tested: logic, sound, memory. Then I looked at the 2DS. Everything was twice as big as it should be, and blurry. The pixel font had gone through a standard tool that measures in points, not pixels, and smooths the edges. The console's graphics chip then smoothed them again. A pixel font, smoothed twice, is mush.
The real mistake was simpler: nobody had looked. The tests checked that the text was there, not how it looked. The fix was a small tool that stores every dot of the font as exactly one screen pixel. And a new house rule: every screen built in C gets compared side by side with the browser prototype before it goes anywhere near the console. The console is for sound and feel, not for finding blurry letters.
Buttons or touch
Then the page you actually play. The sound as a field of dots, and on top the playheads: coloured lines with a small triangle pointing the way they move.
The prototype had a letter button for every playhead: A, B, X, Y, and with a shoulder button held, four more. The AI suggested building it exactly like that. I hesitated. Letters you have to remember, and B can no longer mean "back". So I asked for pros and cons, and we went with touch only for the heads: you grab what you see and drag it. Left and right is where in the sound, up and down is the pitch, snapped to a scale so it always fits. The buttons became shortcuts: A starts and stops, B goes back.
Play and stop are one button. Tap the play tab and it turns into stop, while the dots light up in the colour of the head that is playing them. Tap it again, or press A, and it's quiet. One place to look, one place to touch.
A lock in the corner
Then I thought about a stage. A club, dark, a cable pulling at the handheld, and my thumb hits B. The whole session closes in the middle of a set.
That's the kind of thing you only think of when you imagine the real situation. So leaving a session now needs B held for half a second; a quick tap only shows "hold b to leave". And there is a lock: a small padlock in the corner. Hold it for a second and the buttons do nothing anymore, while the touchscreen keeps working. On the first try, the "locked" message sat small in the corner where nobody would see it. Now it sits in a box in the middle of the screen.
Insert coin
The last thing was pure fun. The title says INSERT COIN and PRESS START, taking turns. Press START and a short arcade run of five rising notes plays, from the same scale the instrument uses, made by the console itself. Then the menu opens. A placeholder too, until I make the real one.
What went wrong
- A test reported a click in the test tone. There was none. The test forgot what it had measured between two steps.
- The counter that said zero at 103 % load.
- The font, sent to the console without anyone looking at it.
- The first start sound blinked PRESS START even when INSERT COIN was showing. I only noticed it on the console.
None of it was dramatic. Most of it never reached the console, because the rules caught it first.
What I take from it
This is how I use the agent: I write the rules, I decide, and I check with my eyes and hands. The agent writes the code and the tests. I double-check what it wrote in VSCodium and with CotEditor on my Mac. But tests only check what we thought of. Looking at the screen and holding the console find the rest. That's why every step ends on the 2DS in my hands, not in a test.
Next
Fine control: every value in the smallest steps, hold and it speeds up. Then adding and deleting playheads, and undo. And hopefully soon, something you can hear.