Macaw OS C reference

Module Songs and the music chip

#include <macaw.h>

Functions

playsong
Plays a song file on the music chip, from the Music app or Tracker.
stopsong
Stops the song that's playing.
loadsong
Reads a song file once, so you can play it many times with playloadedsong without reading the file again.
playloadedsong
Plays a song you loaded with loadsong.
freesong
Lets go of a song you loaded, once you won't play it again.
music_volume
Sets how loud the music chip is, for songs and for music_note.
music_note
Plays one note on the music chip straight away, with an instrument from the last song played.
music_release
Lets go of the note playing on a channel, so it fades away the way its instrument does.
notenumber
Turns a note's name, written the way Tracker writes it, into its number.
notename
Turns a note's number back into its name, the way Tracker writes it.