]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/midi-chunk.hh
Run grand-replace (issue 3765)
[lilypond.git] / lily / include / midi-chunk.hh
index 85801173da08435cb446ee5d650705ce5fc8da46..3769ce2e42fe7603cc6e3567bf88ea84d6c89eda 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2007--2010 Han-Wen Nienhuys <hanwen@lilypond.org>
+  Copyright (C) 2007--2014 Han-Wen Nienhuys <hanwen@lilypond.org>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -24,7 +24,6 @@
 #include "virtual-methods.hh"
 #include "std-vector.hh"
 
-
 /**
    timed MIDI event
 */
@@ -38,19 +37,16 @@ public:
   string to_string () const;
 };
 
-
-
-
 /**
    variable sized MIDI data
 */
 class Midi_chunk
 {
 public:
-  void set (string header_string, string data_string, string footer_string);
+  void set (const string &header_string, const string &data_string, const string &footer_string);
   virtual string to_string () const;
   virtual string data_string () const;
-  DECLARE_CLASSNAME(Midi_chunk);
+  DECLARE_CLASSNAME (Midi_chunk);
   virtual ~Midi_chunk ();
 private:
   string data_string_;
@@ -61,7 +57,7 @@ private:
 class Midi_header : public Midi_chunk
 {
 public:
-  DECLARE_CLASSNAME(Midi_header);
+  DECLARE_CLASSNAME (Midi_header);
 
   Midi_header (int format, int tracks, int clocks_per_4);
 };
@@ -70,11 +66,12 @@ class Midi_track : public Midi_chunk
 {
 public:
   int number_;
-  DECLARE_CLASSNAME(Midi_track);
+  int port_;
+  DECLARE_CLASSNAME (Midi_track);
 
-  vector<Midi_event*> events_;
+  vector<Midi_event *> events_;
 
-  Midi_track ();
+  Midi_track (int number, bool port);
   ~Midi_track ();
 
   void add (int, Midi_item *midi);