1 /** @file main.h 2 * @brief Main include file. Defines global Macros. 3 * 4 * @section LICENSE 5 * 6 * Copyright 2009 - 2017 <qmidiarp-devel@lists.sourceforge.net> 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 21 * MA 02110-1301, USA. 22 * 23 */ 24 #ifndef __MAIN_H 25 #define __MAIN_H 26 27 #include "midievent.h" 28 29 #define CT_FOOTSW 0x40 30 #define CT_ALLNOTESOFF 0x7B 31 #define CT_ALLSOUNDOFF 0x78 32 33 #define MAX_PORTS 64 34 #define SEQPOOL 2048 35 #define JQ_BUFSZ 1024 36 #define LFO_FRAMELIMIT 16 37 #define MAXNOTES 128 38 #define TPQN 192 39 #define MIDICLK_TPQN 24 40 #define MAXCHORD 33 41 #define OMNI 16 42 43 #define QMARCNAME ".qmidiarprc" 44 #define JSFILENAME "js_saved.qmax" 45 46 #define COMPACT_STYLE "QLabel { font: 7pt; } \ 47 QComboBox { font: 7pt; max-height: 15px;} \ 48 QToolButton { font: 8pt; max-height: 15px;} \ 49 QSpinBox { font: 7pt; max-height: 20px;} \ 50 QCheckBox { font: 7pt; max-height: 20px;} \ 51 QGroupBox { font: 7pt; }" 52 53 54 /*! This array holds the currently available frequency values. 55 */ 56 const int lfoFreqValues[14] = {1, 2, 4, 8, 16, 24, 32, 64, 96, 128, 160, 192, 224, 256}; 57 58 /*! @brief This array holds the currently available LFO size values. 59 */ 60 const int lfoSizeValues[12] = {1, 2, 3, 4, 5, 6, 7, 8, 12, 16, 24, 32}; 61 62 /*! @brief This array holds the currently available LFO resolution values. 63 */ 64 const int lfoResValues[9] = {1, 2, 4, 8, 16, 32, 64, 96, 192}; 65 66 /*! @brief This array holds the currently available Seq resolution values. 67 */ 68 const int seqResValues[5] = {1, 2, 4, 8, 16}; 69 70 /*! @brief This array holds the currently available Seq size values. 71 */ 72 const int seqSizeValues[11] = {1, 2, 3, 4, 5, 6, 7, 8, 16, 32}; 73 #endif 74