extdcon.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. /******************************** EXTEND ******************************/
  22. /* CONSTANTS FOR ZIGZAG */
  23. #define ZIG_SPLICELEN (15.0)
  24. #define ZIG_MIN_UNSPLICED (1.0)
  25. #define ZIG_EXPON (1.0)
  26. #define MIN_ZIGSPLICE (1.0)
  27. #define MAX_ZIGSPLICE (5000.0)
  28. #define DEFAULT_LPSTEP (200.0)
  29. /* CONSTANTS FOR ITERATE */
  30. #define ITER_MAXPSHIFT (12.0)
  31. #define ITER_MAX_DELAY (100.0)
  32. #define ITER_UPSCALE (65536.0)
  33. #define ITER_DNSHIFT (16)
  34. #define ITER_SAFETY (512)
  35. #define DEFAULT_ITER_GAIN (0.0)
  36. #define ST_INTP_SHIFT (3)
  37. #define MN_INTP_SHIFT (4)
  38. #define FIXED_AMP (10) /* added to flags above gives flags below */
  39. #define FIXA_MONO (11)
  40. #define FIXA_STEREO (12)
  41. #define FIXA_ST_INTP_SHIFT (13)
  42. #define FIXA_MN_INTP_SHIFT (14)
  43. /* CONSTANTS FOR DRUNKWALK */
  44. #define DRNK_GRAIN (.002)
  45. #define DRNK_DEFAULT_GSTEP (10.0)
  46. #define DRNK_DEFAULT_CLOKTIK (4.0)
  47. #define DRNK_SPLICE (15.0)
  48. #define DRNK_MIN_SPLICELEN (1.0)
  49. #define DRNK_MAX_SPLICELEN (5000.0)
  50. #define MAX_DRNKTIK (32767.0) /* arbitrary */
  51. #define DEFAULT_MIN_DRNKTIK (10.0)
  52. #define DEFAULT_MAX_DRNKTIK (30.0)
  53. #define DRNK_MAX_OVERLAP (0.99)
  54. /*TW March 2004 */
  55. /* FORM DOUBLETS */
  56. #define SPLICEDUR (5 * MS_TO_SECS)
  57. #define ITX_SPLICELEN (256)
  58. #define ITERATE_EXTEND_BUFSIZE (512 * 512)