summaryrefslogtreecommitdiff
path: root/libs/evoral/evoral/Event.hpp
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-08-28 16:06:08 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-08-28 16:06:08 +0000
commite7e071db1a07ec6d66b71982f204c2cbaa70adee (patch)
tree89bb307195d90c110fa7244a062397403390d21f /libs/evoral/evoral/Event.hpp
parent710ba02c70545e06ea57193c61bddba706a49dec (diff)
more MIDI editing tweaks ; flip mouse mode buttons around for MIDI so that "object" mode is the most likely mode for both region \& region editing ; frame handle events (from lincoln's region trimming patch) are now handled more explicitly
git-svn-id: svn://localhost/ardour2/branches/3.0@5600 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/evoral/Event.hpp')
-rw-r--r--libs/evoral/evoral/Event.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/evoral/evoral/Event.hpp b/libs/evoral/evoral/Event.hpp
index 096d00de35..3e8e05fa3b 100644
--- a/libs/evoral/evoral/Event.hpp
+++ b/libs/evoral/evoral/Event.hpp
@@ -196,5 +196,18 @@ protected:
} // namespace Evoral
+
+template<typename Time>
+std::ostream& operator<<(std::ostream& o, const Evoral::Event<Time>& ev) {
+ o << "Event type = " << ev.event_type() << " @ " << " @ " << ev.time() << "\n\t";
+ o << std::hex;
+ for (uint32_t n = 0; n < ev.size(); ++n) {
+ o << (int) ev.buffer()[n] << ' ';
+ }
+ o << std::dec << std::endl;
+ return o;
+}
+
+
#endif // EVORAL_EVENT_HPP