|
From: | Stefan Thomas |
Subject: | Re: how to force extra accidental in this case |
Date: | Fri, 19 Sep 2014 21:40:59 +0200 |
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: lilypond-user-bounces+carsonmark=address@hidden [mailto:lilypond-user-bounces+carsonmark=address@hidden] 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 <address@hidden>:
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
[Prev in Thread] | Current Thread | [Next in Thread] |