Hi Ralph,
Greetings, All -
As ever, I'm grateful (Thankful, given it's Thanksgiving Day where I live) for LilyPond and for the help the other users give to each other. I used to give more help myself than I do now, mostly because others are so much more knowledgeable and quick to respond.
I'm having a problem with cue notes and the rests in the primary instrument. I don't know how to get the primary instrument's rests above the cue notes.
You almost had it. One small change:
\version "2.24.0"
\relative c' {
a''2
<<
{
r2 |
r1 |
r1 |
r1 |
r2
}
\\
{
\new CueVoice {
a,2~ |
a4 d, g2~ |
g4 e a g |
f4 g
}
}
>>
d'2\f |
}
Adding the \\ between the two sections puts both sections into their own context. And that produces:
Another option would be to explicitly assign voiceOne and voiceTwo, like:
\version "2.24.0"
\relative c' {
a''2
<<
{
\voiceTwo
r2 |
r1 |
r1 |
r1 |
r2
}
{
\voiceOne
\new CueVoice {
a,2~ |
a4 d, g2~ |
g4 e a g |
f4 g
}
}
>>
\oneVoice
d'2\f |
}
That gives the same result. Just make sure to add the \oneVoice afterward, to put everything back to the defaults.
--