]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/midi-item.cc
* buildscripts/analyse-cxx-log.py: new file. Read compile log to
[lilypond.git] / lily / midi-item.cc
index 6b372e94728e5e3813a06868253fb73de6175cdb..d094899dc31e3b0840fd0075bcf260aa6587e9f2 100644 (file)
@@ -145,12 +145,12 @@ Midi_instrument::to_string () const
     UGH. don't use eval.
   */
   SCM proc = ly_lily_module_constant ("midi-program");
-  SCM program = scm_call_1 (proc, ly_symbol2scm (audio_->str_.to_str0 ()));
+  SCM program = scm_call_1 (proc, ly_symbol2scm (audio_->str_.c_str ()));
   found = (program != SCM_BOOL_F);
   if (found)
     program_byte = scm_to_int (program);
   else
-    warning (_f ("no such MIDI instrument: `%s'", audio_->str_.to_str0 ()));
+    warning (_f ("no such MIDI instrument: `%s'", audio_->str_.c_str ()));
 
   String str = ::to_string ((char) (0xc0 + channel_)); //YIKES! FIXME : Should be track. -rz
   str += ::to_string ((char)program_byte);