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.

37 lines
553B

  1. #pragma once
  2. #include "bogaudio.hpp"
  3. #include "disable_output_limit.hpp"
  4. extern Model* modelOffset;
  5. namespace bogaudio {
  6. struct Offset : DisableOutputLimitModule {
  7. enum ParamIds {
  8. OFFSET_PARAM,
  9. SCALE_PARAM,
  10. NUM_PARAMS
  11. };
  12. enum InputIds {
  13. OFFSET_INPUT,
  14. SCALE_INPUT,
  15. IN_INPUT,
  16. NUM_INPUTS
  17. };
  18. enum OutputIds {
  19. OUT_OUTPUT,
  20. NUM_OUTPUTS
  21. };
  22. Offset() : DisableOutputLimitModule(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS) {}
  23. void step() override;
  24. float knobValue(const Param& knob, const Input& cv) const;
  25. };
  26. } // namespace bogaudio