A Generative Theory Of Tonal Music