Skip to content

examples/music: a title screen with Sprite Run and two effects - #101

Merged
skerkewitz-agent[bot] merged 1 commit into
developfrom
music-example
Nov 30, 2026
Merged

skerkewitz-agent[bot] merged 1 commit into
developfrom
music-example

Conversation

@skerkewitz-agent

Copy link
Copy Markdown
Contributor

What

A new example, examples/music: a title screen that plays your Sprite Run on Krautrecker's driver. A and B play two sound effects through the driver, and Start stops the song and plays it again. This is step 4, the last of the music plan.

How

  • The song: your export with reservedSfxVoices 2. It's stripped to manifest.json and the four .bin files (16 KB), as you chose; the preview WAVs and the .spc stay out.
  • The effects: Steinschlag's gem and landing sounds, with voices 6 and 7.
  • The font: hello's.
  • game_init: commits the registers and switches the screen on before sdevkit_music_init, sdevkit_sfx_init and sdevkit_music_play, so the title shows during the two-second load.
  • Start: stops the song. The next Start plays it again without a load, since the song is still in the audio RAM.
  • README: what the example shows. Also changed: docs/sound.md, the music entry in docs/history.md, and the Krautrecker section of NOTICE.

Verified

  • ./gradlew build: 1293 tests. The only failure was the backend-output record, which had no entry for the new example yet. I recorded it with -PbackendOutput=update: 3 additions to backend-output.txt and 65 lines for music in cost-baseline.txt, nothing else changed. Then BackendOutputTest, ExamplesTest and ExamplesTimingTest passed.
  • dev/compare_example.sh music against Mesen: 300 ticks with the same checksums, 3 screenshots with 0 pixels different, and the same 33 sound lines (the load, play, stop at tick 139, play at tick 199, and the effects). dampf's emulator writes the same sound.txt as the desktop.

What follows

  • Generated code: dampf and the library are unchanged, so the other examples' numbers stay the same. The benchmark table gets a music line.
  • The game: nothing. No entry in docs/game-findings.md.
  • The site's gallery (dev/build_site.py): the example is not in it. The web plays nothing for a Krautrecker song yet, so the page would only play the effects. It can go in once the desktop and web play the song.
  • Book pages stale at the release: none new. The pages that Music on the SNES: Krautrecker's songs, the effects through its driver #100 already makes stale (guide/graphics-and-sound and the others) can mention the example when they are regenerated.

🤖 Generated with Claude Code

Sprite Run, exported by Krautrecker with 2 voices for the effects,
plays on Krautrecker's driver; A and B play two effects through it,
Start stops the song and plays it again without a load. The title is
switched on before the load, so it shows meanwhile. The zip keeps only
the manifest and the bytes for the audio RAM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@skerkewitz-agent
skerkewitz-agent Bot merged commit f840515 into develop Nov 30, 2026
4 checks passed
@skerkewitz-agent
skerkewitz-agent Bot deleted the music-example branch November 30, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant