1
/* WhySynth DSSI software synthesizer plugin
3
* Copyright (C) 2005-2007 Sean Bolton.
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License as
7
* published by the Free Software Foundation; either version 2 of
8
* the License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be
11
* useful, but WITHOUT ANY WARRANTY; without even the implied
12
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13
* PURPOSE. See the GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public
16
* License along with this program; if not, write to the Free
17
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301 USA.
21
#ifndef _WAVE_TABLES_H
22
#define _WAVE_TABLES_H
24
#define WAVETABLE_POINTS 1024
26
#define WAVETABLE_CROSSFADE_RANGE 5
28
#define WAVETABLE_MAX_WAVES 14 /* 'Formant' 1, 2 and 3, and 'Kick' each have 13, but PADsynth expands 'Formant 1' to 14 */
32
unsigned short max_key; /* MIDI key number */
33
unsigned short wavetable; /* true for wavetable waves, false for sampleset samples */
44
struct wave wave[WAVETABLE_MAX_WAVES];
48
extern int wavetables_count;
50
extern struct wavetable wavetable[];
52
void wave_tables_set_count(void);
54
#endif /* _WAVE_TABLES_H */