Stem direction overrides broken in 2.7.7

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Stem direction overrides broken in 2.7.7

Sven Axelsson
Lilypond 2.7.7 Windows

If the first note in the music is a grace note, a stem direction override
will turn the grace note and not affect the normal notes. This is wrong
since the grace notes should only be affected by using add-grace-property,
not by normal overrides.

If the override is instead done in a \layout block, it works as expected.

\relative c''' {
  \override Voice.Stem #'direction = #-1
  \grace { g32 } g,4 a \grace { g'32 } b,4 c
}

--
Sven Axelsson



_______________________________________________
bug-lilypond mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/bug-lilypond
Reply | Threaded
Open this post in threaded view
|

Re: Stem direction overrides broken in 2.7.7

Erik Sandberg
On Sunday 28 August 2005 13.37, Sven Axelsson wrote:
> Lilypond 2.7.7 Windows
>
> If the first note in the music is a grace note, a stem direction override
> will turn the grace note and not affect the normal notes. This is wrong
> since the grace notes should only be affected by using add-grace-property,
> not by normal overrides.
>
> If the override is instead done in a \layout block, it works as expected.

Thanks for the report. The problem is that \grace implicitly overrides and
reverts the direction, and that your override is interpreted after this
implicit override. Ideally, this shouldn't happen, and it is related to the
way grace note timing is handled. A robust workaround is to move the
\override to after the grace block.

I added it to bug CVS as grace-override.ly:

%
%Sven Axelsson

\header {
texidoc = "
Voice.Stem #'direction override before a grace block doesn't work.
The override is done after the grace block's implicit override, and gets
reverted by the
implicit revert.

Workaround: Do the override after the grace block instead.
"
reportedin = "2.7.7"
}

\version "2.6.0"
\layout {raggedright=##t}
\relative {
  \override Voice.Stem #'direction = #-1
  \grace { d32 } d4
}

--
Erik


_______________________________________________
bug-lilypond mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/bug-lilypond