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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 modify
  7. it under the terms of version 2 of the GNU General Public License
  8. as published by the Free Software Foundation.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License (version 2 or later) for more details.
  13. You should have received a copy of the GNU General Public License (version 2)
  14. along with this program; if not, write to the Free Software Foundation,
  15. Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. */
  17. #ifndef EFFECT_LFO_H
  18. #define EFFECT_LFO_H
  19. /**LFO for some of the Effect objects
  20. * \todo see if this should inherit LFO*/
  21. class EffectLFO
  22. {
  23. public:
  24. EffectLFO(float srate_f, float bufsize_f);
  25. ~EffectLFO();
  26. void effectlfoout(float *outl, float *outr);
  27. void updateparams(void);
  28. unsigned char Pfreq;
  29. unsigned char Prandomness;
  30. unsigned char PLFOtype;
  31. unsigned char Pstereo; // 64 is centered
  32. private:
  33. float getlfoshape(float x);
  34. float xl, xr;
  35. float incx;
  36. float ampl1, ampl2, ampr1, ampr2; //necessary for "randomness"
  37. float lfointensity;
  38. float lfornd;
  39. char lfotype;
  40. // current setup
  41. float samplerate_f;
  42. float buffersize_f;
  43. };
  44. #endif