]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/midi-def.cc
release: 1.3.74
[lilypond.git] / lily / midi-def.cc
index 1013399eac1b91fa8c35f01bd8e3bbd339bdffb2..f5cbd2a9529c73b869354e3c3b550fd4e3b6f3c3 100644 (file)
@@ -39,8 +39,8 @@ Midi_def::set_tempo (Moment one_beat_mom, int beats_per_minute_i)
 {
   Moment beats_per_second = Moment (beats_per_minute_i) / Moment (60);
 
-  Moment *m = new Moment (Moment(1)/Moment(beats_per_second * one_beat_mom));
-  scope_p_->set ("whole-in-seconds", smobify (m));
+  Moment m = Moment(1)/Moment(beats_per_second * one_beat_mom);
+  scope_p_->set ("whole-in-seconds", m.make_scm());
 }