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.

52 lines
750B

  1. #pragma once
  2. #include "bogaudio.hpp"
  3. extern Model* modelManual;
  4. namespace bogaudio {
  5. struct Manual : TriggerOnLoadModule {
  6. enum ParamsIds {
  7. TRIGGER_PARAM,
  8. NUM_PARAMS
  9. };
  10. enum InputsIds {
  11. NUM_INPUTS
  12. };
  13. enum OutputsIds {
  14. OUT1_OUTPUT,
  15. OUT2_OUTPUT,
  16. OUT3_OUTPUT,
  17. OUT4_OUTPUT,
  18. OUT5_OUTPUT,
  19. OUT6_OUTPUT,
  20. OUT7_OUTPUT,
  21. OUT8_OUTPUT,
  22. NUM_OUTPUTS
  23. };
  24. enum LightsIds {
  25. NUM_LIGHTS
  26. };
  27. bool _firstStep = true;
  28. SchmittTrigger _trigger;
  29. PulseGenerator _pulse;
  30. Manual() : TriggerOnLoadModule(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
  31. _triggerOnLoad = false;
  32. onReset();
  33. }
  34. void onReset() override;
  35. void step() override;
  36. bool shouldTriggerOnNextLoad() override {
  37. return true;
  38. }
  39. };
  40. } // namespace bogaudio