+2005-08-10 Nicolas Sceaux <nicolas.sceaux@free.fr>
+
+ * Documentation/user/programming-interface.itely (Displaying music
+ expressions): doc for \displayLilyMusic. Also some precisions in
+ "Markup construction in Scheme"
+
2005-08-10 Mats Bengtsson <mabe@drongo.s3.kth.se>
* scm/define-markup-commands.scm (normal-text): Added 2 new
@cindex internal storage
@cindex @code{\displayMusic}
+@cindex @code{\displayLilyMusic}
When writing a music function, it is often instructive to inspect how
a music expression is stored internally. This can be done with the
@example
@{
-\displayMusic @{ c'4\f @}
+ \displayMusic @{ c'4\f @}
@}
@end example
+Conversely, displaying a music expression in LilyPond notation can be
+done using the music function @code{\displayLilyMusic}. For instance:
+
+@example
+@{
+ \displayLilyMusic \transpose c a, @{ c e g a bes @}
+@}
+@end example
+
+will display:
+
+@example
+@{ a, cis e fis g @}
+@end example
@node Using LilyPond syntax inside Scheme
@subsection Using LilyPond syntax inside Scheme
@quotation
@multitable @columnfractions .3 .3
@item @b{LilyPond} @tab @b{Scheme}
-@item @code{\markup @{ ... @}} @tab @code{( markup ... )}
+@item @code{\markup markup1 @}} @tab @code{(markup markup1)}
@item @code{\markup @{ markup1 markup2 ... @}} @tab
- @code{(markup #:line ( markup1 markup2 ... ))}
+ @code{(markup markup1 markup2 ... )}
@item @code{\command} @tab @code{#:command}
@item @code{\variable} @tab @code{variable}
@item @code{\center-align @{ ... @}} @tab @code{#:center-align ( ... )}