]> git.donarmstrong.com Git - lilypond.git/blob - hdr/mididef.hh
a2efdbecd0d30bef762a072b806f514c30825409
[lilypond.git] / hdr / mididef.hh
1 /*
2   mididef.hh -- declare 
3
4   source file of the LilyPond music typesetter
5
6   (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
7 */
8
9
10 #ifndef MIDIDEF_HH
11 #define MIDIDEF_HH
12 #include "proto.hh"
13 #include "real.hh"
14 #include "string.hh"
15 #include "moment.hh"
16
17
18 /** 
19  */
20 struct Mididef {
21     /// output file name
22     String outfile_str_;
23
24     /// duration of whole note
25     Real whole_seconds_f_;
26
27     Mididef();
28     Mididef(Mididef const& midi_c_r);
29     ~Mididef();
30
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;
35 };
36
37 #endif // MIDIDEF_HH //
38