Music analysis, repertoire and perception