osc+chuck=wip

This commit is contained in:
tth
2021-07-23 14:13:56 +02:00
parent 2e9b344922
commit 7c91072873
5 changed files with 52 additions and 14 deletions

View File

@@ -5,6 +5,29 @@
* nouveau Rural Art System 2021 - TerreBlanque
*/
MidiIn input;
MidiMsg msg;
1 => int port; // please explain
if (!input.open(port)) {
<<< "erreur open" >>>;
me.exit();
}
// print out device that was opened
<<< "MIDI device:", input.num(), " -> ", input.name() >>>;
// infinite loop
while (1) {
input => now;
while ( input.recv(msg) ) {
<<< msg.data1, msg.data2, msg.data3 >>>;
}
}