Loading...
Searching...
No Matches
gx_neural_plugins.h
Go to the documentation of this file.
/*
* Copyright (C) 2024 Hermann Meyer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* --------------------------------------------------------------------------
*/
/* ------- This is the guitarix Engine namespace ------- */
#pragma once
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wreorder"
#pragma GCC diagnostic ignored "-Winfinite-recursion"
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "dsp.h"
#include "get_dsp.h"
#include "activations.h"
#include "RTNeural.h"
#pragma GCC diagnostic pop
namespace gx_jack { class GxJack; }
namespace gx_engine {
class Ramp {
public:
int mode;
float ramp_down;
float ramp_up;
float ramp_step;
float ramp_step_impl;
enum {
OFF = 0x0001,
UP = 0x0002,
DOWN = 0x0004,
DEAD = 0x0008,
};
Ramp() {};
~Ramp() {};
inline void init(unsigned int rate);
inline void startRampDown();
inline void checkRampMode();
inline void rampDown(int count, float *output);
inline void rampUp(int count, float *output);
};
/****************************************************************
** class Neural Amp Modeler
*/
class NeuralAmp: public PluginDef {
private:
nam::DSP* model;
ParamMap& param;
gx_resample::FixedRateResampler smp;
Ramp ramp;
sigc::slot<void> sync;
volatile int ready;
int fSampleRate;
int mSampleRate;
float fVslider0;
float fVslider1;
double fRec0[2];
double fRec1[2];
int need_resample;
float loudness;
bool is_inited;
float filelist;
Glib::ustring load_file;
Glib::ustring current_file;
Glib::ustring load_path;
std::string idstring;
void clear_state_f();
int load_ui_f(const UiBuilder& b, int form);
void init(unsigned int sample_rate);
void compute(int count, float *input0, float *output0);
void load_nam_file();
void load_nam_file_impl();
void create_nam_filelist();
int register_par(const ParamReg& reg);
static void clear_state_f_static(PluginDef*);
static void init_static(unsigned int sample_rate, PluginDef*);
static int load_ui_f_static(const UiBuilder& b, int form);
static void compute_static(int count, float *input0, float *output0, PluginDef*);
static int register_params_static(const ParamReg& reg);
static void del_instance(PluginDef *p);
public:
std::vector<Glib::ustring> nam_file_names;
Plugin plugin;
NeuralAmp(ParamMap& param_, std::string id, sigc::slot<void> sync);
~NeuralAmp();
};
/****************************************************************
** class NeuralAmpMulti
*/
class NeuralAmpMulti: public PluginDef {
private:
nam::DSP* modela;
nam::DSP* modelb;
ParamMap& param;
ParallelThread* pro;
gx_resample::FixedRateResampler smpa;
gx_resample::FixedRateResampler smpb;
Ramp rampA;
Ramp rampB;
sigc::slot<void> sync;
volatile int ready;
int fSampleRate;
int maSampleRate;
int mbSampleRate;
float *buf;
int nframes;
float fVslider0;
float fVslider01;
float fVslider1;
float fVslider2;
int IOTA0;
double fDec0[16384];
float fVslider02;
double fDel4[2];
double fDel0[2];
double fDel1[2];
double fDel2[2];
double fDel3[2];
double fRec0[2];
double fRec01[2];
double fRec1[2];
double fRec2[2];
int need_aresample;
int need_bresample;
float loudnessa;
float loudnessb;
bool is_inited;
float afilelist;
float bfilelist;
Glib::ustring load_afile;
Glib::ustring current_afile;
Glib::ustring load_bfile;
Glib::ustring current_bfile;
Glib::ustring load_apath;
Glib::ustring load_bpath;
std::string idstring;
void clear_state_f();
int load_ui_f(const UiBuilder& b, int form);
void init(unsigned int sample_rate);
void compute(int count, float *input0, float *output0);
void processDelay(int count, float *buf);
void processModelA(int count, float *buf);
void processModelB();
void load_nam_afile();
void load_nam_afile_impl();
void load_nam_bfile();
void load_nam_bfile_impl();
void create_nam_afilelist();
void create_nam_bfilelist();
int register_par(const ParamReg& reg);
static void clear_state_f_static(PluginDef*);
static void init_static(unsigned int sample_rate, PluginDef*);
static int load_ui_f_static(const UiBuilder& b, int form);
static void compute_static(int count, float *input0, float *output0, PluginDef*);
static int register_params_static(const ParamReg& reg);
static void del_instance(PluginDef *p);
public:
std::vector<Glib::ustring> nam_afile_names;
std::vector<Glib::ustring> nam_bfile_names;
Plugin plugin;
NeuralAmpMulti(ParamMap& param_, std::string id, ParallelThread *pro_, sigc::slot<void> sync);
~NeuralAmpMulti();
};
/****************************************************************
** class RTNeural
*/
class RtNeural: public PluginDef {
private:
RTNeural::Model<float> *model;
ParamMap& param;
gx_resample::FixedRateResampler smp;
Ramp ramp;
sigc::slot<void> sync;
volatile int ready;
int fSampleRate;
int mSampleRate;
float fVslider0;
float fVslider1;
double fRec0[2];
double fRec1[2];
int need_resample;
bool is_inited;
float filelist;
Glib::ustring load_file;
Glib::ustring current_file;
Glib::ustring load_path;
std::string idstring;
void clear_state_f();
int load_ui_f(const UiBuilder& b, int form);
void init(unsigned int sample_rate);
void compute(int count, float *input0, float *output0);
void get_samplerate(std::string config_file);
void load_json_file();
void load_json_file_impl();
void create_rtneural_filelist();
int register_par(const ParamReg& reg);
static void clear_state_f_static(PluginDef*);
static void init_static(unsigned int sample_rate, PluginDef*);
static int load_ui_f_static(const UiBuilder& b, int form);
static void compute_static(int count, float *input0, float *output0, PluginDef*);
static int register_params_static(const ParamReg& reg);
static void del_instance(PluginDef *p);
public:
std::vector<Glib::ustring> rtneural_file_names;
Plugin plugin;
RtNeural(ParamMap& param_, std::string id, sigc::slot<void> sync);
~RtNeural();
};
/****************************************************************
** class RTNeuralMulti
*/
class RtNeuralMulti: public PluginDef {
private:
RTNeural::Model<float> *modela;
RTNeural::Model<float> *modelb;
ParamMap& param;
ParallelThread* pro;
gx_resample::FixedRateResampler smpa;
gx_resample::FixedRateResampler smpb;
Ramp rampA;
Ramp rampB;
sigc::slot<void> sync;
volatile int ready;
int fSampleRate;
int maSampleRate;
int mbSampleRate;
float *buf;
int nframes;
float fVslider0;
float fVslider01;
float fVslider1;
float fVslider2;
int IOTA0;
double fDec0[16384];
float fVslider02;
double fDel4[2];
double fDel0[2];
double fDel1[2];
double fDel2[2];
double fDel3[2];
double fRec0[2];
double fRec01[2];
double fRec1[2];
double fRec2[2];
int need_aresample;
int need_bresample;
bool is_inited;
float afilelist;
float bfilelist;
Glib::ustring load_afile;
Glib::ustring current_afile;
Glib::ustring load_bfile;
Glib::ustring current_bfile;
Glib::ustring load_apath;
Glib::ustring load_bpath;
std::string idstring;
void clear_state_f();
int load_ui_f(const UiBuilder& b, int form);
void init(unsigned int sample_rate);
void processDelay(int count, float *buf);
void processModelA(int count, float *buf);
void processModelB();
void compute(int count, float *input0, float *output0);
void get_samplerate(std::string config_file, int *mSampleRate);
void load_json_afile();
void load_json_afile_impl();
void load_json_bfile();
void load_json_bfile_impl();
void create_rtneural_afilelist();
void create_rtneural_bfilelist();
int register_par(const ParamReg& reg);
static void clear_state_f_static(PluginDef*);
static void init_static(unsigned int sample_rate, PluginDef*);
static int load_ui_f_static(const UiBuilder& b, int form);
static void compute_static(int count, float *input0, float *output0, PluginDef*);
static int register_params_static(const ParamReg& reg);
static void del_instance(PluginDef *p);
public:
std::vector<Glib::ustring> rtneural_afile_names;
std::vector<Glib::ustring> rtneural_bfile_names;
Plugin plugin;
RtNeuralMulti(ParamMap& param_, std::string id, ParallelThread *pro_, sigc::slot<void> sync);
~RtNeuralMulti();
};
} // namespace gx_engine
ParallelThread
Definition ParallelThread.h:130
gx_engine::NeuralAmp::fRec1
double fRec1[2]
Definition gx_neural_plugins.h:81
gx_engine::NeuralAmp::register_params_static
static int register_params_static(const ParamReg &reg)
gx_engine::NeuralAmp::create_nam_filelist
void create_nam_filelist()
gx_engine::NeuralAmp::fSampleRate
int fSampleRate
Definition gx_neural_plugins.h:76
gx_engine::NeuralAmp::NeuralAmp
NeuralAmp(ParamMap &param_, std::string id, sigc::slot< void > sync)
gx_engine::NeuralAmp::load_ui_f_static
static int load_ui_f_static(const UiBuilder &b, int form)
gx_engine::NeuralAmp::ramp
Ramp ramp
Definition gx_neural_plugins.h:73
gx_engine::NeuralAmp::load_file
Glib::ustring load_file
Definition gx_neural_plugins.h:86
gx_engine::NeuralAmp::loudness
float loudness
Definition gx_neural_plugins.h:83
gx_engine::NeuralAmp::nam_file_names
std::vector< Glib::ustring > nam_file_names
Definition gx_neural_plugins.h:107
gx_engine::NeuralAmp::clear_state_f
void clear_state_f()
gx_engine::NeuralAmp::is_inited
bool is_inited
Definition gx_neural_plugins.h:84
gx_engine::NeuralAmp::load_nam_file
void load_nam_file()
gx_engine::NeuralAmp::compute
void compute(int count, float *input0, float *output0)
gx_engine::NeuralAmp::model
nam::DSP * model
Definition gx_neural_plugins.h:70
gx_engine::NeuralAmp::init_static
static void init_static(unsigned int sample_rate, PluginDef *)
gx_engine::NeuralAmp::load_ui_f
int load_ui_f(const UiBuilder &b, int form)
gx_engine::NeuralAmp::load_nam_file_impl
void load_nam_file_impl()
gx_engine::NeuralAmp::fRec0
double fRec0[2]
Definition gx_neural_plugins.h:80
gx_engine::NeuralAmp::~NeuralAmp
~NeuralAmp()
gx_engine::NeuralAmp::param
ParamMap & param
Definition gx_neural_plugins.h:71
gx_engine::NeuralAmp::plugin
Plugin plugin
Definition gx_neural_plugins.h:108
gx_engine::NeuralAmp::idstring
std::string idstring
Definition gx_neural_plugins.h:89
gx_engine::NeuralAmp::mSampleRate
int mSampleRate
Definition gx_neural_plugins.h:77
gx_engine::NeuralAmp::init
void init(unsigned int sample_rate)
gx_engine::NeuralAmp::ready
volatile int ready
Definition gx_neural_plugins.h:75
gx_engine::NeuralAmp::compute_static
static void compute_static(int count, float *input0, float *output0, PluginDef *)
gx_engine::NeuralAmp::need_resample
int need_resample
Definition gx_neural_plugins.h:82
gx_engine::NeuralAmp::sync
sigc::slot< void > sync
Definition gx_neural_plugins.h:74
gx_engine::NeuralAmp::smp
gx_resample::FixedRateResampler smp
Definition gx_neural_plugins.h:72
gx_engine::NeuralAmp::load_path
Glib::ustring load_path
Definition gx_neural_plugins.h:88
gx_engine::NeuralAmp::filelist
float filelist
Definition gx_neural_plugins.h:85
gx_engine::NeuralAmp::fVslider1
float fVslider1
Definition gx_neural_plugins.h:79
gx_engine::NeuralAmp::current_file
Glib::ustring current_file
Definition gx_neural_plugins.h:87
gx_engine::NeuralAmp::register_par
int register_par(const ParamReg &reg)
gx_engine::NeuralAmp::del_instance
static void del_instance(PluginDef *p)
gx_engine::NeuralAmp::fVslider0
float fVslider0
Definition gx_neural_plugins.h:78
gx_engine::NeuralAmp::clear_state_f_static
static void clear_state_f_static(PluginDef *)
gx_engine::NeuralAmpMulti::loudnessa
float loudnessa
Definition gx_neural_plugins.h:152
gx_engine::NeuralAmpMulti::rampB
Ramp rampB
Definition gx_neural_plugins.h:126
gx_engine::NeuralAmpMulti::clear_state_f
void clear_state_f()
gx_engine::NeuralAmpMulti::fDel2
double fDel2[2]
Definition gx_neural_plugins.h:144
gx_engine::NeuralAmpMulti::bfilelist
float bfilelist
Definition gx_neural_plugins.h:156
gx_engine::NeuralAmpMulti::current_bfile
Glib::ustring current_bfile
Definition gx_neural_plugins.h:160
gx_engine::NeuralAmpMulti::fDec0
double fDec0[16384]
Definition gx_neural_plugins.h:139
gx_engine::NeuralAmpMulti::smpb
gx_resample::FixedRateResampler smpb
Definition gx_neural_plugins.h:124
gx_engine::NeuralAmpMulti::fVslider2
float fVslider2
Definition gx_neural_plugins.h:137
gx_engine::NeuralAmpMulti::fRec01
double fRec01[2]
Definition gx_neural_plugins.h:147
gx_engine::NeuralAmpMulti::~NeuralAmpMulti
~NeuralAmpMulti()
gx_engine::NeuralAmpMulti::need_aresample
int need_aresample
Definition gx_neural_plugins.h:150
gx_engine::NeuralAmpMulti::load_apath
Glib::ustring load_apath
Definition gx_neural_plugins.h:161
gx_engine::NeuralAmpMulti::fVslider01
float fVslider01
Definition gx_neural_plugins.h:135
gx_engine::NeuralAmpMulti::load_bfile
Glib::ustring load_bfile
Definition gx_neural_plugins.h:159
gx_engine::NeuralAmpMulti::fVslider1
float fVslider1
Definition gx_neural_plugins.h:136
gx_engine::NeuralAmpMulti::processModelB
void processModelB()
gx_engine::NeuralAmpMulti::buf
float * buf
Definition gx_neural_plugins.h:132
gx_engine::NeuralAmpMulti::ready
volatile int ready
Definition gx_neural_plugins.h:128
gx_engine::NeuralAmpMulti::smpa
gx_resample::FixedRateResampler smpa
Definition gx_neural_plugins.h:123
gx_engine::NeuralAmpMulti::param
ParamMap & param
Definition gx_neural_plugins.h:121
gx_engine::NeuralAmpMulti::clear_state_f_static
static void clear_state_f_static(PluginDef *)
gx_engine::NeuralAmpMulti::fDel0
double fDel0[2]
Definition gx_neural_plugins.h:142
gx_engine::NeuralAmpMulti::sync
sigc::slot< void > sync
Definition gx_neural_plugins.h:127
gx_engine::NeuralAmpMulti::fVslider02
float fVslider02
Definition gx_neural_plugins.h:140
gx_engine::NeuralAmpMulti::nam_afile_names
std::vector< Glib::ustring > nam_afile_names
Definition gx_neural_plugins.h:187
gx_engine::NeuralAmpMulti::NeuralAmpMulti
NeuralAmpMulti(ParamMap &param_, std::string id, ParallelThread *pro_, sigc::slot< void > sync)
gx_engine::NeuralAmpMulti::compute
void compute(int count, float *input0, float *output0)
gx_engine::NeuralAmpMulti::processDelay
void processDelay(int count, float *buf)
gx_engine::NeuralAmpMulti::rampA
Ramp rampA
Definition gx_neural_plugins.h:125
gx_engine::NeuralAmpMulti::load_nam_afile_impl
void load_nam_afile_impl()
gx_engine::NeuralAmpMulti::nframes
int nframes
Definition gx_neural_plugins.h:133
gx_engine::NeuralAmpMulti::modela
nam::DSP * modela
Definition gx_neural_plugins.h:119
gx_engine::NeuralAmpMulti::loudnessb
float loudnessb
Definition gx_neural_plugins.h:153
gx_engine::NeuralAmpMulti::modelb
nam::DSP * modelb
Definition gx_neural_plugins.h:120
gx_engine::NeuralAmpMulti::maSampleRate
int maSampleRate
Definition gx_neural_plugins.h:130
gx_engine::NeuralAmpMulti::load_nam_bfile
void load_nam_bfile()
gx_engine::NeuralAmpMulti::load_ui_f
int load_ui_f(const UiBuilder &b, int form)
gx_engine::NeuralAmpMulti::compute_static
static void compute_static(int count, float *input0, float *output0, PluginDef *)
gx_engine::NeuralAmpMulti::create_nam_afilelist
void create_nam_afilelist()
gx_engine::NeuralAmpMulti::load_nam_afile
void load_nam_afile()
gx_engine::NeuralAmpMulti::is_inited
bool is_inited
Definition gx_neural_plugins.h:154
gx_engine::NeuralAmpMulti::fSampleRate
int fSampleRate
Definition gx_neural_plugins.h:129
gx_engine::NeuralAmpMulti::need_bresample
int need_bresample
Definition gx_neural_plugins.h:151
gx_engine::NeuralAmpMulti::idstring
std::string idstring
Definition gx_neural_plugins.h:163
gx_engine::NeuralAmpMulti::IOTA0
int IOTA0
Definition gx_neural_plugins.h:138
gx_engine::NeuralAmpMulti::fRec1
double fRec1[2]
Definition gx_neural_plugins.h:148
gx_engine::NeuralAmpMulti::fDel4
double fDel4[2]
Definition gx_neural_plugins.h:141
gx_engine::NeuralAmpMulti::mbSampleRate
int mbSampleRate
Definition gx_neural_plugins.h:131
gx_engine::NeuralAmpMulti::current_afile
Glib::ustring current_afile
Definition gx_neural_plugins.h:158
gx_engine::NeuralAmpMulti::load_nam_bfile_impl
void load_nam_bfile_impl()
gx_engine::NeuralAmpMulti::fRec2
double fRec2[2]
Definition gx_neural_plugins.h:149
gx_engine::NeuralAmpMulti::register_params_static
static int register_params_static(const ParamReg &reg)
gx_engine::NeuralAmpMulti::init_static
static void init_static(unsigned int sample_rate, PluginDef *)
gx_engine::NeuralAmpMulti::load_afile
Glib::ustring load_afile
Definition gx_neural_plugins.h:157
gx_engine::NeuralAmpMulti::pro
ParallelThread * pro
Definition gx_neural_plugins.h:122
gx_engine::NeuralAmpMulti::fRec0
double fRec0[2]
Definition gx_neural_plugins.h:146
gx_engine::NeuralAmpMulti::fVslider0
float fVslider0
Definition gx_neural_plugins.h:134
gx_engine::NeuralAmpMulti::load_ui_f_static
static int load_ui_f_static(const UiBuilder &b, int form)
gx_engine::NeuralAmpMulti::fDel1
double fDel1[2]
Definition gx_neural_plugins.h:143
gx_engine::NeuralAmpMulti::del_instance
static void del_instance(PluginDef *p)
gx_engine::NeuralAmpMulti::create_nam_bfilelist
void create_nam_bfilelist()
gx_engine::NeuralAmpMulti::processModelA
void processModelA(int count, float *buf)
gx_engine::NeuralAmpMulti::plugin
Plugin plugin
Definition gx_neural_plugins.h:189
gx_engine::NeuralAmpMulti::init
void init(unsigned int sample_rate)
gx_engine::NeuralAmpMulti::afilelist
float afilelist
Definition gx_neural_plugins.h:155
gx_engine::NeuralAmpMulti::fDel3
double fDel3[2]
Definition gx_neural_plugins.h:145
gx_engine::NeuralAmpMulti::nam_bfile_names
std::vector< Glib::ustring > nam_bfile_names
Definition gx_neural_plugins.h:188
gx_engine::NeuralAmpMulti::register_par
int register_par(const ParamReg &reg)
gx_engine::NeuralAmpMulti::load_bpath
Glib::ustring load_bpath
Definition gx_neural_plugins.h:162
gx_engine::ParamMap
Definition gx_parameter.h:535
gx_engine::Plugin
Definition gx_pluginloader.h:45
gx_engine::Ramp
Definition gx_neural_plugins.h:39
gx_engine::Ramp::mode
int mode
Definition gx_neural_plugins.h:41
gx_engine::Ramp::startRampDown
void startRampDown()
gx_engine::Ramp::~Ramp
~Ramp()
Definition gx_neural_plugins.h:55
gx_engine::Ramp::init
void init(unsigned int rate)
gx_engine::Ramp::ramp_up
float ramp_up
Definition gx_neural_plugins.h:43
gx_engine::Ramp::checkRampMode
void checkRampMode()
gx_engine::Ramp::Ramp
Ramp()
Definition gx_neural_plugins.h:54
gx_engine::Ramp::OFF
@ OFF
Definition gx_neural_plugins.h:48
gx_engine::Ramp::DOWN
@ DOWN
Definition gx_neural_plugins.h:50
gx_engine::Ramp::DEAD
@ DEAD
Definition gx_neural_plugins.h:51
gx_engine::Ramp::UP
@ UP
Definition gx_neural_plugins.h:49
gx_engine::Ramp::ramp_down
float ramp_down
Definition gx_neural_plugins.h:42
gx_engine::Ramp::rampUp
void rampUp(int count, float *output)
gx_engine::Ramp::ramp_step
float ramp_step
Definition gx_neural_plugins.h:44
gx_engine::Ramp::rampDown
void rampDown(int count, float *output)
gx_engine::Ramp::ramp_step_impl
float ramp_step_impl
Definition gx_neural_plugins.h:45
gx_engine::RtNeural::idstring
std::string idstring
Definition gx_neural_plugins.h:218
gx_engine::RtNeural::load_ui_f_static
static int load_ui_f_static(const UiBuilder &b, int form)
gx_engine::RtNeural::RtNeural
RtNeural(ParamMap &param_, std::string id, sigc::slot< void > sync)
gx_engine::RtNeural::compute
void compute(int count, float *input0, float *output0)
gx_engine::RtNeural::load_json_file_impl
void load_json_file_impl()
gx_engine::RtNeural::rtneural_file_names
std::vector< Glib::ustring > rtneural_file_names
Definition gx_neural_plugins.h:237
gx_engine::RtNeural::need_resample
int need_resample
Definition gx_neural_plugins.h:212
gx_engine::RtNeural::fRec0
double fRec0[2]
Definition gx_neural_plugins.h:210
gx_engine::RtNeural::clear_state_f
void clear_state_f()
gx_engine::RtNeural::current_file
Glib::ustring current_file
Definition gx_neural_plugins.h:216
gx_engine::RtNeural::fVslider0
float fVslider0
Definition gx_neural_plugins.h:208
gx_engine::RtNeural::smp
gx_resample::FixedRateResampler smp
Definition gx_neural_plugins.h:202
gx_engine::RtNeural::load_ui_f
int load_ui_f(const UiBuilder &b, int form)
gx_engine::RtNeural::sync
sigc::slot< void > sync
Definition gx_neural_plugins.h:204
gx_engine::RtNeural::compute_static
static void compute_static(int count, float *input0, float *output0, PluginDef *)
gx_engine::RtNeural::load_json_file
void load_json_file()
gx_engine::RtNeural::fVslider1
float fVslider1
Definition gx_neural_plugins.h:209
gx_engine::RtNeural::register_par
int register_par(const ParamReg &reg)
gx_engine::RtNeural::init_static
static void init_static(unsigned int sample_rate, PluginDef *)
gx_engine::RtNeural::ready
volatile int ready
Definition gx_neural_plugins.h:205
gx_engine::RtNeural::param
ParamMap & param
Definition gx_neural_plugins.h:201
gx_engine::RtNeural::create_rtneural_filelist
void create_rtneural_filelist()
gx_engine::RtNeural::register_params_static
static int register_params_static(const ParamReg &reg)
gx_engine::RtNeural::del_instance
static void del_instance(PluginDef *p)
gx_engine::RtNeural::fRec1
double fRec1[2]
Definition gx_neural_plugins.h:211
gx_engine::RtNeural::is_inited
bool is_inited
Definition gx_neural_plugins.h:213
gx_engine::RtNeural::~RtNeural
~RtNeural()
gx_engine::RtNeural::load_file
Glib::ustring load_file
Definition gx_neural_plugins.h:215
gx_engine::RtNeural::init
void init(unsigned int sample_rate)
gx_engine::RtNeural::plugin
Plugin plugin
Definition gx_neural_plugins.h:238
gx_engine::RtNeural::get_samplerate
void get_samplerate(std::string config_file)
gx_engine::RtNeural::clear_state_f_static
static void clear_state_f_static(PluginDef *)
gx_engine::RtNeural::filelist
float filelist
Definition gx_neural_plugins.h:214
gx_engine::RtNeural::model
RTNeural::Model< float > * model
Definition gx_neural_plugins.h:200
gx_engine::RtNeural::load_path
Glib::ustring load_path
Definition gx_neural_plugins.h:217
gx_engine::RtNeural::fSampleRate
int fSampleRate
Definition gx_neural_plugins.h:206
gx_engine::RtNeural::mSampleRate
int mSampleRate
Definition gx_neural_plugins.h:207
gx_engine::RtNeural::ramp
Ramp ramp
Definition gx_neural_plugins.h:203
gx_engine::RtNeuralMulti::mbSampleRate
int mbSampleRate
Definition gx_neural_plugins.h:261
gx_engine::RtNeuralMulti::load_bfile
Glib::ustring load_bfile
Definition gx_neural_plugins.h:287
gx_engine::RtNeuralMulti::smpa
gx_resample::FixedRateResampler smpa
Definition gx_neural_plugins.h:253
gx_engine::RtNeuralMulti::param
ParamMap & param
Definition gx_neural_plugins.h:251
gx_engine::RtNeuralMulti::create_rtneural_bfilelist
void create_rtneural_bfilelist()
gx_engine::RtNeuralMulti::fSampleRate
int fSampleRate
Definition gx_neural_plugins.h:259
gx_engine::RtNeuralMulti::fDel2
double fDel2[2]
Definition gx_neural_plugins.h:274
gx_engine::RtNeuralMulti::load_json_bfile
void load_json_bfile()
gx_engine::RtNeuralMulti::ready
volatile int ready
Definition gx_neural_plugins.h:258
gx_engine::RtNeuralMulti::load_json_afile
void load_json_afile()
gx_engine::RtNeuralMulti::fRec1
double fRec1[2]
Definition gx_neural_plugins.h:278
gx_engine::RtNeuralMulti::modela
RTNeural::Model< float > * modela
Definition gx_neural_plugins.h:249
gx_engine::RtNeuralMulti::fRec01
double fRec01[2]
Definition gx_neural_plugins.h:277
gx_engine::RtNeuralMulti::compute
void compute(int count, float *input0, float *output0)
gx_engine::RtNeuralMulti::clear_state_f_static
static void clear_state_f_static(PluginDef *)
gx_engine::RtNeuralMulti::bfilelist
float bfilelist
Definition gx_neural_plugins.h:284
gx_engine::RtNeuralMulti::fVslider02
float fVslider02
Definition gx_neural_plugins.h:270
gx_engine::RtNeuralMulti::modelb
RTNeural::Model< float > * modelb
Definition gx_neural_plugins.h:250
gx_engine::RtNeuralMulti::afilelist
float afilelist
Definition gx_neural_plugins.h:283
gx_engine::RtNeuralMulti::rampB
Ramp rampB
Definition gx_neural_plugins.h:256
gx_engine::RtNeuralMulti::fRec2
double fRec2[2]
Definition gx_neural_plugins.h:279
gx_engine::RtNeuralMulti::clear_state_f
void clear_state_f()
gx_engine::RtNeuralMulti::fDel1
double fDel1[2]
Definition gx_neural_plugins.h:273
gx_engine::RtNeuralMulti::create_rtneural_afilelist
void create_rtneural_afilelist()
gx_engine::RtNeuralMulti::processModelA
void processModelA(int count, float *buf)
gx_engine::RtNeuralMulti::fVslider01
float fVslider01
Definition gx_neural_plugins.h:265
gx_engine::RtNeuralMulti::current_afile
Glib::ustring current_afile
Definition gx_neural_plugins.h:286
gx_engine::RtNeuralMulti::sync
sigc::slot< void > sync
Definition gx_neural_plugins.h:257
gx_engine::RtNeuralMulti::register_params_static
static int register_params_static(const ParamReg &reg)
gx_engine::RtNeuralMulti::maSampleRate
int maSampleRate
Definition gx_neural_plugins.h:260
gx_engine::RtNeuralMulti::fDel0
double fDel0[2]
Definition gx_neural_plugins.h:272
gx_engine::RtNeuralMulti::smpb
gx_resample::FixedRateResampler smpb
Definition gx_neural_plugins.h:254
gx_engine::RtNeuralMulti::del_instance
static void del_instance(PluginDef *p)
gx_engine::RtNeuralMulti::load_ui_f
int load_ui_f(const UiBuilder &b, int form)
gx_engine::RtNeuralMulti::rtneural_bfile_names
std::vector< Glib::ustring > rtneural_bfile_names
Definition gx_neural_plugins.h:317
gx_engine::RtNeuralMulti::load_json_bfile_impl
void load_json_bfile_impl()
gx_engine::RtNeuralMulti::nframes
int nframes
Definition gx_neural_plugins.h:263
gx_engine::RtNeuralMulti::fVslider2
float fVslider2
Definition gx_neural_plugins.h:267
gx_engine::RtNeuralMulti::fDel4
double fDel4[2]
Definition gx_neural_plugins.h:271
gx_engine::RtNeuralMulti::processDelay
void processDelay(int count, float *buf)
gx_engine::RtNeuralMulti::register_par
int register_par(const ParamReg &reg)
gx_engine::RtNeuralMulti::load_ui_f_static
static int load_ui_f_static(const UiBuilder &b, int form)
gx_engine::RtNeuralMulti::processModelB
void processModelB()
gx_engine::RtNeuralMulti::get_samplerate
void get_samplerate(std::string config_file, int *mSampleRate)
gx_engine::RtNeuralMulti::load_json_afile_impl
void load_json_afile_impl()
gx_engine::RtNeuralMulti::fVslider0
float fVslider0
Definition gx_neural_plugins.h:264
gx_engine::RtNeuralMulti::rtneural_afile_names
std::vector< Glib::ustring > rtneural_afile_names
Definition gx_neural_plugins.h:316
gx_engine::RtNeuralMulti::is_inited
bool is_inited
Definition gx_neural_plugins.h:282
gx_engine::RtNeuralMulti::idstring
std::string idstring
Definition gx_neural_plugins.h:291
gx_engine::RtNeuralMulti::RtNeuralMulti
RtNeuralMulti(ParamMap &param_, std::string id, ParallelThread *pro_, sigc::slot< void > sync)
gx_engine::RtNeuralMulti::fVslider1
float fVslider1
Definition gx_neural_plugins.h:266
gx_engine::RtNeuralMulti::fDec0
double fDec0[16384]
Definition gx_neural_plugins.h:269
gx_engine::RtNeuralMulti::init_static
static void init_static(unsigned int sample_rate, PluginDef *)
gx_engine::RtNeuralMulti::~RtNeuralMulti
~RtNeuralMulti()
gx_engine::RtNeuralMulti::init
void init(unsigned int sample_rate)
gx_engine::RtNeuralMulti::load_apath
Glib::ustring load_apath
Definition gx_neural_plugins.h:289
gx_engine::RtNeuralMulti::need_bresample
int need_bresample
Definition gx_neural_plugins.h:281
gx_engine::RtNeuralMulti::pro
ParallelThread * pro
Definition gx_neural_plugins.h:252
gx_engine::RtNeuralMulti::current_bfile
Glib::ustring current_bfile
Definition gx_neural_plugins.h:288
gx_engine::RtNeuralMulti::load_afile
Glib::ustring load_afile
Definition gx_neural_plugins.h:285
gx_engine::RtNeuralMulti::IOTA0
int IOTA0
Definition gx_neural_plugins.h:268
gx_engine::RtNeuralMulti::buf
float * buf
Definition gx_neural_plugins.h:262
gx_engine::RtNeuralMulti::fRec0
double fRec0[2]
Definition gx_neural_plugins.h:276
gx_engine::RtNeuralMulti::compute_static
static void compute_static(int count, float *input0, float *output0, PluginDef *)
gx_engine::RtNeuralMulti::fDel3
double fDel3[2]
Definition gx_neural_plugins.h:275
gx_engine::RtNeuralMulti::need_aresample
int need_aresample
Definition gx_neural_plugins.h:280
gx_engine::RtNeuralMulti::load_bpath
Glib::ustring load_bpath
Definition gx_neural_plugins.h:290
gx_engine::RtNeuralMulti::plugin
Plugin plugin
Definition gx_neural_plugins.h:318
gx_engine::RtNeuralMulti::rampA
Ramp rampA
Definition gx_neural_plugins.h:255
gx_jack::GxJack
Definition gx_jack.h:168
gx_resample::FixedRateResampler
Definition gx_resampler.h:65
gx_engine
Definition gx_convolver.h:37
gx_jack
Definition gx_internal_plugins.h:27
ParamReg
Parameter registration function pointers.
Definition gx_plugin.h:141
PluginDef
Definition gx_plugin.h:195
UiBuilder
Definition gx_plugin.h:63