1 /*
2     TiMidity++ -- MIDI to WAVE converter and player
3     Copyright (C) 1999-2002 Masanao Izumo <mo@goice.co.jp>
4     Copyright (C) 1995 Tuukka Toivonen <tt@cgs.fi>
5 
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10 
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15 
16     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software
18     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20 
21 extern float pitch_freq_table[129];
22 extern float pitch_freq_ub_table[129];
23 extern float pitch_freq_lb_table[129];
24 extern int chord_table[4][3][3];
25 
26 extern float freq_fourier(Sample *sp, int *chord);
27 extern int assign_pitch_to_freq(float freq);
28 
29 #define CHORD_MAJOR 0
30 #define CHORD_MINOR 3
31 #define CHORD_DIM   6
32 #define CHORD_FIFTH 9
33 #define LOWEST_PITCH 0
34 #define HIGHEST_PITCH 127
35