X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdynamic-performer.cc;h=257708de292fabf63f9b4b7b9eb8a16a5f1b56fb;hb=78fab0cd2b9f3f568e9b97b313e33f28d7077223;hp=c0df3e0cae6736c5c458d1a3b7dd64b0e491520f;hpb=50a19de991aac1e93d1ff2cda6b30929661e036d;p=lilypond.git diff --git a/lily/dynamic-performer.cc b/lily/dynamic-performer.cc index c0df3e0cae..257708de29 100644 --- a/lily/dynamic-performer.cc +++ b/lily/dynamic-performer.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 2000--2003 Jan Nieuwenhuizen + (c) 2000--2004 Jan Nieuwenhuizen */ #include "performer.hh" @@ -21,7 +21,7 @@ class Dynamic_performer : public Performer { public: - TRANSLATOR_DECLARATIONS(Dynamic_performer); + TRANSLATOR_DECLARATIONS (Dynamic_performer); protected: virtual bool try_music (Music* req); virtual void stop_translation_timestep (); @@ -46,10 +46,10 @@ Dynamic_performer::create_audio_elements () SCM proc = get_property ("dynamicAbsoluteVolumeFunction"); SCM svolume = SCM_EOL; - if (gh_procedure_p (proc)) + if (ly_c_procedure_p (proc)) { // urg - svolume = gh_call1 (proc, script_req_->get_mus_property ("text")); + svolume = scm_call_1 (proc, script_req_->get_property ("text")); } Real volume = robust_scm2double (svolume, 0.5); @@ -59,13 +59,13 @@ Dynamic_performer::create_audio_elements () */ SCM min = get_property ("midiMinimumVolume"); SCM max = get_property ("midiMaximumVolume"); - if (gh_number_p (min) || gh_number_p (max)) + if (ly_c_number_p (min) || ly_c_number_p (max)) { Interval iv (0, 1); - if (gh_number_p (min)) - iv[MIN] = gh_scm2double (min); - if (gh_number_p (max)) - iv[MAX] = gh_scm2double (max); + if (ly_c_number_p (min)) + iv[MIN] = ly_scm2double (min); + if (ly_c_number_p (max)) + iv[MAX] = ly_scm2double (max); volume = iv[MIN] + iv.length () * volume; } else @@ -75,17 +75,17 @@ Dynamic_performer::create_audio_elements () */ SCM s = get_property ("midiInstrument"); - if (!gh_string_p (s)) + if (!ly_c_string_p (s)) s = get_property ("instrument"); - if (!gh_string_p (s)) + if (!ly_c_string_p (s)) s = scm_makfrom0str ("piano"); SCM eq = get_property ("instrumentEqualizer"); - if (gh_procedure_p (eq)) + if (ly_c_procedure_p (eq)) { - s = gh_call1 (eq, s); + s = scm_call_1 (eq, s); } if (is_number_pair (s)) @@ -126,7 +126,7 @@ Dynamic_performer::try_music (Music* r) return false; } -ENTER_DESCRIPTION(Dynamic_performer, +ENTER_DESCRIPTION (Dynamic_performer, /*descr*/ "", /* creats*/ "", /* accepts */ "absolute-dynamic-event",