- // *this << mitem_c_r.str();
- mitem_c_r.output (this);
- if (check_debug && !monitor->silence("Midistrings"))
- *os_p_ << "\n";
- return *this;
+ String str = midi_c_r.to_string ();
+
+ // ugh, should have separate debugging output with Midi*::print routines
+ if (do_midi_debugging_global)
+ {
+ str = String_convert::bin2hex (str) + "\n";
+ for (int i = str.index ("0a"); i >= 0; i = str.index ("0a"))
+ {
+ str[i] = '\n';
+ str[i + 1] = '\t';
+ }
+ }
+
+ return operator << (str);