tap_dynamics_presets.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /* -*- linux-c -*-
  2. Copyright (C) 2004 Tom Szilagyi
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  14. $Id: tap_dynamics_presets.h,v 1.1 2004/05/01 16:15:06 tszilagyi Exp $
  15. */
  16. /* Number of dynamics presets */
  17. #define NUM_MODES 15
  18. /* Dynamics presets data */
  19. DYNAMICS_DATA dyn_data[NUM_MODES] = {
  20. { /* 2:1 compression starting at -6 dB */
  21. 4,
  22. {
  23. {-80.0f, -80.0f},
  24. {-6.0f, -6.0f},
  25. {0.0f, -3.8f},
  26. {20.0f, 3.5f},
  27. },
  28. },
  29. { /* 2:1 compression starting at -9 dB */
  30. 4,
  31. {
  32. {-80.0f, -80.0f},
  33. {-9.0f, -9.0f},
  34. {0.0f, -5.3f},
  35. {20.0f, 2.9f},
  36. },
  37. },
  38. { /* 2:1 compression starting at -12 dB */
  39. 4,
  40. {
  41. {-80.0f, -80.0f},
  42. {-12.0f, -12.0f},
  43. {0.0f, -6.8f},
  44. {20.0f, 1.9f},
  45. },
  46. },
  47. { /* 2:1 compression starting at -18 dB */
  48. 4,
  49. {
  50. {-80.0f, -80.0f},
  51. {-18.0f, -18.0f},
  52. {0.0f, -9.8f},
  53. {20.0f, -0.7f},
  54. },
  55. },
  56. { /* 2.5:1 compression starting at -12 dB */
  57. 4,
  58. {
  59. {-80.0f, -80.0f},
  60. {-12.0f, -12.0f},
  61. {0.0f, -7.5f},
  62. {20.0f, 0.0f},
  63. },
  64. },
  65. { /* 3:1 compression starting at -12 dB */
  66. 4,
  67. {
  68. {-80.0f, -80.0f},
  69. {-12.0f, -12.0f},
  70. {0.0f, -9.0f},
  71. {20.0f, -4.0f},
  72. },
  73. },
  74. { /* 3:1 compression starting at -15 dB */
  75. 4,
  76. {
  77. {-80.0f, -80.0f},
  78. {-15.0f, -15.0f},
  79. {0.0f, -10.8f},
  80. {20.0f, -5.2f},
  81. },
  82. },
  83. { /* Compressor/Gate */
  84. 5,
  85. {
  86. {-80.0f, -105.0f},
  87. {-62.0f, -80.0f},
  88. {-15.4f, -15.4f},
  89. {0.0f, -12.0f},
  90. {20.0f, -7.6f},
  91. },
  92. },
  93. { /* Expander */
  94. 8,
  95. {
  96. {-80.0f, -169.0f},
  97. {-54.0f, -80.0f},
  98. {-49.5f, -64.6f},
  99. {-41.1f, -41.1f},
  100. {-25.8f, -15.0f},
  101. {-10.8f, -4.5f},
  102. {0.0f, 0.0f},
  103. {20.0f, 8.3f},
  104. },
  105. },
  106. { /* Hard limiter at -6 dB */
  107. 3,
  108. {
  109. {-80.0f, -80.0f},
  110. {-6.0f, -6.0f},
  111. {20.0f, -6.0f},
  112. },
  113. },
  114. { /* Hard limiter at -12 dB */
  115. 3,
  116. {
  117. {-80.0f, -80.0f},
  118. {-12.0f, -12.0f},
  119. {20.0f, -12.0f},
  120. },
  121. },
  122. { /* Hard noise gate at -35 dB */
  123. 4,
  124. {
  125. {-80.0f, -115.0f},
  126. {-35.1f, -80.0f},
  127. {-35.0f, -35.0f},
  128. {20.0f, 20.0f},
  129. },
  130. },
  131. { /* Soft limiter */
  132. 5,
  133. {
  134. {-80.0f, -80.0f},
  135. {-12.4f, -12.4f},
  136. {-6.0f, -8.0f},
  137. {0.0f, -6.8f},
  138. {20.0f, -2.8f},
  139. },
  140. },
  141. { /* Soft knee comp/gate (-24 dB threshold) */
  142. 8,
  143. {
  144. {-80.0f, -113.7f},
  145. {-46.3f, -80.0f},
  146. {-42.0f, -56.8f},
  147. {-33.6f, -36.3f},
  148. {-24.0f, -24.0f},
  149. {-11.1f, -15.4f},
  150. {0.0f, -12.0f},
  151. {20.0f, -5.8f},
  152. },
  153. },
  154. { /* Soft noise gate below -36 dB */
  155. 7,
  156. {
  157. {-80.0f, -104.0f},
  158. {-56.0f, -80.0f},
  159. {-51.8f, -67.2f},
  160. {-44.7f, -49.3f},
  161. {-34.0f, -34.0f},
  162. {0.0f, 0.0f},
  163. {20.0f, 20.0f},
  164. },
  165. },
  166. /* You can add your own presets here.
  167. * Please read the docs about the format.
  168. */
  169. };