major_ = major;
}
-const Real Audio_span_dynamic::MINIMUM_VOLUME;
-const Real Audio_span_dynamic::MAXIMUM_VOLUME;
-const Real Audio_span_dynamic::DEFAULT_VOLUME;
+const Real Audio_span_dynamic::MINIMUM_VOLUME = 0.0;
+const Real Audio_span_dynamic::MAXIMUM_VOLUME = 1.0;
+const Real Audio_span_dynamic::DEFAULT_VOLUME = 90.0 / 127.0;
Audio_span_dynamic::Audio_span_dynamic (Moment mom, Real volume)
: start_moment_ (mom),
return int (moment_to_real (m) * 384 * 4);
}
-void Audio_span_dynamic::set_end_moment(Moment mom)
+void Audio_span_dynamic::set_end_moment (Moment mom)
{
if (mom < start_moment_)
{
type_ = type;
}
-Audio_control_function_value_change
-::Audio_control_function_value_change (Control control, Real value)
- : control_ (control), value_ (value)
+Audio_control_change::Audio_control_change (int control, int value)
+ : control_ (control),
+ value_ (value)
{
}
-
-const Audio_control_function_value_change::Context_property
-Audio_control_function_value_change::context_properties_[] = {
- // property name, enum constant, lower bound for range, upper bound for range
- { "midiBalance", BALANCE, -1.0, 1.0 },
- { "midiPanPosition", PAN_POSITION, -1.0, 1.0 },
- { "midiExpression", EXPRESSION, 0.0, 1.0 },
- { "midiReverbLevel", REVERB_LEVEL, 0.0, 1.0 },
- { "midiChorusLevel", CHORUS_LEVEL, 0.0, 1.0 },
- // extra element to signify the end of the mapping, must be kept last
- { 0, NUM_CONTROLS, 0.0, 0.0 }
-};