Next: , Previous: Manipulating music expressions, Up: Programmer interfaces for input


11.1.5 Displaying music expressions

When writing a music function, it is often instructive to inspect how a music expression is stored internally. This can be done with the music function \displayMusic.

{
  \displayMusic { c'4\f }
}

Conversely, displaying a music expression in LilyPond notation can be done using the music function \displayLilyMusic. For instance:

{
  \displayLilyMusic \transpose c a, { c e g a bes }
}

will display:

{ a, cis e fis g }

This page is for LilyPond-2.8.8 (stable-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Other languages: English.
Using automatic language selection.