Stefan,
>From your snippet I assume you want a cautionary accidental on the fifth
>quaver in the upper voice. In an “unfold” all of the notes are the same.
>Therefore just one of them (other than the first) cannot have an accidental.
>See if the attached accomplishes what you want.
Mark
From: [email protected]
[mailto:[email protected]] On Behalf Of
Federico Bruni
Sent: Friday, September 19, 2014 11:37 AM
To: Stefan Thomas
Cc: lilypond-user
Subject: Re: how to force extra accidental in this case
2014-09-19 20:03 GMT+02:00 Stefan Thomas <[email protected]>:
Dear community,
how can I force an extra accidental in the upper voice in the below quoted
context?
I would like to do it in the defintion of the variable called accidentals.
\version "2.18.2"
Uppernotes = { \repeat "unfold" 8 { cis'8 } }
accidentals = { s2 s!4 s } % doesn't work
LowerMusic = { r2 c'!8 r r4 }
UpperMusic = { \context Voice << { \Uppernotes } {\accidentals } >> }
\score {
\new PianoStaff
<<
\new Staff \UpperMusic
\new Staff \LowerMusic
>>
}
a spacer rest (s) cannot have an accidental
I don't understand what the variable accidentals is supposed to do
\version "2.18.2"
LowerMusic = { r2 c'!8 r r4 }
UpperMusic = { \repeat "unfold" 4 { cis'8 }
cis'! cis' cis' cis' }
\score {
\new PianoStaff
<<
\new Staff \UpperMusic
\new Staff \LowerMusic
>>
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user