A Theory of Musical Narrative