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, 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 from the previous example with one argument. padText = #(define-music-function (parser location padding) (number?) #{ \once \override TextScript #'padding = #$padding #}) I hope the syntax is not too bad (the result is correct though) If I'm wrong or if there is easier way to do this "pure text" substitution, please correct me Yota _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
-- ============================================= Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: [EMAIL PROTECTED] WWW: http://www.s3.kth.se/~mabe ============================================= _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user