lilypond-user
[Top][All Lists]
Advanced

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

Re: how to force extra accidental in this case


From: Stefan Thomas
Subject: Re: how to force extra accidental in this case
Date: Fri, 19 Sep 2014 21:40:59 +0200

Dear community,
I've found a solution how to do it:

\version "2.18.2"

Uppernotes = { \repeat "unfold" 8 { cis'8 } }
accidentals = { s2  #(set-accidental-style 'dodecaphonic) s8  #(set-accidental-style 'default) s } % doesn't work

LowerMusic = { r2 c'!8 r r4 }
UpperMusic = { \context Voice << { \Uppernotes }  {\accidentals } >> }

\score {
 \new PianoStaff
 <<
   \new Staff \UpperMusic
   \new Staff \LowerMusic
 >>
 
}


2014-09-19 21:20 GMT+02:00 Mark Stephen Mrotek <address@hidden>:

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

 



reply via email to

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