]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/control-track-performer.cc
Set the sequence name in MIDI using title information from
[lilypond.git] / lily / control-track-performer.cc
index 9b0d676870d5d08d6074e2a3d2c6090657b5a7b0..82beebe122fb002066f0fede1a4303c67fcbadd7 100644 (file)
@@ -52,11 +52,15 @@ Control_track_performer::add_text (Audio_text::Type text_type, const string &str
 void
 Control_track_performer::initialize ()
 {
-  control_track_ = new Audio_staff;
+  control_track_ = new Audio_control_track_staff;
   announce_element (Audio_element_info (control_track_, 0));
 
   string id_string = String_convert::pad_to (gnu_lilypond_version_string (), 30);
 
+  // The first audio element in the control track is a placeholder for the
+  // name of the MIDI sequence.  The actual name is stored in the element
+  // later before outputting the track (in Performance::output, see
+  // performance.cc).
   add_text (Audio_text::TRACK_NAME, "control track");
   add_text (Audio_text::TEXT, "creator: ");
   add_text (Audio_text::TEXT, id_string);