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