Chord Recognition and Segmentation Using EM-trained Hidden Markov Models