]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/parser.yy
(tempo_event): use tempo-unit for \tempo
[lilypond.git] / lily / parser.yy
index e39a2d78ca22e991180c09b7b73a189cc05ff114..012e2be3d1c9c3de3564580e34d075ad4875bcaa 100644 (file)
@@ -655,7 +655,7 @@ music_output_def_body:
                        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);
@@ -668,7 +668,7 @@ music_output_def_body:
 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));
        }
        ;