]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/midi-def.hh
adf7a3e792bc88b1c557a7c227bbb0c6e3a20dd5
[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--2000 Jan Nieuwenhuizen <janneke@gnu.org>
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   static int default_count_i_;
24
25 public:
26   VIRTUAL_COPY_CONS(Music_output_def);
27
28   Midi_def();
29   ~Midi_def();
30
31   int get_tempo_i (Moment moment);
32   void set_tempo (Moment moment, int count_per_minute_i);
33   virtual int get_next_default_count () const;
34   static void reset_default_count();
35 };
36
37 #endif // MIDI_DEF_HH