#TODO:
+#
+# Convert to new chord styles.
+#
# UNDEF -> None
-
+#
program_name = 'abc2ly'
outf.write(" >\n \\paper{}\n}\n")
def dump_default_bar (outf):
- outf.write ("\n\\property Score.defaultBarType=\"empty\"\n")
+ """
+ Nowadays abc2ly outputs explicits barlines (?)
+ """
+ outf.write ("\n\\property Score.defaultBarType=\"empty\"\n")
def dump_slyrics (outf):
(str, num,den,current_dots) = parse_duration (str, parser_state)
-
if re.match('[ \t]*\)', str):
str = string.lstrip (str)
str = str[1:]
- if slur_end:
- voices_append ('%s' % ')' *slur_end )
-
bar_acc = get_bar_acc(notename, octave, parser_state)
pit = pitch_to_lilypond_name(notename, acc, bar_acc, global_key[notename])
oct = octave_to_lilypond_quotes (octave)
if not parser_state.parsing_tuplet:
voices_append ("}")
if slur_begin:
- voices_append ('%s' % '(' * slur_begin )
+ voices_append ('-(' * slur_begin )
+ if slur_end:
+ voices_append ('-)' *slur_end )
+
return str
Usage: abc2ly [OPTIONS]... ABC-FILE
Options:
- -h, --help this help
+ -h, --help print this help
-o, --output=FILE set output filename to FILE
- -v, --version version information
- -s, --strict be strict about succes.
+ -v, --version show version information
+ -s, --strict be strict about succes
This program converts ABC music files (see
http://www.gre.ac.uk/~c.walshaw/abc2mtex/abc.txt) To LilyPond input.