+ String str = midi_c_r.str ();
+
+
+ if (midi_debug_global_b)
+ {
+ str = String_convert::bin2hex_str (str) + "\n";
+ // ugh, should have separate debugging output with Midi*::print routines
+ int i = str.index_i ("0a");
+ while (i >= 0)
+ {
+ str[i] = '\n';
+ str[i + 1] = '\t';
+ i = str.index_i ("0a");
+ }
+ }
+ else
+ {
+ Byte * b = str.byte_l();
+ for (int sz = str.length_i (); sz--;)
+ *os_p_ << *b++;
+ }
+
+ return *this;