TetaTricks/code/midibeep.ck

17 lines
338 B
Plaintext
Raw Normal View History

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