MIDI Looper in Java