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: David Kastrup
Subject: Re: How to adjust the padding between a StemTremolo and a NoteHead?
Date: Tue, 11 Aug 2015 10:08:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Robin Bannister <address@hidden> writes:

>  Dominic wrote:
>
>> At the moment I have to laboriously override the Stem.length-fraction on an
>> individual basis, depending on how many slashes there are, which is not
>> ideal.
>>
>> Any ideas?
>
>
> I had this problem recently and worked around it with
>
> hoist = % for moving StemTremolo beams further from notehead
> {
>   \once \override Stem.length =
>   #(lambda (grob) (+ 1 (ly:stem::calc-length grob)))
> }
>
> Comment indicates I had reservations about 'unpure only'.
> Someone else might be able to explain that.

Well, most such reservations should be addressable by putting a
container around, in this case

hoist = % for moving StemTremolo beams further from notehead
{
  \once \override Stem.length =
  #(ly:make-unpure-pure-container
     (lambda (grob) (+ 1 (ly:stem::calc-length grob))))
}


-- 
David Kastrup



reply via email to

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