Move most MIDI chord functions to source chord file