Music, Mind, Machine. Computational Modeling of Temporal Structure in Musical Knowledge and Music Cognition