Song String (sstr) v1.1
-
Song String (sstr) v1.1 NX2CRQKDH9
Uses a song string to compose fuze music with playnote() Thanks to tony7059 who inspired me to write this code after seeing his refactored version of the Music Tutorial. Thanks to Squidstack who quickly composed some Mozart as a test song for this share. I was really just trying to see if I could make a music string that could be parsed instead of a note array. This saves lines of code and only takes a little time to learn. In the first version that was shared to friends only, there was no note offset and it quickly became apparent that I would need to solve for a larger range of notes. This version 1.1 only allows a range of notes between 00-99 with an offset value which should be enough. The other restrictions is that speed uses a single decimal digit 0-9 for speeds 5-50. The duration or length value is a single digit hexidecimal number 0-f for values 1/12 to 16/12 -
Nice work! This will come in handy for composing music for our games.