lilypond-devel
[Top][All Lists]
Advanced

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

Re: set accidental style in \layout block?


From: Trevor Bača
Subject: Re: set accidental style in \layout block?
Date: Sun, 14 Dec 2008 12:34:28 -0600

On Fri, Dec 12, 2008 at 4:36 PM, Valentin Villenave <address@hidden> wrote:
2008/12/12 Mark Polesky <address@hidden>:
> Is there a way to set the accidental style in the layout block?

Yes :

\layout {
 \context { \Score % or Staff, or Voice
 autoAccidentals = #yourstyle
 autoCautionaries = #yourotherstyle
 }
}

yourstyle may be one of the predefined styles (have a look at
music-functions.scm) or a custom style, such as

`(Staff ,(make-accidental-rule 'same-octave 0)
            ,(make-accidental-rule 'any-octave 0)
            ,(make-accidental-rule 'same-octave 1)
                  ,neo-modern-accidental-rule))

Wow. I had wondered about that exact question for years ...


Trevor.


--
Trevor Bača
address@hidden

reply via email to

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