TetaTricks/code/midibeep.ck

17 lines
338 B
Plaintext
Raw Normal View History

2021-10-23 14:25:18 +02:00
MidiIn input;
MidiMsg msg;
1 => int port; // please explain
if (!input.open(port)) {
<<< "erreur open MIDI" >>>; me.exit();
}
2021-10-30 15:54:36 +02:00
while (1) {
2021-10-23 14:25:18 +02:00
input => now;
while ( input.recv(msg) ) {
<<< msg.data1, msg.data2, msg.data3 >>>;
}
}