mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
remove AutomationList::paste since it is no longer required (just use ControlList::paste())
This commit is contained in:
parent
779a04b0ce
commit
d995a07011
2 changed files with 0 additions and 27 deletions
|
|
@ -87,7 +87,6 @@ public:
|
|||
AutomationList& operator= (const AutomationList&);
|
||||
|
||||
void thaw ();
|
||||
bool paste (const ControlList&, timepos_t const &, BeatsSamplesConverter const&);
|
||||
|
||||
void set_automation_state (AutoState);
|
||||
AutoState automation_state() const;
|
||||
|
|
|
|||
|
|
@ -317,32 +317,6 @@ AutomationList::thaw ()
|
|||
}
|
||||
}
|
||||
|
||||
bool
|
||||
AutomationList::paste (const ControlList& alist, timepos_t const & pos, BeatsSamplesConverter const& bfc)
|
||||
{
|
||||
if (time_domain() == alist.time_domain()) {
|
||||
return ControlList::paste (alist, pos);
|
||||
}
|
||||
|
||||
/* time domains differ - need to map the time of all points in alist
|
||||
* into our time domain
|
||||
*/
|
||||
|
||||
const bool to_sample = (time_domain() == Temporal::AudioTime);
|
||||
|
||||
ControlList cl (alist);
|
||||
cl.clear ();
|
||||
|
||||
for (const_iterator i = alist.begin ();i != alist.end (); ++i) {
|
||||
if (to_sample) {
|
||||
cl.fast_simple_add (timepos_t ((*i)->when.samples()), (*i)->value);
|
||||
} else {
|
||||
cl.fast_simple_add (timepos_t ((*i)->when.beats ()), (*i)->value);
|
||||
}
|
||||
}
|
||||
return ControlList::paste (cl, pos);
|
||||
}
|
||||
|
||||
Command*
|
||||
AutomationList::memento_command (XMLNode* before, XMLNode* after)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue