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.

42 lines
561B

  1. #pragma once
  2. #include "bogaudio.hpp"
  3. #include "dsp/signal.hpp"
  4. using namespace bogaudio::dsp;
  5. extern Model* modelBlank6;
  6. namespace bogaudio {
  7. struct Blank6 : Module {
  8. enum ParamsIds {
  9. NUM_PARAMS
  10. };
  11. enum InputsIds {
  12. IN_INPUT,
  13. NUM_INPUTS
  14. };
  15. enum OutputsIds {
  16. NUM_OUTPUTS
  17. };
  18. enum LightsIds {
  19. NUM_LIGHTS
  20. };
  21. RootMeanSquare _rms;
  22. float _level = 0.0f;
  23. Blank6() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
  24. onSampleRateChange();
  25. }
  26. void onSampleRateChange() override;
  27. void step() override;
  28. };
  29. } // namespace bogaudio