lilypond-user
[Top][All Lists]
Advanced

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

Re: Set accidental style in the layout block


From: Bill Mooney
Subject: Re: Set accidental style in the layout block
Date: Sat, 02 Jul 2011 18:46:13 +1200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10



-------- Original Message --------
Subject: Re: Set accidental style in the layout block
Date: Sat, 02 Jul 2011 18:16:44 +1200
From: Bill Mooney <address@hidden>
To: address@hidden

You wrote...

It should do about the same thing. The main advantage is that it
avoids littering files with #(set-accidental-style ...). You put it in
only one spot.

As in the example below - based on the NM example... Where the
accidentals definition is in the \layout block, as in yours.
What I'm not clear about is why a different method has been used which
seems to involve more typing and doesn't seem to offer the variety that
the NM example does. - modern, modern-cautionary, modern-voice, etc.,
etc. ...

If you chose to change it there's only one place to
modify. I like to put it in a separate file (e.g. defs.ily) and
include it into all of the different lilypond files that generate
scores (e.g. violin.ly, piano.ly, etc.). If you're entering something
with only one line of music I think there's still an advantage in
being able to reuse previous definition files.

Here's an instrument+piano example for how I generally like to lay
projects out. I think it keeps each individual file tidy and avoid
duplicating settings in each staff.
* Put as many changes/tweaks from defaults as possible in the file
where you keep your main layout block file.
* Keep a separate outline to put bars, tempos, marks, etc.
* Keep music definitions in separate files from layout.

...and I agree with these principles - of keeping things well-ordered
and as simple and as flexible as possible.
:)
Regards
Bill




\version "2.14.1"
\header
{
title = "Accidentals"
 }

musicA =
\relative c'
{
<<
 {
cis'8 fis, bes4 <a cis>8 f bis4
cis2. <c, g'>4 |
}
\\
 {
ais'2 cis,
fis8 b a4 cis2
}

}
musicB = \relative c' {
\clef bass
<fis, a cis>8 <f a cis>
cis' cis
<fis, a> <fis a>
dis'4
<fis, a cis>4 gis <f a d>2


}
\score {
\new PianoStaff {
<<
\context Staff = "up" {
#(set-accidental-style 'modern)
\musicA
}
\context Staff = "down" {
#(set-accidental-style 'modern)
\musicB
}

}
}



reply via email to

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