for (ps = staff->positions[0]; ps; ps = ps->next) {
abc_write_position(out, gtr, ps);
}
+
+ fprintf(out, "\n");
}
void abc_write_section(FILE *out, struct ptb_guitar *gtr, struct ptb_section *sec)
if((pos->linedatas && pos->linedatas->next) || print_length) fprintf(out, " <");
for (d = pos->linedatas; d; d = d->next) {
- int note;
int i;
int octave;
-#define DEFAULT_OCTAVE 4
-
- note = gtr->strings[d->detailed.string] + d->detailed.fret;
-
octave = ptb_get_octave(gtr, d->detailed.string, d->detailed.fret);
fprintf(out, "%s", note_names[ptb_get_step(gtr, d->detailed.string, d->detailed.fret)]);
- for(i = octave; i < DEFAULT_OCTAVE; i++) fprintf(out, ",");
- for(i = DEFAULT_OCTAVE; i < octave; i++) fprintf(out, "'");
+ for(i = octave; i < 4; i++) fprintf(out, ",");
+ for(i = 4; i < octave; i++) fprintf(out, "'");
if(pos->palm_mute & POSITION_STACCATO)
fprintf(out, "-.");