summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/guspat.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi/guspat.h')
-rw-r--r--apps/plugins/midi/guspat.h94
1 files changed, 94 insertions, 0 deletions
diff --git a/apps/plugins/midi/guspat.h b/apps/plugins/midi/guspat.h
new file mode 100644
index 0000000000..5007c4d2ca
--- /dev/null
+++ b/apps/plugins/midi/guspat.h
@@ -0,0 +1,94 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2005 Stepan Moskovchenko
10 *
11 * All files in this archive are subject to the GNU General Public License.
12 * See the file COPYING in the source tree root for full license agreement.
13 *
14 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
15 * KIND, either express or implied.
16 *
17 ****************************************************************************/
18
19//This came from one of the Gravis documents
20const static unsigned int gustable[]=
21{
22 8175, 8661, 9177, 9722, 10300, 10913, 11562, 12249, 12978, 13750, 14567, 15433,
23 16351, 17323, 18354, 19445, 20601, 21826, 23124, 24499, 25956, 27500, 29135, 30867,
24 32703, 34647, 36708, 38890, 41203, 43653, 46249, 48999, 51913, 54999, 58270, 61735,
25 65406, 69295, 73416, 77781, 82406, 87306, 92498, 97998, 103826, 109999, 116540, 123470,
26 130812, 138591, 146832, 155563, 164813, 174614, 184997, 195997, 207652, 219999, 233081, 246941,
27 261625, 277182, 293664, 311126, 329627, 349228, 369994, 391995, 415304, 440000, 466163, 493883,
28 523251, 554365, 587329, 622254, 659255, 698456, 739989, 783991, 830609, 880000, 932328, 987767,
29 1046503, 1108731, 1174660, 1244509, 1318511, 1396914, 1479979, 1567983, 1661220, 1760002, 1864657, 1975536,
30 2093007, 2217464, 2349321, 2489019, 2637024, 2793830, 2959960, 3135968, 3322443, 3520006, 3729316, 3951073,
31 4186073, 4434930, 4698645, 4978041, 5274051, 5587663, 5919922, 6271939, 6644889, 7040015, 7458636, 7902150
32};
33
34struct GWaveform
35{
36 unsigned char * name;
37 unsigned char fractions;
38 unsigned int wavSize;
39 unsigned int startLoop;
40 unsigned int endLoop;
41 unsigned int sampRate;
42 unsigned int lowFreq;
43 unsigned int highFreq;
44 unsigned int rootFreq;
45 unsigned int tune;
46 unsigned int balance;
47 unsigned char * envRate;
48 unsigned char * envOffset;
49
50 unsigned char tremSweep;
51 unsigned char tremRate;
52 unsigned char tremDepth;
53 unsigned char vibSweep;
54 unsigned char vibRate;
55 unsigned char vibDepth;
56 unsigned char mode;
57
58 unsigned int scaleFreq;
59 unsigned int scaleFactor;
60
61 unsigned char * res;
62 signed char * data;
63};
64
65
66struct GPatch
67{
68 unsigned int patchNumber;
69 unsigned char * header;
70 unsigned char * gravisid;
71 unsigned char * desc;
72 unsigned char inst, voc, chan;
73 unsigned int numWaveforms;
74 unsigned int datSize;
75 unsigned int vol;
76 unsigned char * res;
77
78
79 unsigned int instrID;
80 unsigned char * instrName;
81 unsigned int instrSize;
82 unsigned int layers;
83 unsigned char * instrRes;
84
85 unsigned char layerDup;
86 unsigned char layerID;
87 unsigned int layerSize;
88 unsigned char numWaves;
89 unsigned char * layerRes;
90
91 unsigned char noteTable[128];
92 struct GWaveform * waveforms[255];
93};
94