def _ (s):
return s
-program_name = 'midi2ly'
+program_name = sys.argv[0]
program_version = '@TOPLEVEL_VERSION@'
errorport = sys.stderr
if item and item.__class__ == Note:
skip = 's'
- s = s + '%s = \\notes' % (track + channel)
+ s = s + '%s = ' % (track + channel)
if not absolute_p:
s = s + '\\relative c '
elif item and item.__class__ == Text:
skip = '" "'
- s = s + '%s = \\lyrics ' % (track + channel)
+ s = s + '%s = \\lyricmode ' % (track + channel)
else:
skip = '\\skip '
- # must be in \notes mode for parsing \skip
- s = s + '%s = \\notes ' % (track + channel)
+ s = s + '%s = ' % (track + channel)
s = s + '{\n'
s = s + ' ' + dump_channel (channels[i][0], skip)
s = s + '}\n\n'