Castletunia
Generative dungeon-synth and 16-bit RPG battle soundtrack instrument: phrases played on the keys become attacks by a three-member party against a boss on nine fantasy stages, with spells and status effects that reshape the music.

- Distribution
- Prebuilt image you flash yourself
- License notes
- LICENSING.md, which is Dinghy's, gives GPL-3.0-only, while the README badge and text say GPL-3.0. The platform code is credited to Leo Kuroshita and others and the Terminus font is SIL OFL 1.1. The logo in assets/ is designburg's signet, all rights reserved and not under the GPL. The JieLi SDK files are read from the builder's own SDK checkout and are not in the tree. The only firmware package committed, docs/castletunia.fwsc, is the project's own build and is not an M-VAVE stock image.
- Source
- github.com https://github.com/provostprovost/castletunia
- Homepage
- github.com https://github.com/provostprovost/castletunia
- generative
- ambient
- synth-engine
- fm
- drums
- fx
- game
Description
The project was published as Fantasia and is now Castletunia. A three-member party of two-operator FM voices (Fighter, Cleric and Sorceress) plays over backing chords and an FM percussion kit, with a room reverb and a soft clipper. A phrase of one to sixteen notes played on the 27 scale-quantized keys is committed on the next beat and becomes the active character's attack, and the generator weaves the phrases into a four-bar A, B, A, C arrangement. Nine stages, from the Crypt and Tavern to Coronation and Boss, each set a scale, tempo, chord progression, drum kit and per-character timbres, and each boss counts player turns before a three-beat drum-roll build-up and a one-bar musical curse. Spells (Haste, Mirror, Shatter, Resolve and Toll) and four status effects (Sloth slow, Poison, Berserk and Freeze, added in 1.1.0) change what the party plays, and macro encoders set intensity, drift, density, harmony, weave and tempo. The 240 by 240 screen shows a pixel-art battle scene with activity meters and status badges, after a skippable splash. It is built on Dinghy. Release packages were named dinghy-X.Y.Z up to 1.2.0; 1.3.0 attaches a castletunia-1.3.0.fwsc beside them and 1.4.0 only a castletunia package. Version 1.3.0 adds six backing-pad modes and five party voice engines, all synthesized without samples, and 1.4.0 adds auto-advancing realms, a boss-defeat animation and a stage lock.
Install notes
The README advises backing up stock patterns and presets with M-VAVE's tool first. Download the .fwsc package from the release (castletunia-X.Y.Z.fwsc from 1.3.0) and install it with tools/fm1_install.py, or build it with the JieLi toolchain and SDK (build.sh). The README says to hold OCT- while powering on to enter USB rescue mode, to reflash with fm1_install.py, and to return to stock with M-VAVE's updater or a backup package. Releases up to 1.3.0 also attach SMK-37 packages, but the README describes only the FM-1.
Version history
| Version | Date | Notes |
|---|---|---|
| 1.4.1 | 2026-11-21 | Makes intensity climb from 20% to 100% across each realm when stage lock is off, then reset in the next realm, with drum velocity, backing pad level and groove patterns following it. Replaces the busy percussion in The Tavern and The Chasm with syncopated grooves and fills, and stops sprites flickering at high intensity. |
| 1.4.0 | 2026-11-20 | Realms advance on their own after a number of turns, with a boss-defeat animation and a one-bar victory fanfare. SAVE toggles a stage lock, the starting realm is random and three realms are renamed. |
| 1.3.0 | 2026-11-20 | Adds six synthesized backing-pad modes and five party voice engines, with no samples. |
| 1.1.1 | 2026-11-20 | Live phrase capture is aligned to the bar. |
| 1.1.0 | 2026-11-20 | Adds the status effects Sloth slow, Poison, Berserk and Freeze, with a one-second preview before they take effect. |
| 1.0.2 | 2026-11-20 | Anchors sixteenth notes, adds harmonic weave and removes swing, and changes the drums on the Sands, Spire and Tundra stages. |
| 1.0.1 | 2026-11-20 | Directional stage scrolling and a new splash. |
| 1.0 | 2026-11-20 |