[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

displayLilyMusic -- tested

From: Nicolas Sceaux
Subject: displayLilyMusic -- tested
Date: Sat, 11 Jun 2005 17:11:44 +0200
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)


Here is a tested version of a `display-lily-music' function:

The test file (around 115 expressions):

The result (showing the differences between input and output, using
LilyPond from CVS, 2.5.30):

To test it, place print-lily.scm in LilyPond's scm/ share directory.

  \version "2.5.30"
  #(use-modules (scm print-lily))

  displayLilyMusic = #(def-music-function (parser location music) (ly:music?)
                       (init-print-lily parser)
                       (display-lily-music music)

  displayLilyMusicForceDuration = #(def-music-function (parser location music) 
                       (init-print-lily parser)
                       (display-lily-music music #:force-duration #t)

  \include ""
  \displayLilyMusic \tag #'foo { dod re }

  \include ""
  \displayLilyMusicForceDuration \tag #'foo { cis d }

This can be useful for getting a voice transposition, changing a
\relative snippet to absolute, having all durations printed on
notes, or debugging.

If you think this is not maintanable/good enough for the LilyPond
distribution, then I'll keep it somewhere else.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]