You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
567B

  1. #pragma once
  2. #include "bogaudio.hpp"
  3. extern Model* modelSwitch;
  4. namespace bogaudio {
  5. struct Switch : Module {
  6. enum ParamsIds {
  7. GATE_PARAM,
  8. NUM_PARAMS
  9. };
  10. enum InputsIds {
  11. GATE_INPUT,
  12. HIGH1_INPUT,
  13. LOW1_INPUT,
  14. HIGH2_INPUT,
  15. LOW2_INPUT,
  16. NUM_INPUTS
  17. };
  18. enum OutputsIds {
  19. OUT1_OUTPUT,
  20. OUT2_OUTPUT,
  21. NUM_OUTPUTS
  22. };
  23. enum LightsIds {
  24. NUM_LIGHTS
  25. };
  26. SchmittTrigger _trigger;
  27. Switch() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
  28. onReset();
  29. }
  30. void onReset() override;
  31. void step() override;
  32. };
  33. } // namespace bogaudio