objects don't have a time domain, they have a time domain provider (GUI)
This commit is contained in:
parent
3b565693c8
commit
e9585ad530
|
@ -36,7 +36,7 @@ curvetest (string filename)
|
||||||
stringstream line;
|
stringstream line;
|
||||||
//Evoral::Parameter param(GainAutomation, -1.0, +1.0, 0.0);
|
//Evoral::Parameter param(GainAutomation, -1.0, +1.0, 0.0);
|
||||||
Evoral::Parameter param(GainAutomation);
|
Evoral::Parameter param(GainAutomation);
|
||||||
AutomationList al (param, Temporal::AudioTime);
|
AutomationList al (param, Temporal::TimeDomainProvider (Temporal::AudioTime));
|
||||||
double minx = DBL_MAX;
|
double minx = DBL_MAX;
|
||||||
double maxx = DBL_MIN;
|
double maxx = DBL_MIN;
|
||||||
|
|
||||||
|
|
|
@ -4673,7 +4673,7 @@ Editor::cut_copy_points (Editing::CutCopyOp op, timepos_t const & earliest_time)
|
||||||
ControlList for each of our source lists to put the cut buffer data in.
|
ControlList for each of our source lists to put the cut buffer data in.
|
||||||
*/
|
*/
|
||||||
for (Lists::iterator i = lists.begin(); i != lists.end(); ++i) {
|
for (Lists::iterator i = lists.begin(); i != lists.end(); ++i) {
|
||||||
i->second.copy = i->first->create (i->first->parameter (), i->first->descriptor(), i->first->time_domain());
|
i->second.copy = i->first->create (i->first->parameter (), i->first->descriptor(), *i->first);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add all selected points to the relevant copy ControlLists */
|
/* Add all selected points to the relevant copy ControlLists */
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
using namespace ARDOUR;
|
using namespace ARDOUR;
|
||||||
|
|
||||||
MidiCutBuffer::MidiCutBuffer (Session* s)
|
MidiCutBuffer::MidiCutBuffer (Session* s)
|
||||||
: AutomatableSequence<Temporal::Beats> (*s, Temporal::BeatTime)
|
: AutomatableSequence<Temporal::Beats> (*s, Temporal::TimeDomainProvider (Temporal::BeatTime))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3479,7 +3479,7 @@ Mixer_UI::add_favorite_processor (ARDOUR::PluginPresetPtr ppp, ProcessorPosition
|
||||||
}
|
}
|
||||||
|
|
||||||
Route::ProcessorStreams err;
|
Route::ProcessorStreams err;
|
||||||
std::shared_ptr<Processor> processor (new PluginInsert (*_session, rt->time_domain(), p));
|
std::shared_ptr<Processor> processor (new PluginInsert (*_session, *rt, p));
|
||||||
|
|
||||||
switch (pos) {
|
switch (pos) {
|
||||||
case AddTop:
|
case AddTop:
|
||||||
|
|
|
@ -2082,7 +2082,7 @@ ProcessorBox::_drop_plugin_preset (Gtk::SelectionData const &data, Route::Proces
|
||||||
p->load_preset (ppp->_preset);
|
p->load_preset (ppp->_preset);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<Processor> processor (new PluginInsert (*_session, _route->time_domain(), p));
|
std::shared_ptr<Processor> processor (new PluginInsert (*_session, *_route, p));
|
||||||
if (Config->get_new_plugins_active ()) {
|
if (Config->get_new_plugins_active ()) {
|
||||||
processor->enable (true);
|
processor->enable (true);
|
||||||
}
|
}
|
||||||
|
@ -2105,7 +2105,7 @@ ProcessorBox::_drop_plugin (Gtk::SelectionData const &data, Route::ProcessorList
|
||||||
if (!p) {
|
if (!p) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
std::shared_ptr<Processor> processor (new PluginInsert (*_session, _route->time_domain(), p));
|
std::shared_ptr<Processor> processor (new PluginInsert (*_session, *_route, p));
|
||||||
if (Config->get_new_plugins_active ()) {
|
if (Config->get_new_plugins_active ()) {
|
||||||
processor->enable (true);
|
processor->enable (true);
|
||||||
}
|
}
|
||||||
|
@ -2788,7 +2788,7 @@ ProcessorBox::use_plugins (const SelectedPlugins& plugins)
|
||||||
{
|
{
|
||||||
for (SelectedPlugins::const_iterator p = plugins.begin(); p != plugins.end(); ++p) {
|
for (SelectedPlugins::const_iterator p = plugins.begin(); p != plugins.end(); ++p) {
|
||||||
|
|
||||||
std::shared_ptr<Processor> processor (new PluginInsert (*_session, _route->time_domain(), *p));
|
std::shared_ptr<Processor> processor (new PluginInsert (*_session, *_route, *p));
|
||||||
|
|
||||||
Route::ProcessorStreams err_streams;
|
Route::ProcessorStreams err_streams;
|
||||||
|
|
||||||
|
@ -3769,7 +3769,7 @@ ProcessorBox::paste_processor_state (const XMLNodeList& nlist, std::shared_ptr<P
|
||||||
/* XXX its a bit limiting to assume that everything else
|
/* XXX its a bit limiting to assume that everything else
|
||||||
is a plugin.
|
is a plugin.
|
||||||
*/
|
*/
|
||||||
p.reset (new PluginInsert (*_session, _route->time_domain()));
|
p.reset (new PluginInsert (*_session, *_route));
|
||||||
/* we can't use RAII Stateful::ForceIDRegeneration
|
/* we can't use RAII Stateful::ForceIDRegeneration
|
||||||
* because that'd void copying the state and wrongly bump
|
* because that'd void copying the state and wrongly bump
|
||||||
* the state-version counter.
|
* the state-version counter.
|
||||||
|
|
Loading…
Reference in New Issue