lilypond-user
[Top][All Lists]
Advanced

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

Re: stupid substitution


From: Graham Percival
Subject: Re: stupid substitution
Date: Tue, 26 Dec 2006 06:27:56 -0800
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

Nicolas Sceaux wrote:
Mats is right. But just for the record: music functions with no argument
still have their use, for instance:

displayBarNum =
#(define-music-function (parser location) ()
   (if (eq? #t (ly:get-option display-bar-numbers))
       #{ \once \override Score.BarNumber #'break-visibility = ##f #}
       #{#}))

Then, having used \displayBarNum inside the score, the actual displaying
of bar numbers is triggered by a command line option:

  lilypond -d display-bar-numbers foo.ly

Thanks, added to git.

Cheers,
- Graham





reply via email to

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