X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftempo-performer.cc;h=01ecb4c3a0fb22814915c9b152d1a7821861f6c1;hb=0fe24db3936774a8fb913cb14c997036db7aeb1c;hp=d705abb3a8ca3d5582c8d7cd9c94a2ee725779d7;hpb=e7aa6c445f463844dbaa52d38ea4aac2882b5601;p=lilypond.git diff --git a/lily/tempo-performer.cc b/lily/tempo-performer.cc index d705abb3a8..01ecb4c3a0 100644 --- a/lily/tempo-performer.cc +++ b/lily/tempo-performer.cc @@ -61,10 +61,10 @@ void Tempo_performer::process_music () { SCM w = get_property ("tempoWholesPerMinute"); - if (unsmob_moment (w) + if (Moment::is_smob (w) && !ly_is_equal (w, last_tempo_)) { - Rational r = unsmob_moment (w)->main_part_; + Rational r = Moment::unsmob (w)->main_part_; r *= Rational (4, 1); audio_ = new Audio_tempo (r.to_int ());