lilypond-user
[Top][All Lists]
Advanced

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

Re: stupid substitution


From: Mats Bengtsson
Subject: Re: stupid substitution
Date: Thu, 16 Nov 2006 12:36:25 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060909)

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
address@hidden
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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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