BogaudioModules

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

Mult.hpp (815B)


      1 #pragma once
      2 
      3 #include "bogaudio.hpp"
      4 
      5 extern Model* modelMult;
      6 
      7 namespace bogaudio {
      8 
      9 struct Mult : BGModule {
     10 	enum ParamsIds {
     11 		NUM_PARAMS
     12 	};
     13 
     14 	enum InputsIds {
     15 		INA_INPUT,
     16 		INB_INPUT,
     17 		NUM_INPUTS
     18 	};
     19 
     20 	enum OutputsIds {
     21 		OUTA1_OUTPUT,
     22 		OUTA2_OUTPUT,
     23 		OUTA3_OUTPUT,
     24 		OUTB1_OUTPUT,
     25 		OUTB2_OUTPUT,
     26 		OUTB3_OUTPUT,
     27 		NUM_OUTPUTS
     28 	};
     29 
     30 	Mult() {
     31 		config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS);
     32 
     33 		configInput(INA_INPUT, "Signal A");
     34 		configInput(INB_INPUT, "Signal B");
     35 
     36 		configOutput(OUTA1_OUTPUT, "Signal A");
     37 		configOutput(OUTA2_OUTPUT, "Signal A");
     38 		configOutput(OUTA3_OUTPUT, "Signal A");
     39 		configOutput(OUTB1_OUTPUT, "Signal B");
     40 		configOutput(OUTB2_OUTPUT, "Signal B");
     41 		configOutput(OUTB3_OUTPUT, "Signal B");
     42 	}
     43 
     44 	void processAll(const ProcessArgs& args) override;
     45 };
     46 
     47 } // namespace bogaudio