diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-07 19:16:23 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-07 19:16:23 +0000 |
commit | f3fc6195bc6136a31b08ffe8c260a64efe77f9dc (patch) | |
tree | c9d98183fc9d14cd22ff7d076c593fef9bc9fa2f /libs/evoral/src/Event.cpp | |
parent | f8e16276d9a598eb6425ae393dc0bd62cd2df05b (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.cpp | 14 |
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>; |