Missing i/o volume controls; TooB NAM preset upgrade.
This commit is contained in:
+14
-1
@@ -2030,6 +2030,19 @@ void PiPedalModel::UpdateDefaults(PedalboardItem *pedalboardItem, std::unordered
|
|||||||
for (size_t i = 0; i < pPlugin->ports().size(); ++i)
|
for (size_t i = 0; i < pPlugin->ports().size(); ++i)
|
||||||
{
|
{
|
||||||
auto port = pPlugin->ports()[i];
|
auto port = pPlugin->ports()[i];
|
||||||
|
|
||||||
|
//////// PLUGIN SPECIFIC UPGRADES //////////////////////
|
||||||
|
if (pPlugin->uri() == "http://two-play.com/plugins/toob-nam")
|
||||||
|
{
|
||||||
|
ControlValue *pValue = pedalboardItem->GetControlValue("inputCalibrationMode");
|
||||||
|
if (pValue == nullptr)
|
||||||
|
{
|
||||||
|
// calibration is OFF when upgrading.
|
||||||
|
pedalboardItem->SetControlValue("inputCalibrationMode",0.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
if (port->is_control_port() && port->is_input())
|
if (port->is_control_port() && port->is_input())
|
||||||
{
|
{
|
||||||
ControlValue *pValue = pedalboardItem->GetControlValue(port->symbol());
|
ControlValue *pValue = pedalboardItem->GetControlValue(port->symbol());
|
||||||
@@ -2098,7 +2111,7 @@ void PiPedalModel::UpdateDefaults(Pedalboard *pedalboard)
|
|||||||
{
|
{
|
||||||
// add missing values.
|
// add missing values.
|
||||||
std::unordered_map<int64_t, PedalboardItem *> itemMap;
|
std::unordered_map<int64_t, PedalboardItem *> itemMap;
|
||||||
for (size_t i = 0; i < pedalboard->items().size(); ++i)
|
for (size_t i = 0; i < pedalboard->GetAllPlugins().size(); ++i)
|
||||||
{
|
{
|
||||||
UpdateDefaults(&(pedalboard->items()[i]), itemMap);
|
UpdateDefaults(&(pedalboard->items()[i]), itemMap);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -702,7 +702,7 @@ export class UiControl implements Deserializable<UiControl> {
|
|||||||
port_group: string = "";
|
port_group: string = "";
|
||||||
units: Units = Units.none;
|
units: Units = Units.none;
|
||||||
comment: string = "";
|
comment: string = "";
|
||||||
is_bypass: boolean = true;
|
is_bypass: boolean = false;
|
||||||
is_program_controller: boolean = true;
|
is_program_controller: boolean = true;
|
||||||
custom_units: string = "";
|
custom_units: string = "";
|
||||||
connection_optional: boolean = false;
|
connection_optional: boolean = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user