2005-08-05 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/key-signature-interface.cc: change property name to
+ alteration-alist
+
+ * lily/key-engraver.cc (read_event): read keyAlterationOrder, not
+ keyAccidentalOrder
+
+ * python/convertrules.py (conv): keyAccidentalOrder ->
+ keyAlterationOrder
+
* lily/key-engraver.cc (create_key): always print a cancellation
for going to C-major/A-minor, regardless of printKeyCancellation.
(create_key): remove typecheck for visibility. This fixes key
}
}
- cancellation_->set_property ("accidentals", restore);
+ cancellation_->set_property ("alteration-alist", restore);
cancellation_->set_property ("c0-position",
get_property ("middleCPosition"));
}
- item_->set_property ("accidentals", key);
+ item_->set_property ("alteration-alist", key);
}
if (!is_default)
SCM n = scm_list_copy (p);
SCM accs = SCM_EOL;
- for (SCM s = get_property ("keyAccidentalOrder");
+ for (SCM s = get_property ("keyAlterationOrder");
scm_is_pair (s); s = scm_cdr (s))
{
if (scm_is_pair (scm_member (scm_car (s), n)))
/* accepts */ "key-change-event",
/* reads */ "keySignature printKeyCancellation lastKeySignature "
"explicitKeySignatureVisibility createKeyOnClefChange "
- "keyAccidentalOrder keySignature",
+ "keyAlterationOrder keySignature",
/* write */ "lastKeySignature tonic keySignature");
style = "";
}
- SCM newas = me->get_property ("accidentals");
+ SCM newas = me->get_property ("alteration-alist");
Stencil mol;
SCM c0s = me->get_property ("c0-position");
ADD_INTERFACE (Key_signature_interface, "key-signature-interface",
"A group of accidentals, to be printed as signature sign.",
- "style c0-position accidentals");
+ "style c0-position alteration-alist");
'''ly:X-moment -> ly:moment-X'''))
+def conv (str):
+ str = re.sub('keyAccidentalOrder', 'keyAlterationOrder', str)
+ return str
+
+conversions.append (((2, 7, 4), conv,
+ '''keyAccidentalOrder->keyAlterationOrder'''))
+
################################################################
(Y-extent-callback ,procedure? "see @code{X-extent-callback}.")
(Y-offset-callbacks ,list? "see @code{X-offset-callbacks}.")
- (accidentals ,list? "List of alteration numbers.")
+ (accidentals ,list? "List of alteration numbers")
+ (alteration-alist ,list? "List of @code{(@var{pitch}
+. @var{accidental})} pairs for key signature.")
(add-stem-support ,boolean? "If set, the Stem object is included in this script's support")
(align-dir ,ly:dir? "Which side to align? @code{-1}: left side,
(neutral-position ,number? "Position (in half staff spaces) where
to flip the direction of custos stem.")
- (new-accidentals ,list? "List of @code{(@var{pitch}
-. @var{accidental})} pairs.")
(next ,ly:grob? "Object that is next relation (eg. the lyric syllable following an extender.")
(note-names ,vector? "Vector of strings containing names for
easy-notation note heads.")
(number-type ,symbol? "Type of numbers to use in label. Choices
include @code{roman-lower}, @code{roman-upper}, and @code{arabic}.")
- (old-accidentals ,list? "List of @code{(@var{pitch} . @var{accidental})
-pairs.}")
-
(padding ,ly:dimension? "Add this much extra space between
objects that are next to each other.")
(page-penalty ,number? "Penalty for page break at