That's promising! So can you tell me why the following code didn't print any MIDI messages? It got as far as "0.000000 0x635390 0x632c50 reading midi from port 0 -> FireWire 410", but then nothing more.
- Rob
// Korg nanoKontrol
//
public class Kontrol {
fun void init() { spork ~ _processMidi(0); }
fun void _processMidi(int midi_device) {
MidiIn midi_in;
MidiMsg midi_msg;
while (!midi_in.open(midi_device)) {
<<< now, me, this, "can't open midi device", midi_device, "...waiting 10 seconds" >>>;
10::second => now;
}
<<< now, me, this, "reading midi from port ", midi_device, "->",
midi_in.name() >>>;
while (true) {
midi_in => now;
<<< now, midi_in.toString() >>>;
while (midi_in.recv(midi_msg)) {
<<< now, midi_msg.toString() >>>;
}
}
}
}
Kontrol k;
k.init();
1::week => now;