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.

45 lines
1.2KB

  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. /**LFO for some of the Effect objects
  14. * \todo see if this should inherit LFO*/
  15. class EffectLFO
  16. {
  17. public:
  18. EffectLFO(float srate_f, float bufsize_f);
  19. ~EffectLFO();
  20. void effectlfoout(float *outl, float *outr);
  21. void updateparams(void);
  22. unsigned char Pfreq;
  23. unsigned char Prandomness;
  24. unsigned char PLFOtype;
  25. unsigned char Pstereo; // 64 is centered
  26. private:
  27. float getlfoshape(float x);
  28. float xl, xr;
  29. float incx;
  30. float ampl1, ampl2, ampr1, ampr2; //necessary for "randomness"
  31. float lfornd;
  32. char lfotype;
  33. // current setup
  34. float samplerate_f;
  35. float buffersize_f;
  36. };
  37. #endif