A theory of musical semiotics