Do 5Hz high pass filter to clean up any DC offset created by the model

This commit is contained in:
Mike Oliphant
2023-07-28 09:20:52 -07:00
parent ee0c83a10e
commit fbf05b4472
5 changed files with 32 additions and 9 deletions
+5 -1
View File
@@ -21,7 +21,8 @@
#include <lv2/state/state.h>
#include <lv2/units/units.h>
#include "dsp.h"
#include <NAM/dsp.h>
#include <dsp/RecursiveLinearFilter.h>
#define PlUGIN_URI "http://github.com/mikeoliphant/neural-amp-modeler-lv2"
#define MODEL_URI PlUGIN_URI "#model"
@@ -64,12 +65,15 @@ namespace NAM {
Ports ports = {};
double sampleRate;
LV2_URID_Map* map = nullptr;
LV2_Log_Logger logger = {};
LV2_Worker_Schedule* schedule = nullptr;
::DSP* currentModel = nullptr;
std::string currentModelPath;
recursive_linear_filter::HighPass mHighPass;
std::unordered_map<std::string, double> mNAMParams = {};