11 November · A bigger world and new music

Writing the game's music with code

The game got 14 pieces of music made by code, replacing the music pack it had been using. The developer moved some pieces to different scenes.

The goal

The developer liked the music Claude had made for the other browser games and asked for some for Stillbreaker.

What was tried

Each piece was written as notes and chords in a text file. A small program played them with simple instruments it made itself and saved the sound. There was one piece for each of the 14 places or scenes that needed music.

Three main tunes are used in different ways. Tidewell's tune is slow and sad while the village is grey, then gets brighter and fuller as people wake up. It's also a waltz at the inn and plays on a bell in the Tide Shrine. The Spark and the Stillness each have their own tune. In Battles, the music plays at 120 beats a minute. That's one punch or jumping jack every two beats, or one squat every four.

The pieces were put on a page for the developer to review. A slider fades the village music from grey to fully alive. Claude can't hear, so a program checked for wrong notes, volume changes and clean loops. Those checks couldn't tell whether the music was any good.

What changed

The developer liked it, but wanted the tension music when the Stillness arrives. That scene had used the piece called Foe, which sounded lighter. Foe was moved to the Grey Shore instead. The developer also suggested it for "the well area", then explained that this meant the cellar under the well.

All 14 pieces went into the game that morning. The short winning sound was replaced too, because it came from the same music pack. The new music hadn't yet been heard in the game. On the phone, there could still have been a short gap each time a piece looped.

The page the developer used to review the music. The slider fades between versions of the village tune.
The page the developer used to review the music. The slider fades between versions of the village tune.Recaptured from the version of 11 November
The three pieces for Battles, bosses and Duels on the same page.
The three pieces for Battles, bosses and Duels on the same page.Recaptured from the version of 11 November
Read the 3 prompts