More MIDI recording logic....