Music Example Code
-
Hi,
There has been quite an interest in making music in Fuze lately, so I thought I would show how I'm doing it. It's probably not the best way, and I will try to improve on this in the future, but for now I am sharing the music parts ripped out from my current work-in-progress game.
Two songs, with a bit of different approach. The first one contains only FM sounds, and the second uses a combination of FM and samples from the assets.
I have tried to add a lot of comments in the code to explain how things work.
Feel free to use my code in your own projects if you want to!Download ID:
NX24QCFD5C
This is a table of the midi numbers used by the note2freq() function:
https://usermanuals.finalemusic.com/Finale2012Mac/Content/Finale/MIDI_Note_to_Pitch_Table.htm