Get more stuff right...
authorJelmer Vernooij <jelmer@samba.org>
Tue, 15 Jun 2004 10:23:47 +0000 (11:23 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 15 Jun 2004 10:23:47 +0000 (11:23 +0100)
ptb2ly.c

index b782169d906fdacbf64924cdf981aa280540ffaa..3746f235f949b3a1f9b2f9ae42543f03ababa154 100644 (file)
--- a/ptb2ly.c
+++ b/ptb2ly.c
@@ -111,7 +111,7 @@ void ly_write_position(FILE *out, struct ptb_position *pos)
                
                fprintf(out, "%s", note_names[abs(note)%12]);
 
-               j = (note+11) / 12;
+               j = abs((note+9) / 12);
                if(note < 0) {
                        for(i = j; i < 1; i++) fprintf(out, ",");
                } else if(note > 0) {