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
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
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
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