]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/dynamic-performer.cc
* lily/ambitus-engraver.cc (create_ambitus): change name to
[lilypond.git] / lily / dynamic-performer.cc
index 53e8a5e0d4392475d8a26eb9c49b0a4dbe4da1d7..257708de292fabf63f9b4b7b9eb8a16a5f1b56fb 100644 (file)
@@ -59,12 +59,12 @@ Dynamic_performer::create_audio_elements ()
        */
       SCM min = get_property ("midiMinimumVolume");
       SCM max = get_property ("midiMaximumVolume");
-      if (is_number (min) || is_number (max))
+      if (ly_c_number_p (min) || ly_c_number_p (max))
        {
          Interval iv (0, 1);
-         if (is_number (min))
+         if (ly_c_number_p (min))
            iv[MIN] = ly_scm2double (min);
-         if (is_number (max))
+         if (ly_c_number_p (max))
            iv[MAX] = ly_scm2double (max);
          volume = iv[MIN] + iv.length () * volume;
        }