mixxcon.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. /*********************************** MIX ***********************************/
  22. #define MIX_ACTION_OFF (0)
  23. #define MIX_ACTION_ON (1)
  24. #define MIX_ACTION_REFILL (2)
  25. /*
  26. defined elsewhere....
  27. #define MONO (1)
  28. #define STEREO (2)
  29. */
  30. #define MONO_TO_LEFT (3)
  31. #define MONO_TO_RIGHT (4)
  32. #define MONO_TO_CENTRE (5)
  33. #define MONO_TO_STEREO (6)
  34. #define STEREO_MIRROR (7)
  35. #define STEREO_TO_CENTRE (8)
  36. #define STEREO_TO_LEFT (9)
  37. #define STEREO_TO_RIGHT (10)
  38. #define STEREO_PANNED (11)
  39. #define STEREOLEFT_TO_LEFT (12)
  40. #define STEREOLEFT_TO_RIGHT (13)
  41. #define STEREOLEFT_PANNED (14)
  42. #define STEREORIGHT_TO_LEFT (15)
  43. #define STEREORIGHT_TO_RIGHT (16)
  44. #define STEREORIGHT_PANNED (17)
  45. #define MIX_MAXLINE (7)
  46. #define MIX_MIDLINE (5)
  47. #define MIX_MINLINE (4)
  48. #define MIX_NAMEPOS (0)
  49. #define MIX_TIMEPOS (1)
  50. #define MIX_CHANPOS (2)
  51. #define MIX_LEVELPOS (3)
  52. #define MIX_PANPOS (4)
  53. #define MIX_RLEVELPOS (5)
  54. #define MIX_RPANPOS (6)
  55. #define POSITIONS (32)
  56. #define HALF_POSTNS (16)
  57. #define DEFAULT_DECIMAL_REPRESENTATION (5)
  58. #define MIN_WINFAC (1)
  59. #define MAX_WINFAC (32)
  60. #define MAX_MCR_POWFAC (8.0)
  61. #define MIN_MCR_POWFAC (1.0/MAX_MCR_POWFAC)
  62. #define MCR_LINEAR (0)
  63. #define MCR_COSIN (1)
  64. #define MCR_SKEWED (2)
  65. #define MCR_TABLEN (512)
  66. #define MAX_MI_OUTCHANS (1000)
  67. #define INT_TO_ASCII (48)
  68. #define DEFAULT_BETWEEN (8)
  69. #define MAXBETWEEN (999)
  70. #define MINPAN (-32767.0)
  71. #define MAXPAN (32767.0)
  72. #define OBUFMIX (0)
  73. #define STEREOBUF (1)
  74. #define IBUFMIX (2)
  75. #define PAN_LEFT (-1.0)
  76. #define PAN_RIGHT (1.0)
  77. #define PAN_CENTRE (0.0)
  78. #define SAMPLE_RATE_DIVIDE (28000) /* divides possible samprates int hi_sr and lo_sr */
  79. #define DEFAULT_BTWNFRQ (4000.0)