Function notenumber
#include <macaw.h>int notenumber(const char *name);
Turns a note's name, written the way Tracker writes it, into its number.
Parameters
nameconst char *- The note, like
"C-4","F#3"or"A-5": a letter,-or#, then the octave."---"is no note and"==="is a note-off.
Returns int
The note's number ("C-4" is 49, and each semitone up is 1 more), 97 for "===", or 0 for "---" or a name it can't read.
In Songs and the music chip, with playsong, stopsong, loadsong, playloadedsong, freesong, music_volume, music_note, music_release, notename.