Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 869 Bytes

tables.h

File metadata and controls

36 lines (30 loc) · 869 Bytes
 
Dec 31, 2011
Dec 31, 2011
1
/*
Oct 21, 1999
Oct 21, 1999
2
3
4
5
TiMidity -- Experimental MIDI to WAVE converter
Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
This program is free software; you can redistribute it and/or modify
Dec 31, 2011
Dec 31, 2011
6
7
it under the terms of the Perl Artistic License, available in COPYING.
*/
Oct 21, 1999
Oct 21, 1999
8
9
#ifdef LOOKUP_SINE
Aug 21, 2004
Aug 21, 2004
10
extern FLOAT_T sine(int x);
Oct 21, 1999
Oct 21, 1999
11
12
13
14
15
16
17
#else
#include <math.h>
#define sine(x) (sin((2*PI/1024.0) * (x)))
#endif
#define SINE_CYCLE_LENGTH 1024
extern int32 freq_table[];
Feb 1, 2000
Feb 1, 2000
18
extern double vol_table[];
Aug 21, 2004
Aug 21, 2004
19
extern double expr_table[];
Feb 1, 2000
Feb 1, 2000
20
21
extern double bend_fine[];
extern double bend_coarse[];
Oct 21, 1999
Oct 21, 1999
22
23
24
25
26
27
28
29
30
31
32
extern uint8 *_l2u; /* 13-bit PCM to 8-bit u-law */
extern uint8 _l2u_[]; /* used in LOOKUP_HACK */
#ifdef LOOKUP_HACK
extern int16 _u2l[];
extern int32 *mixup;
#ifdef LOOKUP_INTERPOLATION
extern int8 *iplookup;
#endif
#endif
extern void init_tables(void);
Aug 21, 2004
Aug 21, 2004
33
34
35
#define XMAPMAX 800
extern int xmap[XMAPMAX][5];