-void
-Performance::output_header_track (Midi_stream& midi_stream_r)
-{
- Midi_track midi_track;
-
- // perhaps multiple text events?
- String str = String (_("Creator: "));
- if (no_timestamps_global_b)
- str += "GNU LilyPond\n";
- else
- str += get_version_str() + "\n";
-
- Midi_text creator (Midi_text::TEXT, str);
- midi_track.add (Moment (0), &creator);
-
- str = _("Automatically generated");
- if (no_timestamps_global_b)
- str += ".\n";
- else
+ midi_stream.write (Midi_header (1, tracks_, 384));
+ if (be_verbose_global)
+ progress_indication (_ ("Track...") + " ");
+
+ int channel = 0;
+ for (vsize i = 0; i < audio_staffs_.size (); i++)