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.

48 lines
681B

  1. #pragma once
  2. #include "bogaudio.hpp"
  3. #include "dsp/noise.hpp"
  4. using namespace bogaudio::dsp;
  5. extern Model* modelNoise;
  6. namespace bogaudio {
  7. struct Noise : Module {
  8. enum ParamsIds {
  9. NUM_PARAMS
  10. };
  11. enum InputsIds {
  12. ABS_INPUT,
  13. NUM_INPUTS
  14. };
  15. enum OutputsIds {
  16. WHITE_OUTPUT,
  17. PINK_OUTPUT,
  18. RED_OUTPUT,
  19. GAUSS_OUTPUT,
  20. ABS_OUTPUT,
  21. BLUE_OUTPUT,
  22. NUM_OUTPUTS
  23. };
  24. enum LightsIds {
  25. NUM_LIGHTS
  26. };
  27. BlueNoiseGenerator _blue;
  28. WhiteNoiseGenerator _white;
  29. PinkNoiseGenerator _pink;
  30. RedNoiseGenerator _red;
  31. GaussianNoiseGenerator _gauss;
  32. Noise() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {}
  33. void step() override;
  34. };
  35. } // namespace bogaudio