summaryrefslogtreecommitdiff
path: root/midi.c
diff options
context:
space:
mode:
Diffstat (limited to 'midi.c')
-rw-r--r--midi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/midi.c b/midi.c
index 341df15..e0ef9b5 100644
--- a/midi.c
+++ b/midi.c
@@ -60,7 +60,6 @@ void *midi(void *arg) {
exit(1);
}
-
// Reading MIDI device.
struct pollfd *pfds;
size_t npfds;
@@ -88,8 +87,8 @@ void *midi(void *arg) {
shared_data.note = ev->data.note.note;
shared_data.state = 1;
shared_data.velocity = ev->data.note.velocity;
- tb_printf(0, 3, TB_CYAN, 0, "Note: %3d", ev->data.note.note);
- tb_printf(0, 4, TB_CYAN, 0, "Velocity: %3d", ev->data.note.velocity);
+ tb_printf(0, 3, TB_CYAN, 0, "Note: %-3d", ev->data.note.note);
+ tb_printf(0, 4, TB_CYAN, 0, "Velocity: %-3d", ev->data.note.velocity);
tb_present();
/* printf("%3d:%-3dNote on %2d, note %d, velocity: %3d\n", */
/* ev->source.client, ev->source.port, */