timidity/tables.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 01 Jun 2013 22:30:04 -0700
changeset 627 438fb12df34f
parent 518 8bc9b5fd2aae
child 782 e7d3a8f73e88
permissions -rw-r--r--
Updated iOS project to include OGG support directly
     1 /*
     2     TiMidity -- Experimental MIDI to WAVE converter
     3     Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
     4 
     5     This program is free software; you can redistribute it and/or modify
     6     it under the terms of the Perl Artistic License, available in COPYING.
     7  */
     8 
     9 #ifdef LOOKUP_SINE
    10 extern FLOAT_T sine(int x);
    11 #else
    12 #include <math.h>
    13 #define sine(x) (sin((2*PI/1024.0) * (x)))
    14 #endif
    15 
    16 #define SINE_CYCLE_LENGTH 1024
    17 extern int32 freq_table[];
    18 extern double vol_table[];
    19 extern double expr_table[];
    20 extern double bend_fine[];
    21 extern double bend_coarse[];
    22 extern uint8 *_l2u; /* 13-bit PCM to 8-bit u-law */
    23 extern uint8 _l2u_[]; /* used in LOOKUP_HACK */
    24 #ifdef LOOKUP_HACK
    25 extern int16 _u2l[];
    26 extern int32 *mixup;
    27 #ifdef LOOKUP_INTERPOLATION
    28 extern int8 *iplookup;
    29 #endif
    30 #endif
    31 
    32 extern void init_tables(void);
    33 
    34 #define XMAPMAX 800
    35 extern int xmap[XMAPMAX][5];
    36