login

<     >

2020-12-29 13:29:40 (UTC-03:00)

Marcel Rodrigues <marcelgmr@gmail.com>

zero-pad printed notes

diff --git a/seqt.c b/seqt.c
index f657a98..2e0e6f9 100644
--- a/seqt.c
+++ b/seqt.c
@@ -25,7 +25,7 @@ print_notes(unsigned char duration, int track, int index, int head)
     for (voice = 0; voice < MAXVOICE; voice++) {
         cell = matrix[index][track][voice];
         if (cell & 0x80)
-            head ? printf("%2u", cell & 0x7F) : printf("||");
+            head ? printf("%02u", cell & 0x7F) : printf("||");
         else if (cell == REST)
             printf("--");
         else if (cell == CONT)