added a third function that adds the ability to switch MIDI channels