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.
The connection of musical notes to the standard BASIC "PRINT" command was achieved using a special control character, similar to how cursor control, color changes, and other control characters are used for manipulating text in BASIC programs.