I stumbled across the Python winsound module today. It is a standard library on Windows machines and it has a function for controlling the PC speaker. Harf.

Hear it play the music from Close Encounters of a Third Kind from a list of frequencies and durations:

import winsound

from winsound import *
for x in music:

A list of frequencies and durations is a simple, computational form of musical notation.