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.

47 lines
617B

  1. #pragma once
  2. #include "bogaudio.hpp"
  3. #include "dsp/pitch.hpp"
  4. using namespace bogaudio::dsp;
  5. extern Model* modelDetune;
  6. namespace bogaudio {
  7. struct Detune : Module {
  8. enum ParamsIds {
  9. CENTS_PARAM,
  10. NUM_PARAMS
  11. };
  12. enum InputsIds {
  13. CV_INPUT,
  14. IN_INPUT,
  15. NUM_INPUTS
  16. };
  17. enum OutputsIds {
  18. THRU_OUTPUT,
  19. OUT_PLUS_OUTPUT,
  20. OUT_MINUS_OUTPUT,
  21. NUM_OUTPUTS
  22. };
  23. enum LightsIds {
  24. NUM_LIGHTS
  25. };
  26. float _cents = -1.0f;
  27. float _inCV = -1000.0f;
  28. float _plusCV;
  29. float _minusCV;
  30. Detune() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
  31. }
  32. void step() override;
  33. };
  34. } // namespace bogaudio