|
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
[Prev in Thread] | Current Thread | [Next in Thread] |