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.

44 lines
618B

  1. #pragma once
  2. /**
  3. * Thin wrapper around rack MinBLEP
  4. * to make porting easier
  5. */
  6. #ifdef __V1
  7. class SqBlep
  8. {
  9. public:
  10. void jump(float crossing, float jump)
  11. {
  12. }
  13. float shift()
  14. {
  15. return 0;
  16. }
  17. };
  18. #endif
  19. #ifndef __V1
  20. #include "dsp/minblep.hpp"
  21. class SqBlep
  22. {
  23. public:
  24. SqBlep()
  25. {
  26. this->minBLEP.minblep = rack::minblep_16_32;
  27. this->minBLEP.oversample = 32;
  28. }
  29. void jump(float crossing, float jump)
  30. {
  31. minBLEP.jump(crossing, jump);
  32. }
  33. float shift()
  34. {
  35. return minBLEP.shift();
  36. }
  37. private:
  38. rack::MinBLEP<16> minBLEP;
  39. };
  40. #endif