summaryrefslogtreecommitdiff
path: root/libs/evoral/src/Event.cpp
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-07 19:16:23 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-07 19:16:23 +0000
commitf3fc6195bc6136a31b08ffe8c260a64efe77f9dc (patch)
treec9d98183fc9d14cd22ff7d076c593fef9bc9fa2f /libs/evoral/src/Event.cpp
parentf8e16276d9a598eb6425ae393dc0bd62cd2df05b (diff)
Allow trim of midi regions to before the start of the source. Fixes #3156.
git-svn-id: svn://localhost/ardour2/branches/3.0@8212 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/src/Event.cpp')
-rw-r--r--libs/evoral/src/Event.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/evoral/src/Event.cpp b/libs/evoral/src/Event.cpp
index 930a18e77b..783634ff24 100644
--- a/libs/evoral/src/Event.cpp
+++ b/libs/evoral/src/Event.cpp
@@ -90,6 +90,20 @@ Event<Timestamp>::~Event() {
}
}
+template<typename Timestamp>
+void
+Event<Timestamp>::set_time (Timestamp t)
+{
+ _nominal_time = t;
+}
+
+template<typename Timestamp>
+void
+Event<Timestamp>::set_original_time (Timestamp t)
+{
+ _original_time = t;
+}
+
#endif // EVORAL_EVENT_ALLOC
template class Event<Evoral::MusicalTime>;