BogaudioModules

BogaudioModules for VCV Rack
Log | Files | Refs | README | LICENSE

Blank3.hpp (617B)


      1 #pragma once
      2 
      3 #include "bogaudio.hpp"
      4 #include "dsp/filters/utility.hpp"
      5 
      6 using namespace bogaudio::dsp;
      7 
      8 extern Model* modelBlank3;
      9 
     10 namespace bogaudio {
     11 
     12 struct Blank3 : BGModule {
     13 	enum ParamsIds {
     14 		NUM_PARAMS
     15 	};
     16 
     17 	enum InputsIds {
     18 		IN_INPUT,
     19 		NUM_INPUTS
     20 	};
     21 
     22 	enum OutputsIds {
     23 		NUM_OUTPUTS
     24 	};
     25 
     26 	RootMeanSquare _rms;
     27 	bool _haveLevel = false;
     28 	float _level = 0.0f;
     29 
     30 	Blank3() {
     31 		config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS);
     32 
     33 		configInput(IN_INPUT, "Easter egg");
     34 
     35 		sampleRateChange();
     36 	}
     37 
     38 	void sampleRateChange() override;
     39 	void processAll(const ProcessArgs& args) override;
     40 };
     41 
     42 } // namespace bogaudio