1 
2 /*
3  *  Diverse Bristol audio routines.
4  *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2012
5  *
6  *
7  *   This program is free software; you can redistribute it and/or modify
8  *   it under the terms of the GNU General Public License as published by
9  *   the Free Software Foundation; either version 3 of the License, or
10  *   (at your option) any later version.
11  *
12  *   This program is distributed in the hope that it will be useful,
13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *   GNU General Public License for more details.
16  *
17  *   You should have received a copy of the GNU General Public License
18  *   along with this program; if not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #define O_UNISON		0x00000001ULL
23 
24 /*
25  * Have to watch out here, mixflags are also used globally in the range
26  * 0xffff0000.00000000 for midi ops, we can use the rest in the algo though.
27  */
28 #define O_S_H			0x00000002ULL
29 #define O_FREQ_1		0x00000004ULL
30 #define O_FREQ_2		0x00000008ULL
31 #define O_FILT			0x00000010ULL
32 
33 #define O_PWM_1			0x00000020ULL
34 #define O_PWM_2			0x00000040ULL
35 #define O_TREM			0x00000080ULL
36 
37 #define O_XMOD			0x00000100ULL
38 
39 #define O_F_OSC1		0x00000200ULL
40 #define O_F_KBD			0x00000400ULL
41 #define O_F_OSC2_1		0x00000800ULL
42 #define O_F_OSC2_2		0x00001000ULL
43 #define O_F_NOISE1		0x00002000ULL
44 #define O_F_NOISE2		0x00004000ULL
45 
46 #define O_MULTI_LFO		0x00008000ULL
47 
48 #define O_LFO_SINE		0x00010000ULL
49 #define O_LFO_SQUARE	0x00020000ULL
50 #define O_LFO_SH		0x00040000ULL
51 
52 #define O_ENV_MOD		0x00080000ULL /* OBXA */
53 #define O_F_4POLE		0x00100000ULL /* OBXA */
54 
55 #define O_MOD1_ENABLE	0x00200000ULL /* OBXA MODS */
56 #define O_MOD2_ENABLE	0x00400000ULL /* OBXA MODS */
57 
58 #define O_MOD_PWM		0x01000000ULL
59 
60 /*
61  * These need to go into some local structure for multiple instances
62  * of the prophet - malloc()ed into the baudio->mixlocals.
63  */
64 typedef struct pMods {
65 	float d_mod1, d_mod2, pan, wheelmod, wmdepth;
66 	int voicecount;
67 } pmods;
68 
69