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.

26 lines
373B

  1. #pragma once
  2. #include "WaveShaper.hpp"
  3. #define HARDCLIP_GAIN 0.05
  4. namespace dsp {
  5. struct Hardclip : WaveShaper {
  6. Noise *noise;
  7. HQClip *hqclip;
  8. public:
  9. explicit Hardclip(float sr);
  10. void init() override;
  11. void invalidate() override;
  12. void process() override;
  13. double compute(double x) override;
  14. };
  15. }