BogaudioModules

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

Switch81.hpp (1331B)


      1 #pragma once
      2 
      3 #include "bogaudio.hpp"
      4 #include "matrix_base.hpp"
      5 
      6 extern Model* modelSwitch81;
      7 
      8 namespace bogaudio {
      9 
     10 struct Switch81 : SwitchMatrixModule {
     11 	enum ParamsIds {
     12 		MIX1_PARAM,
     13 		MIX2_PARAM,
     14 		MIX3_PARAM,
     15 		MIX4_PARAM,
     16 		MIX5_PARAM,
     17 		MIX6_PARAM,
     18 		MIX7_PARAM,
     19 		MIX8_PARAM,
     20 		NUM_PARAMS
     21 	};
     22 
     23 	enum InputsIds {
     24 		IN1_INPUT,
     25 		IN2_INPUT,
     26 		IN3_INPUT,
     27 		IN4_INPUT,
     28 		IN5_INPUT,
     29 		IN6_INPUT,
     30 		IN7_INPUT,
     31 		IN8_INPUT,
     32 		NUM_INPUTS
     33 	};
     34 
     35 	enum OutputsIds {
     36 		OUT_OUTPUT,
     37 		NUM_OUTPUTS
     38 	};
     39 
     40 	Switch81() : SwitchMatrixModule(8, 1, MIX1_PARAM, IN1_INPUT, OUT_OUTPUT) {
     41 		config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS);
     42 		configSwitchParam(MIX1_PARAM, "Mix 1");
     43 		configSwitchParam(MIX2_PARAM, "Mix 2");
     44 		configSwitchParam(MIX3_PARAM, "Mix 3");
     45 		configSwitchParam(MIX4_PARAM, "Mix 4");
     46 		configSwitchParam(MIX5_PARAM, "Mix 5");
     47 		configSwitchParam(MIX6_PARAM, "Mix 6");
     48 		configSwitchParam(MIX7_PARAM, "Mix 7");
     49 		configSwitchParam(MIX8_PARAM, "Mix 8");
     50 
     51 		configInput(IN1_INPUT, "Signal 1");
     52 		configInput(IN2_INPUT, "Signal 2");
     53 		configInput(IN3_INPUT, "Signal 3");
     54 		configInput(IN4_INPUT, "Signal 4");
     55 		configInput(IN5_INPUT, "Signal 5");
     56 		configInput(IN6_INPUT, "Signal 6");
     57 		configInput(IN7_INPUT, "Signal 7");
     58 		configInput(IN8_INPUT, "Signal 8");
     59 
     60 		configOutput(OUT_OUTPUT, "Signal");
     61 	}
     62 };
     63 
     64 } // namespace bogaudio