]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/midi-def.hh
release: 0.1.13
[lilypond.git] / lily / include / midi-def.hh
1 /*
2   midi-def.hh -- declare Midi_def
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
7 */
8
9
10 #ifndef MIDI_DEF_HH
11 #define MIDI_DEF_HH
12
13 #include "lily-proto.hh"
14 #include "real.hh"
15 #include "string.hh"
16 #include "moment.hh"
17 #include "music-output-def.hh"
18
19 /** 
20   definitions for midi output. Rather empty
21  */
22 class Midi_def : public Music_output_def {
23 public:
24   VIRTUAL_COPY_CONS(Midi_def, Music_output_def);
25   DECLARE_MY_RUNTIME_TYPEINFO;
26
27   /// duration of whole note
28   Real whole_seconds_f_;
29
30   Midi_def();
31   Midi_def (Midi_def const& midi_c_r);
32   ~Midi_def();
33
34   Real duration_to_seconds_f (Moment);
35   int get_tempo_i (Moment moment);
36   void print() const;
37   void set_tempo (Moment moment, int count_per_minute_i);
38 };
39
40 #endif // MIDI_DEF_HH
41