This is a hard-solved issue we have lived with for long time, ant probably the
most common source of questions on this list.
While Andrew’s solution is perfect in this situation, where the time signatures
in the second voice are redundant, it may not work everywhere. The solution
would then be
Some would say you would be better writing this:
melody = \relative c'' {
\new Staff <<
{
\voiceOne
\time 4/4
\grace {c8} c4 d4 f2
\time 2/4
\grace {c8} c4 d4
}
\new Voice
{
\voiceTwo
a,4 b c2
a4 b
}
>>
}
\score {\melody}
Why don't you try something like this:
melody = \relative c'' {
<<
{
\time 4/4
\grace {c8} c4 d4 f2
\time 2/4
\grace {c8} c4 d4
}
\\
{
a,4 b c2
a4 b
}
>>
}
\score {\melody}
I have a score with two voices on a staff.
At the beginning of a measure I include a time change as well as a grace
note. After compilation the time signature is included twice and the
grace note is found between the time signatures (see attachment).
Is this a bug or am I doing something wrong?