|
- #pragma once
-
- #include "bogaudio.hpp"
- #include "dsp/signal.hpp"
-
- using namespace bogaudio::dsp;
-
- extern Model* modelUMix;
-
- namespace bogaudio {
-
- struct UMix : Module {
- enum ParamsIds {
- LEVEL_PARAM,
- NUM_PARAMS
- };
-
- enum InputsIds {
- IN1_INPUT,
- IN2_INPUT,
- IN3_INPUT,
- IN4_INPUT,
- IN5_INPUT,
- IN6_INPUT,
- IN7_INPUT,
- IN8_INPUT,
- NUM_INPUTS
- };
-
- enum OutputsIds {
- OUT_OUTPUT,
- NUM_OUTPUTS
- };
-
- enum LightsIds {
- NUM_LIGHTS
- };
-
- bool _sum = true;
- Saturator _saturator;
-
- UMix() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
- }
-
- json_t* toJson() override;
- void fromJson(json_t* root) override;
- void step() override;
- };
-
- } // namespace bogaudio
|