TetaTricks/code/midibeep.ck
2021-10-30 15:54:36 +02:00

17 lines
338 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 >>>;
}
}