lilypond-user
[Top][All Lists]
Advanced

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

Re: Using Scheme


From: Paul Scott
Subject: Re: Using Scheme
Date: Fri, 12 May 2006 00:04:11 -0700
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

Trent Johnston wrote:
Hello,
I was wondering if someone could help me in using scheme to make a short cut. I'm trying to simplify: \once \override Beam #'positions = #'( number . number ) using a shortcut say \manBeam and specify the numbers beginning and ending beam height. I want to use this to alter the height of beams that have accidentals in them or lengthen some shorter beams. In 5.4 Advanced tweaks with scheme gives some information about using only the one variable as in the padText example.
I'm not sure what corresponds to that in the 2.8.2 manual but padText may exist because of help I got from Nicolas Sceaux. Here is my code for textPad. You might be able to create what you want from this:

#(use-modules (ice-9 optargs))
#(define* (textPad padding #:optional once?)
 (ly:export   ; this is necessary for using the expression
  ; directly inside a block
  (if once?
   #{ \once \override TextScript #'padding = #$padding #}
   #{ \override TextScript #'padding = #$padding #})))


Paul Scott





reply via email to

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