17 lines
344 B
Plaintext
17 lines
344 B
Plaintext
|
MidiIn input;
|
||
|
MidiMsg msg;
|
||
|
|
||
|
1 => int port; // please explain
|
||
|
|
||
|
if (!input.open(port)) {
|
||
|
<<< "erreur open MIDI" >>>; me.exit();
|
||
|
}
|
||
|
|
||
|
while (1) {
|
||
|
input => now;
|
||
|
while ( input.recv(msg) ) {
|
||
|
<<< msg.data1, msg.data2, msg.data3 >>>;
|
||
|
}
|
||
|
}
|
||
|
|