lilypond-devel
[Top][All Lists]
Advanced

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

Re: staccato dots over beams


From: Werner LEMBERG
Subject: Re: staccato dots over beams
Date: Tue, 13 Apr 2010 07:47:11 +0200 (CEST)

>> Issue #218 [center staccato over stem instead of notehead] has been
>> tagged as `fixed' which I consider premature.  IMHO, staccato dots
>> over beams or stems should be *automatically* shifted to the right
>> position.  It's very tedious to handle this manually, and currently
>> I can't think of any reason why lilypond shouldn't do this by
>> itself.
> 
> Erm, sorry if I'm being thick here, but what's wrong with the way it
> currently works?

The solution is definitely too generic.  Look at the attached example.
The `toward-stem-shift' applies to all Script grobs which is clearly
wrong.  In particular, accents shouldn't be shifted at all.  Depending
on the articulation symbol we need different values.

BTW, looking into the full score of `Wozzeck', I've noticed different
values of `toward-stem-shift', depending on the direction of the beam.
See attached image.  I'm not sure whether this happens in polyphonic
situations only.

In summary, assuming we have a Script grob with glyph name `foo', we
would need properties `foo-upstem-shift' and `foo-downstem-shift'.  To
make life easier, we should probably provide `default-upstem-shift'
and `default-downstem-shift' which gets used for all glyphs which
don't have an explicitly set shift property.


    Werner

\version "2.13.11"

\header { texidoc = "
Staccato dots should be automatically centered if positioned over a beam.

Currently, this doesn't happen.  You have to do it manually using the
@code{toward-stem-shift} layout property.
" }

\new Staff \with {
  \remove "Time_signature_engraver"
}
\relative c'' {
\autoBeamOff

\override Script #'toward-stem-shift = #0.0
  c16_.[ c_. c_. c_.]
    c_-[ c_- c_- c_-]
    c_^[ c_^ c_^ c_^]
    c_>[ c_> c_> c_>] \break
\override Script #'toward-stem-shift = #1.0
  c16_.[ c_. c_. c_.]
    c_-[ c_- c_- c_-]
    c_^[ c_^ c_^ c_^]
    c_>[ c_> c_> c_>] \break

\override Script #'toward-stem-shift = #0.0
  c8_. c_. c_- c_-
    c_^ c_^ c_> c_> \break
\override Script #'toward-stem-shift = #1.0
  c8_. c_. c_- c_-
    c_^ c_^ c_> c_> \break
}

\paper {
  indent = 0
  ragged-right = ##t
}

% EOF

PNG image

PNG image


reply via email to

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