the mega-properties/SequenceProperty patch. split is broken at present (right hand...
[ardour.git] / libs / surfaces / mackie / midi_byte_array.cc
index 192af6a1ce3fe5f086b6815888ed8786eca1bae6..1c27c82be1c1e3f1cc6224f31e59ded21dead893 100644 (file)
@@ -24,6 +24,7 @@
 #include <algorithm>
 #include <cstdarg>
 #include <iomanip>
+#include <stdexcept>
 
 using namespace std;
 
@@ -96,3 +97,12 @@ ostream & operator << ( ostream & os, const MidiByteArray & mba )
        os << "]";
        return os;
 }
+
+MidiByteArray & operator << ( MidiByteArray & mba, const std::string & st )
+{
+       for ( string::const_iterator it = st.begin(); it != st.end(); ++it )
+       {
+               mba << *it;
+       }
+       return mba;
+}