This page is at least 12 years old !
Sötplayer is a tiny music and sound effects player for the Gameboy ("söt" means "cute" in Swedish). It also comes with a converter for MIDI files with track and instruments mapping/editing with exporting to WLA-DX asm.
call stepmusic ![]() Source code (Version 1.1) Assembled size: 465 bytes. Maximum number of tracks: 4. Track format: Delta, A, (B), Delta..., 0 Delta is the number of frames to wait before stepping to the next command, its encoding is the same as the one used in MIDI files:
Delta can therefor be any value between 0 and $7FFF (15 bits) included. The presence of the B byte depends on the A byte:
Instrument 0 is used to mute the track (stop the note). Example track data: Note on $24, instrument 5 00,85,24 Delta=0 InstrumentChange=5 Note=24 10,80,00 Delta=10 Note off 10,25 Delta=10 Note=25 80,8C,86,20 Delta=8C InstrumentChange=6 Note=20 20,80,00 Delta=20 Note off Sot format: 15 bytes, MIDI format: 21 bytes.
|