File: palette.h

package info (click to toggle)
bristol 0.60.10-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 15,652 kB
  • sloc: ansic: 124,457; sh: 10,579; makefile: 111
file content (290 lines) | stat: -rw-r--r-- 7,058 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290

/*
 *  Diverse Bristol audio routines.
 *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2012
 *
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, see <http://www.gnu.org/licenses/>.
 *
 */

/*
 * Palette consists of three sections. We have a set of global operators which
 * will affect any given audio stream, and we have a set of algorithms, which
 * will sequence the operators according to any desired method, and produce a
 * synthesiser.
 * Finally we have a set of effects processors for a final output stage. These
 * can potentially be mixed into any given voice, but would then need to be 
 * define in the palette as well as the FX lists.
 */

#ifndef PALETTE_H
#define PALETTE_H

/*
 * Effects operators.
 */
extern bristolOP * leslieinit();

/*
 * Synth operators
 */
extern bristolOP * bristolinit();
extern bristolOP * noiseinit();
extern bristolOP * dcoinit();
extern bristolOP * envinit();
extern bristolOP * dcainit();
extern bristolOP * filterinit();
extern bristolOP * hammondinit();
extern bristolOP * resinit();
extern bristolOP * prophetdcoinit();
extern bristolOP * dxopinit();
extern bristolOP * hpfinit();
extern bristolOP * junodcoinit();
extern bristolOP * chorusinit();
extern bristolOP * vchorusinit();
extern bristolOP * filter2init();
extern bristolOP * expdcoinit();
extern bristolOP * lfoinit();
extern bristolOP * voxdcoinit();
extern bristolOP * sdcoinit();
extern bristolOP * arpdcoinit();
extern bristolOP * ringmodinit();
extern bristolOP * eswitchinit();
extern bristolOP * reverbinit();
extern bristolOP * followerinit();
extern bristolOP * aksdcoinit();
extern bristolOP * aksenvinit();
extern bristolOP * aksreverbinit();
extern bristolOP * aksfilterinit();
extern bristolOP * hammondchorusinit();
extern bristolOP * quantuminit();
extern bristolOP * bit1oscinit();
extern bristolOP * cs80oscinit();
extern bristolOP * cs80envinit();
extern bristolOP * trilogyoscinit();
extern bristolOP * env5stageinit();
extern bristolOP * nroinit();

struct bristolPalette {
	bristolOP * (*initialise)();
} bristolPalette[BRISTOL_SYNTHCOUNT] = {
	{dcoinit},
	{envinit},
	{dcainit},
	{filterinit},
	{noiseinit},
	{hammondinit},
	{resinit},
	{leslieinit},
	{prophetdcoinit}, /* 8 */
	{dxopinit},
	{hpfinit},
	{junodcoinit},
	{chorusinit},
	{vchorusinit},
	{filter2init},
	{expdcoinit},
	{lfoinit}, /* 16 */
	{voxdcoinit},
	{sdcoinit},
	{arpdcoinit},
	{ringmodinit},
	{eswitchinit},
	{reverbinit},
	{followerinit},
	{aksdcoinit}, /* 24 */
	{aksenvinit},
	{aksreverbinit},
	{aksfilterinit},
	{hammondchorusinit},
	{quantuminit}, /* This will be the "quantum" grain generator */
	{bit1oscinit},
	{cs80oscinit},
	{cs80envinit}, /* 32 - now to use the env5stage init */
	{trilogyoscinit},
	{env5stageinit},
	{nroinit},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL}
};

/*
 * Synth algorithms
 */
extern int bristolMMInit();
extern int bristolHammondInit();
extern int bristolProphetInit();
extern int bristolProphet52Init();
extern int bristolDXInit();
extern int bristolRhodesInit();
extern int bristolJunoInit();
extern int bristolExpInit();
extern int bristolHammondB3Init();
extern int bristolVoxInit();
extern int bristolSamplerInit();
extern int bristolMixerInit();
extern int bristolOBXInit();
extern int bristolOBXaInit();
extern int bristolPolyInit();
extern int bristolPoly6Init();
extern int bristolAxxeInit();
extern int bristolOdysseyInit();
extern int bristolMemoryMoogInit();
extern int bristolArp2600Init();
extern int bristolAksInit();
extern int bristolSolinaInit();
extern int bristolRoadrunnerInit();
extern int bristolGranularInit();
extern int bristolMg1Init();
extern int bristolVoxM2Init();
extern int bristolJupiterInit();
extern int bristolBitoneInit();
extern int bristolCs80Init();
extern int bristolPro1Init();
extern int bristolSonic6Init();
extern int bristolTrilogyInit();
extern int bristolTrilogyODCInit();
extern int bristolPoly800Init();
extern int bristolBme700Init();
extern int bristolBassMakerInit();
extern int bristolSidInit();

struct bristolAlgos {
	int (*initialise)(audioMain *, Baudio *);
	char *name;
} bristolAlgos[BRISTOL_SYNTHCOUNT] = {
	{bristolMMInit, "mini"},
	{bristolHammondInit, "hammond"},
	{bristolProphetInit, "prophet"},
	{bristolDXInit, "dx"},
	{bristolJunoInit, "juno"},
	{bristolExpInit, "explorer"},
	{bristolHammondB3Init, "hammondB3"},
	{bristolVoxInit, "vox"},
	{bristolRhodesInit, "dx"},
	{bristolSamplerInit, NULL},
	{bristolMixerInit, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{bristolProphet52Init, "prophet52"}, /* Uses Prophet algorithm with added FX. */
	{bristolOBXInit, "obx"}, /* Used by OB-X and two for OB-Xa */
	{NULL, NULL}, /* THis was for the OBXA? */
	{NULL, NULL},
	{bristolPolyInit, "mono"},
	{bristolPoly6Init, "poly"},
	{bristolAxxeInit, "axxe"},
	{bristolOdysseyInit, "odyssey"},
	{bristolMemoryMoogInit, "memoryMoog"},
	{bristolArp2600Init, "arp2600"},
	{bristolAksInit, "aks"},
	{NULL, NULL}, /* Will be MS-20 */
	{bristolSolinaInit, "solina"},
	{bristolRoadrunnerInit, "roadrunner"},
	{bristolGranularInit, "granular"},
	{bristolMg1Init, "realistic"},
	{bristolVoxM2Init, "voxM2"},
	{bristolJupiterInit, "jupiter8"},
	{bristolBitoneInit, "bitone"},
	{NULL, NULL}, /* Will be Master Keyboard */
	{bristolCs80Init, "cs80"},
	{bristolPro1Init, "pro1"},
	{bristolExpInit, "explorer"},
	{bristolSonic6Init, "sonic6"},
	{bristolTrilogyInit, "trilogy"},
	{bristolTrilogyODCInit, "trilogyODC"},
	{NULL, "stratus"}, /* Is the trilogy */
	{bristolPoly800Init, "poly800"},
	{bristolBme700Init, "bme700"},
	{bristolBassMakerInit, "bassmaker"},
	{bristolSidInit, "sid"},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL},
	{NULL, NULL}
};

void
newPalette()
{
	/*
	 * This is defined in fatboy headers, here we only have a null call
	 */
}

struct bristolEffects {
	bristolOP * (*initialise)(audioMain *, Baudio *);
} bristolEffects[BRISTOL_SYNTHCOUNT] = {
	{leslieinit},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL},
	{NULL}
};

#endif