/// paper_, staffs_ and commands_ form the problem definition.
Paperdef *paper_p_;
- Mididef* midi_p_;
+ Midi_def* midi_p_;
IPointerList<Input_staff*> staffs_;
Input_music * score_wide_music_p_;
~Input_score();
/// construction
void set(Paperdef*);
- void set(Mididef* midi_p);
+ void set(Midi_def* midi_p);
void print() const;
Score*parse();
void set(Input_music*);
/**
*/
-struct Mididef {
+struct Midi_def {
/// output file name
String outfile_str_;
/// duration of whole note
Real whole_seconds_f_;
- Mididef();
- Mididef(Mididef const& midi_c_r);
- ~Mididef();
+ Midi_def();
+ Midi_def(Midi_def const& midi_c_r);
+ ~Midi_def();
Real duration_to_seconds_f(Moment);
int get_tempo_i( Moment moment );
// destructor
// routines, alphasorted
-Mididef::Mididef()
+Midi_def::Midi_def()
{
set_tempo( Moment( 1, 4 ), 60 );
outfile_str_ = "lelie.midi";
}
-Mididef::Mididef( Mididef const& midi_c_r )
+Midi_def::Midi_def( Midi_def const& midi_c_r )
{
whole_seconds_f_ = midi_c_r.whole_seconds_f_;
outfile_str_ = midi_c_r.outfile_str_;
}
-Mididef::~Mididef()
+Midi_def::~Midi_def()
{
}
Real
-Mididef::duration_to_seconds_f( Moment moment )
+Midi_def::duration_to_seconds_f( Moment moment )
{
if (!moment)
return 0;
}
int
-Mididef::get_tempo_i( Moment moment )
+Midi_def::get_tempo_i( Moment moment )
{
return Moment( whole_seconds_f_ ) * Moment( 60 ) * moment;
}
void
-Mididef::print() const
+Midi_def::print() const
{
#ifndef NPRINT
mtor << "Midi {4/min: " << Real( 60 ) / ( whole_seconds_f_ * 4 );
}
void
-Mididef::set_tempo( Moment moment, int count_per_minute_i )
+Midi_def::set_tempo( Moment moment, int count_per_minute_i )
{
whole_seconds_f_ = Moment( count_per_minute_i ) / Moment( 60 ) / moment;
}