distcon.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (c) 1983-2013 Trevor Wishart and Composers Desktop Project Ltd
  3. * http://www.trevorwishart.co.uk
  4. * http://www.composersdesktop.com
  5. *
  6. This file is part of the CDP System.
  7. The CDP System is free software; you can redistribute it
  8. and/or modify it under the terms of the GNU Lesser General Public
  9. License as published by the Free Software Foundation; either
  10. version 2.1 of the License, or (at your option) any later version.
  11. The CDP System is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU Lesser General Public License for more details.
  15. You should have received a copy of the GNU Lesser General Public
  16. License along with the CDP System; if not, write to the Free Software
  17. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  18. 02111-1307 USA
  19. *
  20. */
  21. /************************ DISTORT *************************/
  22. /* floatsam version*/
  23. /* CONSTANTS FOR DISTORT */
  24. /*#define CLIPMAX ((short)24000)*/
  25. #define FCLIPMAX (0.7325f)
  26. #define SINETABLEN (1024)
  27. #define TABLEN (1024.0)
  28. #define PULSEWIDTH (0.001) /* secs */
  29. #define MAXWIDTH (6.0)
  30. /* CONSTANTS FOR DISTORTA, DISTORTTH, DISTORTF */
  31. #define MAXWAVELEN (.5) /* seconds */
  32. /* CONSTANTS FOR DISTORTH */
  33. /* CONSTANTS FOR DISTORTF */
  34. #define MIN_SCALE (2.0)
  35. /* CONSTANTS FOR DISTORT_RPT */
  36. #define MULTIPLY (0)
  37. #define INTERPOLATE (1)
  38. #define GRP_MULTIPLY (2)
  39. /* CONSTANTS FOR DISTORT_DEL */
  40. #define LOSE (0)
  41. #define KEEP (1)
  42. /* CONSTANTS FOR DISTORT_PCH */
  43. #define MAXOCTVAR (8.0)
  44. #define DEFAULT_RSTEP (64)
  45. #define MINWAVELEN (8.0) /* samples */
  46. #define DISTORT_MAX_POWFAC (40.0)
  47. #define DISTORTE_MIN_EXPON (0.02)
  48. #define DISTORTE_MAX_EXPON (50.0)
  49. #define DISTORTH_MAX_PRESCALE (200.0)
  50. #define CYCLIM_DFLTFRQ (1000.0)