summaryrefslogtreecommitdiff
path: root/synth/globals.h
blob: bccacdfc42099d568c680599d05d8f1b1df81e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef __GLOBALS_H__
#define __GLOBALS_H__

#include <jack/jack.h>

#include <string>

#include "programs.h"
#include "channel.h"

using namespace std;


extern fixed_t **lfo[N_LFOS];
extern fixed_t *curr_lfo[N_LFOS+1];

extern fixed_t* wave[N_WAVEFORMS];

extern fixed_t sample_and_hold[N_LFO_LEVELS];

extern int sample_and_hold_frames;
extern int lfo_res[N_LFOS];
extern int lfo_phase[N_LFOS];
extern float lfo_freq_hz[N_LFOS];

extern bool verbose;
extern bool fatal_warnings;
extern bool quiet;

extern bool connect_audio, connect_midi;

extern bool watchfiles;

extern float cleanup_interval_sec;
extern float snh_freq_hz;
extern float max_port_time_sec;

extern float filter_update_freq_hz;
extern float lfo_update_freq_hz;
extern float envelope_update_freq_hz;

extern int filter_update_frames;
extern int lfo_update_frames;
extern int envelope_update_frames;

extern float xrun_time;
extern int xrun_n;

#ifndef FRAMESKIP
	extern int samp_rate;
#else
	extern int frameskip;
	extern int samp_rate;

	extern jack_default_audio_sample_t outtemp[N_CHANNELS];
	#ifdef STEREO
		extern jack_default_audio_sample_t outtemp2[N_CHANNELS];
	#endif

	extern jack_nframes_t outtemp_nframes_left;
#endif


extern string programfile[128];



extern program_t *program_settings;
extern bool program_lock[128];

extern program_t default_program;

extern Channel *channel[N_CHANNELS];


extern jack_nframes_t cleanup_interval; //in jack frames


#endif