@end example
Such syntax can also be defined as user code. To do this, it is
-necessary to create a @em{music function}. This is a specially marked
+necessary to create a @emph{music function}. This is a specially marked
Scheme function. For example, the music function @code{\applymusic} applies
a user-defined function to a music expression. Its syntax is
@}
@end example
+@ignore
+FIXME
+ugr: removing the ignore block, leaving the comment line below
@c TODO: use relative mode, verbatim, junk \transpose and above @example
-
+@end ignore
@lilypond[quote,noindent,linewidth=50\staffspace]
#!@PYTHON@
'''
-TODO:
- ly-options: intertext, quote ?
- --linewidth?
- eps in latex?
- check latex parameters, twocolumn, multicolumn?
-
Example usage:
test:
classic lilypond-book:
lilypond-book --process="lilypond-bin" BOOK.tely
- must substitute:
- @mbinclude foo.itely -> @include foo.itely
- \mbinput -> \input
-
+TODO:
+ * ly-options: intertext ?
+ * --linewidth?
+ * eps in latex / eps by lilypond-bin -fps ?
+ * check latex parameters, twocolumn, multicolumn?
+
+ * Converting from lilypond-book source, substitute:
+ @mbinclude foo.itely -> @include foo.itely
+ \mbinput -> \input
+
'''
import __main__
m = re.match ('([0-9]+)pt', o)
if m:
return 'staffsize=%s' % m.group (1)
- m = re.match ('indent=([-.0-9]+)(cm|in|mm|pt)', o)
+ m = re.match ('indent=([-.0-9]+)(cm|in|mm|pt|staffspace)', o)
if m:
f = float (m.group (1))
return 'indent=%f\\%s' % (f, m.group (2))
- m = re.match ('linewidth=([-.0-9]+)(cm|in|mm|pt)', o)
+ m = re.match ('linewidth=([-.0-9]+)(cm|in|mm|pt|staffspace)', o)
if m:
f = float (m.group (1))
return 'linewidth=%f\\%s' % (f, m.group (2))