From 7113f02ae87482211aec5046f9ac46c3cc9ad017 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 29 Dec 2010 16:55:25 +0100 Subject: Initial commit --- synth/globals.cpp | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 synth/globals.cpp (limited to 'synth/globals.cpp') diff --git a/synth/globals.cpp b/synth/globals.cpp new file mode 100644 index 0000000..5b256b3 --- /dev/null +++ b/synth/globals.cpp @@ -0,0 +1,60 @@ +#include "globals.h" + +fixed_t **lfo[N_LFOS]; +fixed_t *curr_lfo[N_LFOS+1]; + +fixed_t wave[N_WAVEFORMS][WAVE_RES]; + +fixed_t sample_and_hold[N_LFO_LEVELS]; + +int sample_and_hold_frames=0; +int lfo_res[N_LFOS]; +int lfo_phase[N_LFOS]; +float lfo_freq_hz[N_LFOS]; + +bool verbose=false; +bool fatal_warnings=false; +bool quiet=false; + +bool connect_audio=true, connect_midi=true; + + +float cleanup_interval_sec=0; +float snh_freq_hz=0; +float max_port_time_sec=0; + +float filter_update_freq_hz; +float lfo_update_freq_hz; + +int filter_update_frames; +int lfo_update_frames; + +float xrun_time=0; +int xrun_n=0; + +#ifndef FRAMESKIP + int samp_rate; +#else + int frameskip=-1; + int samp_rate; + + jack_default_audio_sample_t outtemp[N_CHANNELS]; + #ifdef STEREO + jack_default_audio_sample_t outtemp2[N_CHANNELS]; + #endif + + jack_nframes_t outtemp_nframes_left=0; +#endif + + +string programfile[128]; + + + +program_t *program_settings; + + +Channel *channel[N_CHANNELS]; + + +jack_nframes_t cleanup_interval; //in jack frames -- cgit v1.2.3