2020+2 a new hope ?

This commit is contained in:
tth committed 2022-01-08 03:34:05 +01:00
1 parent 95046aa71d
commit 85c1846a0b
4 files changed
+22 -6

No files matched your search

+10
View File
@@ -7,8 +7,10 @@
MidiIn input;
MidiMsg msg;
OscOut xmit;
1 => int port; // please explain
9000 => int OSCPort;
if (!input.open(port)) {
<<< "erreur open" >>>;
@@ -18,12 +20,20 @@ if (!input.open(port)) {
// print out device that was opened
<<< "MIDI device:", input.num(), " -> ", input.name() >>>;
xmit.dest("localhost", OSCPort);
// infinite loop
while (1) {
input => now;
while ( input.recv(msg) ) {
<<< msg.data1, msg.data2, msg.data3 >>>;
xmit.start("/joystick/b");
}