Playing a sequence of musical notes was hooked onto the standard BASIC "PRINT" command by the use of a special "control character", much like the cursor control, color changes and other control characters. E.g.
played a rising scale. Commands like TEMPO and TUNE was used to set the playback tempo and the timbre of the note sequence.