lilypond-0.0.39
[lilypond.git] / lily / include / midi-def.hh
blob7a559adf5837b806a7a6ce753fcfa09ad0235ba0
1 /*
2 midi-def.hh -- declare
4 source file of the LilyPond music typesetter
6 (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
7 */
10 #ifndef MIDIDEF_HH
11 #define MIDIDEF_HH
12 #include "proto.hh"
13 #include "real.hh"
14 #include "string.hh"
15 #include "moment.hh"
18 /**
20 struct Midi_def {
21 /// output file name
22 String outfile_str_;
24 /// duration of whole note
25 Real whole_seconds_f_;
27 Midi_def();
28 Midi_def(Midi_def const& midi_c_r);
29 ~Midi_def();
31 Real duration_to_seconds_f(Moment);
32 int get_tempo_i( Moment moment );
33 void set_tempo( Moment moment, int count_per_minute_i );
34 void print() const;
37 #endif // MIDIDEF_HH //