Works / Creative
OtoScript — game music from a text score
A browser sequencer that plays YAML scores. A hand-built engine on the raw Web Audio API, a BGM generator you spin by style and era, and an AI bar that edits the score from natural language.
- Role
- Design and implementation
- Period
- Jul 2026 –
- Stack
- Vite TypeScript Web Audio API YAML Claude API
Tools
Claude Code Claude API (score editing)
What AI did
The audio engine and piano roll, initial instrument presets, natural-language score edits.
What the human kept
The requirement (mass-produce, yet stay editable), the score format, the feel of each era.
Game music needs to loop, to be edited mid-way, and to swap instruments. Audio-generating models are bad at all three, so the score is symbolic text and the piano roll syncs both ways.
tempo: 132
tracks:
- name: lead
inst: square
notes: "C4 E4 G4 | r C5 v0.7 B4 | @8 A4 ..."
No external audio library: the engine drives the Web Audio API directly, aiming at the sound of sequenced consoles from the NES to the N64 and PS1. Four instrument types, including a Karplus-Strong plucked-string model, and over thirty presets. The generator is rule-based: chord tones on strong beats, scale walks on weak ones, motif repeats after four bars, a landing in the last.
Related
The Woman by the Lake — chasing the truth of one painting
A travel mystery. With a century-old postcard and an unattributed painting, a great-grandchild spends ninety days in Europe chasing the truth of their great-grandfather's picture. Thirteen weeks, with dreams reliving 1925. In progress.
Next.js · TypeScript · Neon · image generation · MIDI + SoundFont
ANIMA — you are the subject of the experiment
A metafiction text adventure of 509 scenes and roughly 100,000 characters. Every click, choice and reaction time is recorded and handed back to you in chapter five as "your results".
Next.js 16 · React 19 · TypeScript · Tailwind CSS 4 · Upstash Redis