REF / Music API / Song

Ascene . Agraph . Aengine
Anode . Modulator . Envelope
Songbook . Song . TimeKeeper
Voices . SampleMgr . StreamMgr
Loader . Async . Plot
Random . Rhythm . Util
MIDI . OSC . HID . Piano
Music Theory with Tonal

right-click to navigate to page sections


Wherein we present to the MusicAPI Song class interface. For more details on the Songs.hz format see here.

Songs (and this API) are usually constructed and employed indirectly by Songbook.

Song class API

Method Description
constructor(astSong, astSongbook, songId) Creates a Song from that subset of the songbook representing a single song. Used by Songbook class to instantiate a Song.
GetId() Returns the song id.
GetName() Returns the song name.
GetAnodeInits() Returns an array of AnodeInits defined within the song.
async *Perform(iscene, anodeMap, optoins) A lower-level entrypoint to Perform a song via this MusicAPI.
home .. topics .. interface .. reference .. examples .. tipjar