]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/midi-stream.cc
Doc: removing a left over html tag in a snippet
[lilypond.git] / lily / midi-stream.cc
index 11afe02cf46b13e0dcc53f9a681348fdcbd558b3..9409762d66f0bbf2eb9b1514336569c677e5ce05 100644 (file)
@@ -1,9 +1,20 @@
 /*
-  midi-stream.cc -- implement Midi_stream
+  This file is part of LilyPond, the GNU music typesetter.
 
-  source file of the GNU LilyPond music typesetter
+  Copyright (C) 1997--2012 Jan Nieuwenhuizen <janneke@gnu.org>
 
-  (c) 1997--2007 Jan Nieuwenhuizen <janneke@gnu.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
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  LilyPond is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "midi-stream.hh"
@@ -13,7 +24,7 @@ using namespace std;
 
 #include "international.hh"
 #include "main.hh"
-#include "midi-item.hh"
+#include "midi-chunk.hh"
 #include "misc.hh"
 #include "program-option.hh"
 #include "stream.hh"
@@ -41,20 +52,14 @@ Midi_stream::write (string str)
   size_t written = fwrite (str.data (), sz, n, out_file_);
 
   if (written != sz * n)
-    warning (_ ("cannot write to file: `%s'"));
+    warning (_f ("cannot write to file: `%s'", str.data ()));
 }
 
 void
-Midi_stream::write (Midi_item const &midi)
+Midi_stream::write (Midi_chunk const &midi)
 {
   string str = midi.to_string ();
 
   return write (str);
 }
 
-void
-Midi_stream::write (int i)
-{
-  write (Midi_item::i2varint_string (i));
-}
-