Skip to content

Instantly share code, notes, and snippets.

@0KepOnline
Last active January 26, 2022 21:14
Show Gist options
  • Save 0KepOnline/45295d29cfce46d3315885aa9f3b101b to your computer and use it in GitHub Desktop.
Save 0KepOnline/45295d29cfce46d3315885aa9f3b101b to your computer and use it in GitHub Desktop.
.cmp format description (Spore, 2008)

.CMP file in HEX editor

20 43 4D 50 — City Music Planner file header. Always set to 20 43 4D 50 ( CMP).
00 00 00 01 — Count of anthems in the file. Used in game saves, but in exported city music always set to 00 00 00 01.
00 00 00 04 — Ordinal number of the selected beat (green) . 00 00 00 00 if not selected.
00 00 00 0A — Ordinal number of the selected instrument (blue). 00 00 00 00 if not selected.
00 00 00 0E — Count of notes. Value from 00 00 00 00 to 00 00 00 10 (0 - 16) in vanilla game *.
00 00 00 ** — Note pitch. Value from 00 00 00 3C to 00 00 00 54 (60 - 84) in vanilla game *.
** ** ** ** — Note length. Float value from 0.25 to 4 in vanilla game *.
00 00 00 04 — Count of selected ambience sounds. 00 00 00 00 if not selected.
00 00 00 ** — Ordinal number of the selected ambience (magenta) . Missing if no one selected.
00 00 00 03 — Count of volumes. Always set to 00 00 00 03 (at least, in exported city music).
3E AC 3C 9E — Volume of ambience. Float value from 0 to 1.
3F 80 00 00 — Volume of the beat. Float value from 0 to 1.
3F 80 00 00 — Volume of the instrument. Float value from 0 to 1.

* Configured by Spore_Audio1.package/audio~/playercitymusic.prop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment