Music As An Information-Bearing Medium: Extracting Latent Structure For Theoretical And Practical Purposes