try to fix data loss at end of a capture pass for MIDI - add a new virtual method...
[ardour.git] / libs / ardour / ardour / automatable_sequence.h
index 23ebb161c897c22ebc8d0735a100beaa96f21f0c..730ea33a7cf5f600e22e548ecf6180faac48968f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2009 Paul Davis 
+    Copyright (C) 2009 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -29,11 +29,18 @@ namespace ARDOUR {
 template<typename T>
 class AutomatableSequence : public Automatable, public Evoral::Sequence<T> {
 public:
-       AutomatableSequence(Session& s, size_t /*size*/)
+       AutomatableSequence(Session& s)
                : Evoral::ControlSet()
                , Automatable(s)
                , Evoral::Sequence<T>(EventTypeMap::instance())
        {}
+
+       AutomatableSequence(const AutomatableSequence<T>& other)
+               : Evoral::ControlSet(other)
+               , Automatable(other._a_session)
+               , Evoral::Sequence<T>(other)
+       {}
+
 };
 
 } // namespace ARDOUR