lilypond-user
[Top][All Lists]
Advanced

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

Strange behaviour (bug?) with multiple overlapping DynamicTexts and over


From: Jan Rosseel
Subject: Strange behaviour (bug?) with multiple overlapping DynamicTexts and override on Fingering
Date: Sun, 9 Jun 2013 21:48:00 +0200

Hello all, 

I'm using Lily pond for some time, and am at the moment trying to setup
a template system that would allow people to make annotations
(fingerings, for example) or change small elements (dynamics) without
having to fully learn and understand Lilypond. While doing this, I came
across some really weird behavior. This is either a bug, or I am not
understanding Lilypond enough. 

The code below results in having four stacked dynamic texts under the
third note. Maybe not exactly what is expected (I'd expect Lilypond to
detect the overlapping dynamics), but I can live with that. 
The weird thing is , if one adds an override to color the fingering
indications (uncomment the line in the editTwo block), then one not only
has the colored fingerings as expected, but one also loses one of the
dynamic texts! See also the warnings that Lilypond spits out on this: it
is as if the override on an unrelated object type suddenly allows
Lilypond to detect the overlapping dynamic events. 

\version "2.16.1"
global = {
\time 4/4
}
melody = \relative c'' {
\global
c4 d e\mp f
}
editOne = {
s4 s4 s4\mf s4
}
editTwo = {
%\override Fingering #'color = #red 
s4-1 s4-2 s4\f s4 
}
editThree = {
s4\upbow s4\downbow s4\p s4
}
\score {
<<
\new Staff 
{ 
<<
\melody 
\editOne
\editTwo
\editThree
>>
}
>>
\layout { }
}

Interpreting music...
D:/temp/lily_annot.ly:21:14: warning: Two simultaneous absolute-dynamic
events, junking this one
s4-1 s4-2 s4
\f s4 
D:/temp/lily_annot.ly:16:8: warning: Previous absolute-dynamic event
here
s4 s4 s4
\mf s4


Can someone explain what is going on here?

Regards, 

--
JanR




reply via email to

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