]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/midi-def.hh
partial: 0.0.39-1.jcn
[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     /// output file name
22     String outfile_str_;
23
24     /// duration of whole note
25     Real whole_seconds_f_;
26
27     Midi_def();
28     Midi_def(Midi_def const& midi_c_r);
29     ~Midi_def();
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