1
//=========================================================
4
// $Id: globals.h,v 1.1.1.1 2003/10/29 10:05:15 wschweer Exp $
6
// (C) Copyright 1999/2000 Werner Schweer (ws@seh.de)
7
//=========================================================
12
#include <sys/types.h>
15
#include <qnamespace.h>
22
extern int recFileNumber;
24
extern bool alsaFound;
25
extern bool audioTimebase;
28
extern volatile int sampleRate;
29
extern volatile int segmentSize;
32
extern double minSlider;
33
extern int guiRefresh;
35
extern QString helpBrowser;
40
extern bool useJackAudio;
41
extern bool useAlsaAudio;
45
extern const signed char sharpTab[14][7];
46
extern const signed char flatTab[14][7];
48
extern QString museGlobalLib;
49
extern QString museGlobalShare;
50
extern QString museUser;
51
extern QString museProject;
53
extern bool debugMode;
54
extern bool midiInputTrace;
55
extern bool midiOutputTrace;
57
extern bool debugSync;
58
extern bool loadPlugins;
60
extern bool realTimeScheduling;
61
extern int realTimePriority;
62
extern const char* midi_file_pattern[];
63
extern const char* med_file_pattern[];
64
extern const char* image_file_pattern[];
65
extern const char* ctrl_file_pattern[];
67
extern QString scoreBg; // Background Pixmap Pathname for score canvas
69
extern double paperWidth;
70
extern double paperHeight;
71
extern double topMargin;
72
extern double bottomMargin;
73
extern double leftMargin;
74
extern double rightMargin;
75
extern double printScale;
77
extern double beamWidth;
78
extern double beamSpacing;
79
extern double beamSlopeTrigger;
81
extern QFont font0; // 12pt
82
extern QFont font1; // 8pt
83
extern QFont font2; // 10 pt
84
extern QFont font3; // 10 pt bold
85
extern QFont font4; // 8 pt bold
86
extern QFont font5; // 12pt typewriter
88
extern Qt::ButtonState globalKeyState;
90
extern bool extendedMidi;
91
extern int midiDivision; // division for midi export
93
extern int midiInputPorts; // receive from all devices
94
extern int midiInputChannel; // receive all channel
95
extern int midiRecordType; // receive all events
97
#define MIDI_FILTER_NOTEON 1
98
#define MIDI_FILTER_POLYP 2
99
#define MIDI_FILTER_CTRL 4
100
#define MIDI_FILTER_PROGRAM 8
101
#define MIDI_FILTER_AT 16
102
#define MIDI_FILTER_PITCH 32
103
#define MIDI_FILTER_SYSEX 64
105
extern int midiThruType; // transmit all events
106
extern int midiFilterCtrl1;
107
extern int midiFilterCtrl2;
108
extern int midiFilterCtrl3;
109
extern int midiFilterCtrl4;
111
#define CMD_RANGE_ALL 0
112
#define CMD_RANGE_SELECTED 1
113
#define CMD_RANGE_LOOP 2
115
extern QActionGroup* undoRedo;
116
extern QAction* undoAction;
117
extern QAction* redoAction;
119
extern QActionGroup* transportAction;
120
extern QAction* playAction;
121
extern QAction* startAction;
122
extern QAction* stopAction;
123
extern QAction* rewindAction;
124
extern QAction* forwardAction;
125
extern QAction* loopAction;
126
extern QAction* punchinAction;
127
extern QAction* punchoutAction;
128
extern QAction* recordAction;
129
extern QAction* panicAction;
133
extern AudioMixerApp* audioMixer;
136
extern int preMeasures;
137
extern unsigned char measureClickNote;
138
extern unsigned char measureClickVelo;
139
extern unsigned char beatClickNote;
140
extern unsigned char beatClickVelo;
141
extern unsigned char clickChan;
142
extern unsigned char clickPort;
143
extern bool precountEnableFlag;
144
extern bool precountFromMastertrackFlag;
145
extern int precountSigZ;
146
extern int precountSigN;
147
extern bool precountPrerecord;
148
extern bool precountPreroll;
149
extern bool midiClickFlag;
150
extern bool audioClickFlag;
152
extern bool rcEnable;
153
extern unsigned char rcStopNote;
154
extern unsigned char rcRecordNote;
155
extern unsigned char rcGotoLeftMarkNote;
156
extern unsigned char rcPlayNote;
159
extern uid_t euid, ruid;
160
extern void doSetuid();
161
extern void undoSetuid();