]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/midi-def.hh
patch::: 1.3.147.jcn1
[lilypond.git] / lily / include / midi-def.hh
index 7a559adf5837b806a7a6ce753fcfa09ad0235ba0..9ec31677208695d1b9a17b7fdf0727f772ccdb56 100644 (file)
@@ -1,38 +1,36 @@
 /*
-  midi-def.hh -- declare 
+  midi-def.hh -- declare Midi_def
 
-  source file of the LilyPond music typesetter
+  source file of the GNU LilyPond music typesetter
 
-  (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
+  (c)  1997--2001 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 
-#ifndef MIDIDEF_HH
-#define MIDIDEF_HH
-#include "proto.hh"
+#ifndef MIDI_DEF_HH
+#define MIDI_DEF_HH
+
+#include "lily-proto.hh"
 #include "real.hh"
 #include "string.hh"
 #include "moment.hh"
-
+#include "music-output-def.hh"
 
 /** 
+  definitions for midi output. Rather empty
  */
-struct Midi_def {
-    /// output file name
-    String outfile_str_;
+class Midi_def : public Music_output_def {
+  static int score_count_i_;
 
-    /// duration of whole note
-    Real whole_seconds_f_;
+public:
+  VIRTUAL_COPY_CONS (Music_output_def);
 
-    Midi_def();
-    Midi_def(Midi_def const& midi_c_r);
-    ~Midi_def();
+  Midi_def ();
 
-    Real duration_to_seconds_f(Moment);
-    int get_tempo_i( Moment moment );
-    void set_tempo( Moment moment, int count_per_minute_i );
-    void print() const;
+  int get_tempo_i (Moment moment);
+  void set_tempo (Moment moment, int count_per_minute_i);
+  virtual int get_next_score_count () const;
+  static void reset_score_count ();
 };
 
-#endif // MIDIDEF_HH //
-
+#endif // MIDI_DEF_HH