//========================================================= // MusE // Linux Music Editor // $Id: globals.h,v 1.10.2.11 2009/11/25 09:09:43 terminator356 Exp $ // // (C) Copyright 1999/2000 Werner Schweer (ws@seh.de) //========================================================= #ifndef GLOBALS_H #define GLOBALS_H #include //#include //#include //#include //Added by qt3to4: #include #include //#include #include "value.h" #include "mtc.h" #include "route.h" #include class QString; class QFont; class QAction; class Q3ActionGroup; class QStringList; extern const float denormalBias; extern int recFileNumber; extern int sampleRate; extern unsigned segmentSize; extern unsigned fifoLength; // inversely proportional to segmentSize extern int segmentCount; extern bool overrideAudioOutput; extern bool overrideAudioInput; class QTimer; extern QTimer* heartBeatTimer; extern bool hIsB; extern const signed char sharpTab[14][7]; extern const signed char flatTab[14][7]; extern QString museGlobalLib; extern QString museGlobalShare; extern QString museUser; extern QString museProject; extern QString museProjectInitPath; extern QString configName; extern QString museInstruments; extern QString museUserInstruments; extern QString lastWavePath; extern QString lastMidiPath; extern bool debugMode; extern bool midiInputTrace; extern bool midiOutputTrace; extern bool debugMsg; extern bool debugSync; extern bool loadPlugins; extern bool loadVST; extern bool loadDSSI; extern bool usePythonBridge; extern bool useLASH; extern bool realTimeScheduling; extern int realTimePriority; extern int midiRTPrioOverride; /* extern const char* midi_file_pattern[]; //!< File name pattern for midi files extern const char* midi_file_save_pattern[]; //!< File name pattern for saving midi files extern const char* med_file_pattern[]; //!< File name pattern for muse project files extern const char* med_file_save_pattern[]; //!< File name pattern for saving muse project files extern const char* image_file_pattern[]; //!< File name pattern for image files (gfx) //extern const char* ctrl_file_pattern[]; //!< File name pattern for controller-files extern const char* part_file_pattern[]; //!< File name pattern for part files extern const char* part_file_save_pattern[]; //!< File name pattern for saving part files //extern const char* plug_file_pattern[]; //!< File name pattern for plugin files extern const char* preset_file_pattern[]; //!< File name pattern for plugin files extern const char* preset_file_save_pattern[]; //!< File name pattern for saving plugin files */ extern const QStringList midi_file_pattern; extern const QStringList midi_file_save_pattern; extern const QStringList med_file_pattern; extern const QStringList med_file_save_pattern; extern const QStringList image_file_pattern; //extern const QStringList ctrl_file_pattern; extern const QStringList part_file_pattern; extern const QStringList part_file_save_pattern; extern const QStringList preset_file_pattern; extern const QStringList preset_file_save_pattern; extern const QStringList drum_map_file_pattern; extern const QStringList drum_map_file_save_pattern; extern const QStringList audio_file_pattern; extern Qt::ButtonState globalKeyState; extern int midiInputPorts; //!< receive from all devices extern int midiInputChannel; //!< receive all channel extern int midiRecordType; //!< receive all events #define MIDI_FILTER_NOTEON 1 #define MIDI_FILTER_POLYP 2 #define MIDI_FILTER_CTRL 4 #define MIDI_FILTER_PROGRAM 8 #define MIDI_FILTER_AT 16 #define MIDI_FILTER_PITCH 32 #define MIDI_FILTER_SYSEX 64 extern int midiThruType; // transmit all events extern int midiFilterCtrl1; extern int midiFilterCtrl2; extern int midiFilterCtrl3; extern int midiFilterCtrl4; #define CMD_RANGE_ALL 0 #define CMD_RANGE_SELECTED 1 #define CMD_RANGE_LOOP 2 extern Q3ActionGroup* undoRedo; extern Q3Action* undoAction; extern Q3Action* redoAction; extern Q3ActionGroup* transportAction; extern Q3Action* playAction; extern Q3Action* startAction; extern Q3Action* stopAction; extern Q3Action* rewindAction; extern Q3Action* forwardAction; extern Q3Action* loopAction; extern Q3Action* punchinAction; extern Q3Action* punchoutAction; extern Q3Action* recordAction; extern Q3Action* panicAction; //class AudioMixerApp; class MusE; //extern AudioMixerApp* audioMixer; extern MusE* muse; extern int preMeasures; extern unsigned char measureClickNote; extern unsigned char measureClickVelo; extern unsigned char beatClickNote; extern unsigned char beatClickVelo; extern unsigned char clickChan; extern unsigned char clickPort; extern bool precountEnableFlag; extern bool precountFromMastertrackFlag; extern int precountSigZ; extern int precountSigN; extern bool precountPrerecord; extern bool precountPreroll; extern bool midiClickFlag; extern bool audioClickFlag; extern float audioClickVolume; extern bool rcEnable; extern unsigned char rcStopNote; extern unsigned char rcRecordNote; extern unsigned char rcGotoLeftMarkNote; extern unsigned char rcPlayNote; extern bool midiSeqRunning; extern bool automation; class QObject; // Which audio strip, midi strip, or midi track info strip // was responsible for popping up the routing menu. extern QObject* gRoutingPopupMenuMaster; // Map of routing popup menu item IDs to Routes. extern RouteMenuMap gRoutingMenuMap; // Whether the routes popup was shown by clicking the output routes button, or input routes button. extern bool gIsOutRoutingPopupMenu; // p3.3.55 #define JACK_MIDI_OUT_PORT_SUFFIX "_out" #define JACK_MIDI_IN_PORT_SUFFIX "_in" extern uid_t euid, ruid; extern void doSetuid(); extern void undoSetuid(); extern bool checkAudioDevice(); #endif