summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-06-04 11:00:33 +0200
committerThomas White <taw@physics.org>2023-06-04 11:00:33 +0200
commitd47cc37d141cec4051543ad5eb408f20e8bd3d85 (patch)
tree11d6b63e7416caa825a3acd14f84271ac4c6b5a9
parent4e774dc4eb1b8a4ccd00e49b19a1cfd00c36e309 (diff)
Add debugging messages
-rw-r--r--x1k2-midi-osc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/x1k2-midi-osc.c b/x1k2-midi-osc.c
index e91dd09..36e847c 100644
--- a/x1k2-midi-osc.c
+++ b/x1k2-midi-osc.c
@@ -176,6 +176,7 @@ static void handle_note(int note, int vel, lo_address osc_send_addr)
snprintf(tmp, 255, "/x1k2/buttons/%i",
button_numbers[i]);
lo_send(osc_send_addr, tmp, "");
+ printf("sending %s\n", tmp);
}
}
@@ -212,6 +213,7 @@ static void handle_encoder(int enc, int val, lo_address osc_send_addr)
}
snprintf(tmp, 32, "/x1k2/encoders/%i/%s%s", enc, v, fine);
+ printf("sending %s\n", tmp);
lo_send(osc_send_addr, tmp, "");
}
@@ -240,6 +242,7 @@ static void handle_cc(int cc, int val, lo_address osc_send_addr)
}
snprintf(tmp, 32, "/x1k2/%s/%i", type, num);
+ printf("sending %s = %i\n", tmp, val);
lo_send(osc_send_addr, tmp, "i", val);
}