mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-06-11 14:53:29 +02:00
Add quality scaling support
This commit is contained in:
@@ -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 modelInputAdjustmentDB = 0;
|
||||
|
||||
@@ -60,6 +60,7 @@ namespace NAM {
|
||||
float* audio_out;
|
||||
float* input_level;
|
||||
float* output_level;
|
||||
float* quality_scale;
|
||||
};
|
||||
|
||||
Ports ports = {};
|
||||
@@ -74,6 +75,7 @@ namespace NAM {
|
||||
std::string currentModelPath;
|
||||
float prevDCInput = 0;
|
||||
float prevDCOutput = 0;
|
||||
float qualityScale = 1.0f;
|
||||
|
||||
Plugin();
|
||||
~Plugin();
|
||||
|
||||
Reference in New Issue
Block a user