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.

51 lines
664B

  1. #pragma once
  2. #include "bogaudio.hpp"
  3. #include "dsp/signal.hpp"
  4. using namespace bogaudio::dsp;
  5. extern Model* modelCVD;
  6. namespace bogaudio {
  7. struct CVD : Module {
  8. enum ParamsIds {
  9. TIME_PARAM,
  10. TIME_SCALE_PARAM,
  11. MIX_PARAM,
  12. NUM_PARAMS
  13. };
  14. enum InputsIds {
  15. TIME_INPUT,
  16. MIX_INPUT,
  17. IN_INPUT,
  18. NUM_INPUTS
  19. };
  20. enum OutputsIds {
  21. OUT_OUTPUT,
  22. NUM_OUTPUTS
  23. };
  24. enum LightsIds {
  25. NUM_LIGHTS
  26. };
  27. DelayLine _delay;
  28. CrossFader _mix;
  29. CVD()
  30. : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS)
  31. , _delay(1000.0f, 10000.0f)
  32. {
  33. onSampleRateChange();
  34. }
  35. void onSampleRateChange() override;
  36. void step() override;
  37. };
  38. } // namespace bogaudio