Inspiration
Early player pianos could repeat a performance from a perforated roll of paper. A roll made music visible before a screen ever could. Moonspool Cabinet brings back the pleasure of looking at a row of holes and wondering what they sound like. Marc’s interest in dark witchcraft and the night sky gave the instrument its moon dial, brass details and two short nocturnal pieces.
What it does
Select Moonrise or Widdershins, then punch your own holes in the roll. Each column is a sixteenth note. Holes stacked in a column ring together. The paper passes beneath a playhead while a small synthesizer strikes the notes. You can change the speed, undo an edit, save a MIDI file or copy a link that opens your score, tempo included. Download the repository to play offline.
How we built it
Kiro CLI 3.6.0 wrote the musical engine. We gave a custom Kiro agent the five pitches, the sixteen positions and a precise MIDI and share-link contract. It composed the two example rolls and implemented the encoder, decoder and MIDI writer. The agent configuration, steering and specification are in the public repository’s .kiro folder. The wood, brass and paper interface uses CSS, JavaScript and the Web Audio API. All the sound is synthesized in the browser.
What was hard
An empty roll still has to last one whole bar. A note repeated in consecutive steps must release before it sounds again. We wrote an independent MIDI reader to check the actual output. Our tests also uncovered two malformed inputs the first implementation accepted. We sent both failures back to Kiro. The revised engine rejected them while preserving earlier shared rolls and both melodies.
What we verified
We tested all 80 holes, 1,024 shared rolls and 272 independently decoded MIDI files. In a browser we edited with the keyboard, restored a cleared score, played the instrument, downloaded MIDI and reopened a copied link. The demo records the cabinet’s own audio. On a 390-pixel-wide phone screen, the controls and the full score fit within the page.
What comes next
A useful next experiment would be a printable roll with the same perforations as the digital score. The current export is Standard MIDI File format 0.
Practice a phrase in Kiro Crew
If the hard part of a melody is just four steps long, you can rehearse those steps on their own. Open the same Cabinet roll in Moonspool Rehearsal, choose a passage and slow it down. A four-beat count-in leads into each practice session. A cursor follows the chords and rests while the selected passage repeats. We tested this with a Cabinet roll in the Kiro Crew dashboard on Windows. Play a phrase in the browser or install the companion app in Kiro Crew.