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



_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to