lilypond-user
[Top][All Lists]
Advanced

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

Re: How to adjust the padding between a StemTremolo and a NoteHead?


From: Abraham Lee
Subject: Re: How to adjust the padding between a StemTremolo and a NoteHead?
Date: Tue, 11 Aug 2015 11:39:09 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

On 8/11/2015 11:14 AM, tisimst wrote:
\layout {
  \override Voice.StemTremolo.after-line-breaking =
  #(lambda (grob)
    (let* ((pad 1.0) % <--- ADJUST THIS TO TASTE
           (cnt (ly:grob-property grob 'flag-count))
           (stem (ly:grob-object grob 'stem))
           (leng (ly:grob-property stem 'length)))
      (if (> cnt 2)
        (ly:grob-set-property! stem 'length (+ leng pad)))))
}

Sorry, the % is going to cause an error because it isn't a scheme comment. Either change the "%" to a semicolon ";" or just remove my comment altogether.

reply via email to

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