diff options
author | Florian Jung <flo@thinkpad.(none)> | 2010-12-29 16:55:25 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2010-12-29 16:55:25 +0100 |
commit | 7113f02ae87482211aec5046f9ac46c3cc9ad017 (patch) | |
tree | b6484b45317e7e80567d9902cf94843d227ce30e /synth/defines.h |
Initial commit
Diffstat (limited to 'synth/defines.h')
-rw-r--r-- | synth/defines.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/synth/defines.h b/synth/defines.h new file mode 100644 index 0000000..4a2e929 --- /dev/null +++ b/synth/defines.h @@ -0,0 +1,62 @@ +#ifndef __DEFINES_H__ +#define __DEFINES_H__ + + +#define XRUN_TIME 2.0 +#define XRUN_N 8 + +#define CLEANUP_INTERVAL_SEC 1.0 + +#define MAX_PORTAMENTO_TIME 2.0 + +#define FILTER_UPDATE_FREQ_HZ 250 +#define LFO_UPDATE_FREQ_HZ 500 + +//when changing this, also change code marked with FINDLFO! +#define N_LFOS 3 +#define N_LFO_LEVELS 1024 +#define LFO_MAX 1 +extern float LFO_FREQ_HZ[]; +#define __LFO_FREQ_HZ {7.0, 5.0, 1.0} + +#if N_LFO_LEVELS <= 1 + #error "N_LFO_LEVELS must be greater than one!" +#endif + +#define SNH_FREQ_HZ 10 +#define SNH_LFO N_LFOS + + +//init the oscillator phases to wave_res * PHASE_INIT +//negative values are not allowed, zero will cause the program +//to segfault if phase modulation is done, higher values will make +//the probability for a segfault smaller (i.e., zero) +//only decrease if you know what you're doing! +#define PHASE_INIT 100 + + +#define MIDI_IN_NAME "midi_in" +#define OUT_NAME "output" + +#define N_CHANNELS 16 + + +//#define STEREO +#define FRAMESKIP + +#define VOL_FACTOR (1/20.0) + + + +#define PI 3.141592654 + + + + + +#define WAVE_RES 44100 +#define N_WAVEFORMS 5 + +#define NO_CONT 128 + +#endif |