Re: stupid substitution

2006-12-26 Thread Graham Percival
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-vi

Re: stupid substitution

2006-11-16 Thread Nicolas Sceaux
Mats Bengtsson <[EMAIL PROTECTED]> writes: > yota moteuchi wrote: >> [...] >> displayBarNum = #(define-music-function (parser location) () >> #{ >>\once \override Score.BarNumber #'break-visibility = ##f >> #}) >> [...] >> I hope the syntax is not too bad (the result is correct though) >> If

Re: stupid substitution

2006-11-16 Thread Mats Bengtsson
In this situation, there is no need for a music function, just use a normal identifier: displayBarNum = \once \override Score.BarNumber #'break-visibility = ##f See section "Saving typing with identifiers and functions", for example. /Mats yota moteuchi wrote: Could we add to the doc, secti

stupid substitution

2006-11-16 Thread yota moteuchi
Could we add to the doc, section 12.1.2 an example of an even easier substitution function with no argument. displayBarNum = #(define-music-function (parser location) () #{ \once \override Score.BarNumber #'break-visibility = ##f #}) Since I took me 15 min to understand how to derive it fro