[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue 1838 in lilypond: Make accidental styles available as context
From: |
lilypond |
Subject: |
Re: Issue 1838 in lilypond: Make accidental styles available as context mods |
Date: |
Tue, 22 Nov 2011 10:15:26 +0000 |
Updates:
Labels: Patch-new
Comment #6 on issue 1838 by address@hidden: Make accidental styles available
as context mods
http://code.google.com/p/lilypond/issues/detail?id=1838#c6
Add Scheme context-mods, reimplement \grobdescriptions, add \settingsFrom
\settingsFrom translates music with layout instructions (\set, \unset,
\override, \revert) into a context modification. That way, you can use most
of the definitions from ly/property-init.ly as context modifications.
The original task of Issue 1838 can now be solved by writing
\layout {
\context {
\Staff
\settingsFrom #(set-accidental-style 'dodecaphonic)
}
}
{ fis fis fis fis }
This particular patch uses #{ \with { } #} at some places which, while
nice to have as a last resort, is actually quite awkward. Neil, could
you turn your original definition of ly:make-context-mod into a
separate commit? Personally, I'd say that this part of your work has
been up for discussion long enough not to warrant opening another
issue and countdown before pushing to staging.
http://codereview.appspot.com/5435047