duration. This fixes \tempo taking time.
+2002-11-21 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ * lily/parser.yy (tempo_event): use tempo-unit for \tempo
+ duration. This fixes \tempo taking time.
+
2002-11-21 Mats Bengtsson <mats.bengtsson@s3.kth.se>
* lily/volta-engraver.cc (process_acknowledged_grobs):
bool parse_protect_global = true;
+/*
+ Try parsing. If failure, then return SCM_UNDEFINED.
+ */
SCM
ly_parse_scm (char const* s, int *n, Input i)
{
music.
*/
int m = gh_scm2int ( $2->get_mus_property ("metronome-count"));
- Duration *d = unsmob_duration ($2->get_mus_property ("duration"));
+ Duration *d = unsmob_duration ($2->get_mus_property ("tempo-unit"));
Midi_def * md = dynamic_cast<Midi_def*> ($$);
if (md)
md->set_tempo (d->get_length (), m);
tempo_event:
TEMPO steno_duration '=' bare_unsigned {
$$ = MY_MAKE_MUSIC("TempoEvent");
- $$->set_mus_property ("duration", $2);
+ $$->set_mus_property ("tempo-unit", $2);
$$->set_mus_property ("metronome-count", gh_int2scm ( $4));
}
;
{
SCM met = tempo_req_->get_mus_property ("metronome-count");
- Duration *d = unsmob_duration (tempo_req_->get_mus_property ("duration"));
+ Duration *d = unsmob_duration (tempo_req_->get_mus_property ("tempo-unit"));
Rational r = (d->get_length () / Moment (Rational (1, 4)) * Moment (gh_scm2int (met))).main_part_;
(music-property-description 'digit integer? "digit for fingering")
(music-property-description 'direction ly:dir? "Print this up or down?")
(music-property-description 'text-type symbol? "Particular type of text script (eg. finger, dynamic).")
+(music-property-description 'tempo-unit ly:duration? "The unit for the metronome count.")
(music-property-description 'element ly:music? "The single child of a Music_wrapper music object, or the body of a repeat.")
(music-property-description 'elements music-list? "A list of elements for sequential of simultaneous music, or the alternatives of repeated music. ")
(music-property-description 'force-accidental boolean? "If set, a cautionary accidental should always be printed on this note")
(TempoEvent
. (
(description . "")
- (length . #f)
(internal-class-name . "Event")
(types . (general-music tempo-event event))
))