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: Mark Stephen Mrotek
Subject: RE: how to force extra accidental in this case
Date: Fri, 19 Sep 2014 12:20:41 -0700

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: address@hidden [mailto: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

 

Attachment: accidental.ly
Description: Text Data


reply via email to

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