SmartGuitarAmp

Guitar plugin made with JUCE that uses neural networks to emulate a tube amplifier
Log | Files | Refs | Submodules | README

WaveNetLoader.h (800B)


      1 /*
      2   ==============================================================================
      3 
      4     WaveNetLoader.h
      5     Created: 3 Feb 2019 8:55:31pm
      6     Author:  Eero-Pekka Damskägg
      7 
      8     Modified by keyth72
      9 
     10   ==============================================================================
     11 */
     12 
     13 #pragma once
     14 #include <string>
     15 
     16 #include "../JuceLibraryCode/JuceHeader.h"
     17 
     18 #include "WaveNet.h"
     19 
     20 class WaveNetLoader
     21 {
     22 public:
     23     WaveNetLoader(var jsonFile);
     24     WaveNetLoader(var jsonFile, File configFile);
     25     float levelAdjust;
     26     int numChannels;
     27     int inputChannels;
     28     int outputChannels;
     29     int filterWidth;
     30     std::vector<int> dilations;
     31     std::string activation;
     32     void loadVariables(WaveNet &model);
     33     var current_jsonFile;
     34 private:
     35     std::vector<int> readDilations();
     36     var config;
     37 
     38 };