]> git.donarmstrong.com Git - lilypond.git/commit
Store accidental styles in an alist
authorSimon Albrecht <simon.albrecht@mail.de>
Mon, 4 Jan 2016 12:08:05 +0000 (12:08 +0000)
committerJames Lowe <pkx166h@gmail.com>
Mon, 4 Jan 2016 12:09:04 +0000 (12:09 +0000)
commitb5da1d4ae099abb396a2323dd08a3ce4b7603eb1
treec0bdb96f16fc6dd1e7425423cf3b330e4dfb7d96
parent9bcc9c378a109d53bd657f0b868cd277abc6dbf8
Store accidental styles in an alist

This rewrites the way how accidental styles
are stored and accessed.

Previously the two were
mangled in the set-accidental-style
procedure so that adding custom styles
required complete redefinition of
this procedure and copying all the
existing definitions. Now, the actual
specifications of accidental styles
are stored in the 'accidental-styles'
alist, and the set-accidentals-properties
and set-accidental-style procedures
have been replaced by a single procedure,
which reads from that alist and
sets the context properties accordingly.
scm/music-functions.scm