{
int i;
- if (warn_unsupported && s->musicbars) {
- fprintf(stderr, "Warning: Ignoring musicbars\n");
- }
-
fprintf(out, "\n%% Notes for section %d, staff %d\n", section_num, staff_num);
fprintf(out, "%s = {\n", get_staff_name(section_num, staff_num));
fprintf(out, "\t");
int staff_num = 0;
struct ptb_staff *st = s->staffs;
+
+
if (s->description) {
fprintf(out, "\n%% %c: %s\n", s->letter, s->description);
}
st = st->next;
staff_num++;
}
+
+ if (warn_unsupported && s->musicbars) {
+ fprintf(stderr, "Warning: Ignoring musicbars\n");
+ }
}
void ly_write_tabstaff(FILE *out, struct ptb_staff *s, struct ptb_section *section, int section_num, int staff_num)
for(i = 0; i < 2; i++)
xmlAddChild(xstaff, xml_write_positions(staff->positions[i]));
- xmlAddChild(xstaff, xml_write_musicbars(staff->musicbars));
staff = staff->next;
}
xmlAddChild(xsection, xml_write_directions(section->directions));
xmlAddChild(xsection, xml_write_staffs(section->staffs));
+ xmlAddChild(xsection, xml_write_musicbars(section->musicbars));
+
section = section->next;
}
%.pdf: %.ly
lilypond-snapshot "$<"
-all: $(patsubst %.ptb,%.info,$(PTB_TESTFILES))
+%.ptb.2: %.ptb
+ ../ptb2ptb "$<"
+
+all: ptb info
+info: $(patsubst %.ptb,%.info,$(PTB_TESTFILES))
+ptb: $(patsubst %.ptb,%.ptb.2,$(PTB_TESTFILES))
clean:
rm -f *.info *.ly *.txt *.pdf