]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/midi-def.hh
release: 0.0.41
[lilypond.git] / lily / include / midi-def.hh
1 /*
2   midi-def.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 Midi_def {
21     // ugh!
22     static int den_i_s;
23     static int num_i_s;
24
25     /// output file name
26     String outfile_str_;
27
28     /// duration of whole note
29     Real whole_seconds_f_;
30
31     Midi_def();
32     Midi_def(Midi_def const& midi_c_r);
33     ~Midi_def();
34
35     Real duration_to_seconds_f(Moment);
36     int get_tempo_i( Moment moment );
37     void set_tempo( Moment moment, int count_per_minute_i );
38     void print() const;
39 };
40
41 #endif // MIDIDEF_HH //
42