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.

46 lines
595B

  1. #pragma once
  2. #include "bogaudio.hpp"
  3. #include "dsp/signal.hpp"
  4. using namespace bogaudio::dsp;
  5. extern Model* modelAMRM;
  6. namespace bogaudio {
  7. struct AMRM : Module {
  8. enum ParamsIds {
  9. RECTIFY_PARAM,
  10. DRYWET_PARAM,
  11. NUM_PARAMS
  12. };
  13. enum InputsIds {
  14. MODULATOR_INPUT,
  15. CARRIER_INPUT,
  16. RECTIFY_INPUT,
  17. DRYWET_INPUT,
  18. NUM_INPUTS
  19. };
  20. enum OutputsIds {
  21. OUT_OUTPUT,
  22. RECTIFY_OUTPUT,
  23. NUM_OUTPUTS
  24. };
  25. enum LightsIds {
  26. NUM_LIGHTS
  27. };
  28. Saturator _saturator;
  29. AMRM() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
  30. }
  31. void step() override;
  32. };
  33. } // namespace bogaudio