lilypond-user
[Top][All Lists]
Advanced

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

Re: Tremolo slope


From: Philippe Auclair
Subject: Re: Tremolo slope
Date: Sun, 11 Oct 2020 11:44:31 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Thunderbird/68.12.1

StemTremolo is for tremolos on a single note, which are
printed over the stem. Yours is just a special case of
Beam, so here you go:


\version "2.20.0"
\score {
  \new Staff {
    \override Beam.positions = #'(-1 . 1)
    \repeat tremolo 16 { c'32 c'' }
  }
}

Thanks Jean. This is indeed a beginning.
However, you have to change the positions each time the notes change.
And and if you want to shorten the beams, it becomes really very tedious (see below)! Could it be possible to specify vertical AND horizontal positions relative to notes rather than staff?
Philippe Auclair

\version "2.20.0"
\score {
<<
% first staff just to have reasonable measure width
  \new Staff {
    c' d' e' f'
    c' d' e' f'
    c' d' e' f'
    c' d' e' f'
  }

\new Staff {
    \repeat tremolo 16 { c'32 c'' }
% horizontal beams : is this really the rule?

    \override Beam.positions = #'(-1 . 0)
    \repeat tremolo 16 { c'32 c'' }
% this seems better

% and if you want to shorten the beams
    \once \override Beam.X-positions = #'(2 . -2)
    \repeat tremolo 16 { c'32 c'' }
% this doesn't work; what does X-positions do?

    \override Beam.positions = #'(0 . 1)
    \repeat tremolo 16 {
      \once \override Stem.X-offset = 2.5 e'32
      \once \override Stem.X-offset = -0.5 e'' }
  }
>>
}

Attachment: tremolo.pdf
Description: Adobe PDF document


reply via email to

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