*/
#include "performer.hh"
-
-#include "event.hh"
#include "audio-item.hh"
/*
SCM proc = get_property ("dynamicAbsoluteVolumeFunction");
SCM svolume = SCM_EOL;
- if (is_procedure (proc))
+ if (ly_c_procedure_p (proc))
{
// urg
svolume = scm_call_1 (proc, script_req_->get_property ("text"));
*/
SCM min = get_property ("midiMinimumVolume");
SCM max = get_property ("midiMaximumVolume");
- if (is_number (min) || is_number (max))
+ if (scm_is_number (min) || scm_is_number (max))
{
Interval iv (0, 1);
- if (is_number (min))
- iv[MIN] = ly_scm2double (min);
- if (is_number (max))
- iv[MAX] = ly_scm2double (max);
+ if (scm_is_number (min))
+ iv[MIN] = scm_to_double (min);
+ if (scm_is_number (max))
+ iv[MAX] = scm_to_double (max);
volume = iv[MIN] + iv.length () * volume;
}
else
*/
SCM s = get_property ("midiInstrument");
- if (!ly_c_string_p (s))
+ if (!scm_is_string (s))
s = get_property ("instrument");
- if (!ly_c_string_p (s))
+ if (!scm_is_string (s))
s = scm_makfrom0str ("piano");
SCM eq = get_property ("instrumentEqualizer");
- if (is_procedure (eq))
+ if (ly_c_procedure_p (eq))
{
s = scm_call_1 (eq, s);
}
return false;
}
-ENTER_DESCRIPTION (Dynamic_performer,
+ADD_TRANSLATOR (Dynamic_performer,
/*descr*/ "",
/* creats*/ "",
/* accepts */ "absolute-dynamic-event",