Add proper svn:mime-type
[maemo-rb.git] / apps / plugins / midi / guspat.h
blobc59cf7a3e3f9eea1f430830ab8c8491cd1b8fe23
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 Stepan Moskovchenko
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 extern const uint32_t gustable[];
24 struct GWaveform
26 unsigned char * name;
27 unsigned char fractions;
28 unsigned int wavSize;
29 unsigned int numSamples;
30 unsigned int startLoop;
31 unsigned int endLoop;
32 unsigned int sampRate;
33 unsigned int lowFreq;
34 unsigned int highFreq;
35 unsigned int rootFreq;
36 unsigned int tune;
37 unsigned int balance;
38 unsigned char * envRate;
39 unsigned char * envOffset;
41 unsigned char tremSweep;
42 unsigned char tremRate;
43 unsigned char tremDepth;
44 unsigned char vibSweep;
45 unsigned char vibRate;
46 unsigned char vibDepth;
47 unsigned char mode;
49 unsigned int scaleFreq;
50 unsigned int scaleFactor;
52 unsigned char * res;
53 signed char * data;
57 struct GPatch
59 unsigned int patchNumber;
60 unsigned char * header;
61 unsigned char * gravisid;
62 unsigned char * desc;
63 unsigned char inst, voc, chan;
64 unsigned int numWaveforms;
65 unsigned int datSize;
66 unsigned int vol;
67 unsigned char * res;
70 unsigned int instrID;
71 unsigned char * instrName;
72 unsigned int instrSize;
73 unsigned int layers;
74 unsigned char * instrRes;
76 unsigned char layerDup;
77 unsigned char layerID;
78 unsigned int layerSize;
79 unsigned char numWaves;
80 unsigned char * layerRes;
82 unsigned char noteTable[128];
83 struct GWaveform * waveforms[255];