Audio plugin host https://kx.studio/carla
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.

EffectLFO.h 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. EffectLFO.h - Stereo LFO used by some effects
  4. Copyright (C) 2002-2005 Nasca Octavian Paul
  5. Author: Nasca Octavian Paul
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or (at your option) any later version.
  10. */
  11. #ifndef EFFECT_LFO_H
  12. #define EFFECT_LFO_H
  13. namespace zyncarla {
  14. /**LFO for some of the Effect objects
  15. * \todo see if this should inherit LFO*/
  16. class EffectLFO
  17. {
  18. public:
  19. EffectLFO(float srate_f, float bufsize_f);
  20. ~EffectLFO();
  21. void effectlfoout(float *outl, float *outr);
  22. void updateparams(void);
  23. unsigned char Pfreq;
  24. unsigned char Prandomness;
  25. unsigned char PLFOtype;
  26. unsigned char Pstereo; // 64 is centered
  27. private:
  28. float getlfoshape(float x);
  29. float xl, xr;
  30. float incx;
  31. float ampl1, ampl2, ampr1, ampr2; //necessary for "randomness"
  32. float lfornd;
  33. char lfotype;
  34. // current setup
  35. float samplerate_f;
  36. float buffersize_f;
  37. };
  38. }
  39. #endif