mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-06-16 00:13:58 +02:00
Merge pull request #101 from mikeoliphant/nam_a2
Add NAM A2 model support
This commit is contained in:
Vendored
+1
-1
Submodule deps/NeuralAudio updated: 842f675179...05d9fbdc95
@@ -101,4 +101,12 @@ A large collection of models is available at https://tonehunt.org
|
|||||||
lv2:minimum -20.0;
|
lv2:minimum -20.0;
|
||||||
lv2:maximum 20.0;
|
lv2:maximum 20.0;
|
||||||
units:unit units:db;
|
units:unit units:db;
|
||||||
|
], [
|
||||||
|
a lv2:ControlPort, lv2:InputPort;
|
||||||
|
lv2:index 6;
|
||||||
|
lv2:symbol "quality_scale";
|
||||||
|
lv2:name "Quality";
|
||||||
|
lv2:default 1.0;
|
||||||
|
lv2:minimum 0.0;
|
||||||
|
lv2:maximum 1.0;
|
||||||
].
|
].
|
||||||
|
|||||||
@@ -252,6 +252,18 @@ namespace NAM {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*(ports.quality_scale) != qualityScale)
|
||||||
|
{
|
||||||
|
qualityScale = *(ports.quality_scale);
|
||||||
|
|
||||||
|
NeuralAudio::NeuralModel::SetDefaultQualityScaleFactor(qualityScale);
|
||||||
|
|
||||||
|
if (currentModel != nullptr)
|
||||||
|
{
|
||||||
|
currentModel->SetQualityScaleFactor(qualityScale);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
float level;
|
float level;
|
||||||
|
|
||||||
float modelInputAdjustmentDB = 0;
|
float modelInputAdjustmentDB = 0;
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ namespace NAM {
|
|||||||
float* audio_out;
|
float* audio_out;
|
||||||
float* input_level;
|
float* input_level;
|
||||||
float* output_level;
|
float* output_level;
|
||||||
|
float* quality_scale;
|
||||||
};
|
};
|
||||||
|
|
||||||
Ports ports = {};
|
Ports ports = {};
|
||||||
@@ -74,6 +75,7 @@ namespace NAM {
|
|||||||
std::string currentModelPath;
|
std::string currentModelPath;
|
||||||
float prevDCInput = 0;
|
float prevDCInput = 0;
|
||||||
float prevDCOutput = 0;
|
float prevDCOutput = 0;
|
||||||
|
float qualityScale = 1.0f;
|
||||||
|
|
||||||
Plugin();
|
Plugin();
|
||||||
~Plugin();
|
~Plugin();
|
||||||
|
|||||||
Reference in New Issue
Block a user