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.
This example describes how a special control character was used to link musical notes to the standard BASIC "PRINT" command, much like how other control characters are used for various functions within a program.