envlcon.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. /*************************** ENVELOPE *************************/
  22. #define ENV_DEFAULT_WSIZE (50.0) /* MSECS */
  23. #define MIN_ENV_EXAG (0.01)
  24. #define MAX_ENV_EXAG (100.0)
  25. #define MIN_ENV_ATTEN (0.0)
  26. #define MAX_ENV_ATTEN (1.0)
  27. #define MIN_ENV_LIMIT (0.0)
  28. #define MAX_ENV_LIMIT (ABSMAXSAMP)
  29. #define MIN_ENV_THRESHOLD (0.0)
  30. #define MAX_ENV_THRESHOLD (ABSMAXSAMP)
  31. #define MIN_ENV_TSTRETCH (.001)
  32. #define MAX_ENV_TSTRETCH (1000.0)
  33. #define MAX_ENV_FLATN (5000.0)
  34. #define MAX_ENV_SMOOTH (32767.0)
  35. #define ENV_DEFAULT_EXAGG (2.0)
  36. #define ENV_DEFAULT_ATTEN (0.5)
  37. #define ENV_DEFAULT_LIFT (0.0)
  38. #define ENV_DEFAULT_TSTRETCH (2.0)
  39. #define ENV_DEFAULT_FLATN (4.0)
  40. #define ENV_DEFAULT_GATE (0.3)
  41. #define ENV_DEFAULT_THRESH (0.15)
  42. #define ENV_DEFAULT_MIRROR (0.3)
  43. #define ENV_DEFAULT_TRIGDUR (ENV_DEFAULT_WSIZE * 4.0)
  44. #define ENV_DEFAULT_TRIGRISE (0.15)
  45. #define ENV_DEFAULT_TROFDEL (2.0)
  46. #define ENV_DEFAULT_PKSRCHWIDTH (4.0)
  47. #define ENV_DEFAULT_DATAREDUCE (0.0002)
  48. #define ENV_MIN_ATK_ONSET (5.0)
  49. #define ENV_MAX_ATK_ONSET (32767.0)
  50. #define ENV_DEFAULT_ATK_ONSET (50.0)
  51. #define ENV_ATK_SRCH (200.0)
  52. #define ENV_DEFAULT_ATK_TAIL (200.0)
  53. #define ENV_DEFAULT_ATK_GAIN (2.0)
  54. #define ENV_TIMETYPE_SECS (0)
  55. #define ENV_TIMETYPE_SMPS (1)
  56. #define ENV_TIMETYPE_STSMPS (2)
  57. #define ENVTYPE_LIN (0)
  58. #define ENVTYPE_EXP (1)
  59. #define ENVTYPE_STEEP (2)
  60. #define ENVTYPE_DBL (3)
  61. #define ENV_PLK_FRQ_MIN (20.0)
  62. #define ENV_PLK_FRQ_MAX (10000.0)
  63. #define ENV_PLK_CYCLEN_MIN (2.0)
  64. #define ENV_PLK_CYCLEN_MAX ((double)MAXSHORT)
  65. #define ENV_PLK_CYCLEN_DEFAULT (32.0)
  66. #define ENV_PLK_DECAY_DEFAULT (48.0)
  67. #define ENV_PLK_DECAY_MIN (1.0)
  68. #define ENV_PLK_DECAY_MAX (64.0)
  69. #define ENV_PLK_ENDSAMP_MAXTIME (10.0)
  70. #define ENV_PLK_ONSET_TIME (4.0) /* MS */
  71. #define PLK_INBUF (0)
  72. #define PLK_OUTBUF (1)
  73. #define PLK_OBUFWRAP (2)
  74. #define PLK_BUFEND (3)
  75. #define PLK_INITBUF (4)
  76. #define PLK_PLUKEND (5)
  77. #define ENV_TREM_TABSIZE (4096)
  78. #define ENV_TREM_MAXFRQ (500.0)
  79. #define ENV_TREM_DEFAULT_FRQ (15.0)
  80. #define ENV_TREM_DEFAULT_DEPTH (0.25)
  81. #define ENV_MIN_WSIZE (5.0) /* MSECS */
  82. #define ENV_MAX_WSIZE (10000.0) /* MSECS */
  83. #define MAX_PEAK_SEPARATION (32767) /* Arbitrary */