str = str + pitch_to_lily_string (p)
if len (self.pitches) > 1:
- str = '<<%s>>' % str
+ str = '<%s>' % str
elif len (self.pitches) == 0:
str = 'r'
- str = str + sd + '-(' * len (self.slurstart) + '-)' * len (self.slurstart)
+ str = str + sd + '(' * len (self.slurstart) + ')' * len (self.slurstart)
for s in self.scripts:
str = str + '-' + s
def help ():
sys.stdout.write (
-"""Usage: musedata2ly [OPTION]... FILE1 [FILE2 ...]
+"""Usage: musedata2ly [OPTIONS]... FILE1 [FILE2 ...]
Convert musedata to LilyPond.
Options:
- -h,--help this help
+ -h,--help print this help
-o,--output=FILE set output filename to FILE
- -v,--version version information
+ -v,--version show version information
-r,--ref=REF read background information from ref-file REF
Musedata (http://www.ccarh.org/musedata/) is an electronic library of
encoded in so-called Musedata format
(http://www.ccarh.org/publications/books/beyondmidi/online/musedata).
musedata2ly converts a set of musedata files to one .ly file, and will
-include a \header field if a .ref file is supplied
+include a \header field if a .ref file is supplied.
This converter is not complete -- this is left to the user as an excercise.
Report bugs to bug-lilypond@gnu.org.
-Written by Han-Wen Nienhuys <hanwen@cs.uu.nl>
+Written by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
+
""")
and you are welcome to change it and/or distribute copies of it under
certain conditions. Invoke as `midi2ly --warranty' for more information.
-Copyright (c) 2000--2003 by Han-Wen Nienhuys <hanwen@cs.uu.nl>
+Copyright (c) 2000--2004 by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
""" % version)
def identify():
sys.stderr.write ("%s from LilyPond %s\n" % (program_name, version))
found_ids = found_ids + '\\%s\n' % id
-found_ids = '\n\n\n\\score { < %s > } ' % found_ids
+found_ids = '\n\n\n\\score { << %s >> } ' % found_ids
ly_head = ''
if ref_file: