Macaw OS C reference

Function notename

#include <macaw.h>
int notename(int n, char *buf, int size);

Turns a note's number back into its name, the way Tracker writes it.

Parameters

nint
The note's number: 49 is C-4. 0 gives "---" and 97 gives "===".
bufchar *
Where the name goes, like "C-4".
sizeint
How many bytes buf holds. A name that doesn't fit is cut short.

Returns int

The name's whole length, which is 3 for the notes from 0 to 97.

In Songs and the music chip, with playsong, stopsong, loadsong, playloadedsong, freesong, music_volume, music_note, music_release, notenumber.