Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 512 Bytes

tables.h

File metadata and controls

19 lines (14 loc) · 512 Bytes
 
Oct 18, 2017
Oct 18, 2017
1
2
/*
Oct 21, 1999
Oct 21, 1999
3
4
5
6
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
7
it under the terms of the Perl Artistic License, available in COPYING.
Oct 21, 1999
Oct 21, 1999
8
Oct 18, 2017
Oct 18, 2017
9
10
11
tables.h
*/
Oct 21, 1999
Oct 21, 1999
12
13
14
15
#include <math.h>
#define sine(x) (sin((2*PI/1024.0) * (x)))
#define SINE_CYCLE_LENGTH 1024
Oct 18, 2017
Oct 18, 2017
16
17
18
19
extern const Sint32 freq_table[];
extern const double vol_table[];
extern const double bend_fine[];
extern const double bend_coarse[];