Abstract: A digital synthesizer type electronic musical instrument that has the ability to automatically accompany a pre-recorded song with appropriate chords. The pre-recorded song is transposed into the key of C major, divided into a number of musical sequences, and then stored in a data structure. By analyzing the data structure of each musical sequence, the electronic musical instrument also can provide intelligent accompaniment, such as voice leading, to the notes that the operator plays on the keyboard.