lilypond-user
[Top][All Lists]
Advanced

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

Re: dodecaphonic accidentals for all staves


From: Stefan Thomas
Subject: Re: dodecaphonic accidentals for all staves
Date: Mon, 8 Jun 2009 14:28:24 +0200

Dear Neil,
thanks for Your help! Now I know, how I can do it!

2009/6/7 Neil Puttock <address@hidden>
2009/6/6 Stefan Thomas <address@hidden>:
> Dear community,
> how can I define webern-style accidentals for all staves in a score in the
> layout-block?
> I tried it with
> \version "2.13.0"
> \layout { \context { \Staff  #(set-accidental-style 'dodecaphonic) } }

When you invoke set-accidental-style, it sets the following context properties:

extraNatural
autoAccidentals
autoCautionaries

You need to find out how these are set for your chosen accidental
style by checking the definition of set-accidental-style in
scm/music-functions.scm.

Here's the code for 'dodecaphonic:

1250       ((equal? style 'dodecaphonic)
1251        (set-accidentals-properties #f
1252                                    `(Staff ,(lambda (c p bn mp)
'(#f . #t)))
1253                                    '()

Applying these settings in a \layout block you have the following:

\layout {
 \context {
   \Staff
   extraNatural = ##f
   autoAccidentals = #`(Staff ,(lambda (c p bn mp) '(#f . #t)))
   autoCautionaries = #'()
 }
}

I'll add an LSR snippet demonstrating this which we can add to the
docs, since it's by no means straightforward to work out.

Regards,
Neil


reply via email to

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