1 /* constants needed by core and precompute */
3 #define PI 3.141592653589
6 #define HARMONIC_COUNT 8
10 #define FM_FREQ_CONFIG 10
14 #define COMPONENT_MAX 255
18 #define SQUARE_BASE 129
19 #define TRIANGLE_BASE 130
21 #define NOISE_BASE 132
25 #define SEQUENCE_MAX 4096
27 #define SAMPLE_LENGTH (1<<16)
28 #define SAMPLE_COUNT 16
29 #define SAMPLE_NOTE_ZERO 60
31 #define ANTIPOP_LENGTH 512
32 #define WAVEFORM_LENGTH (1<<10)
34 #define MAX_COMMANDS 256
37 #define RANDF() (((float)rand())/RAND_MAX)
38 #define RAND_SIGNAL() (RANDF()*2 - 1)