Just Intonation
Version 1.3.1 (19)
Explore key-independent dynamically adapting tuning in just intonation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
config.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright 2016-2017 Karolin Stange, Christoph Wick, and Haye Hinrichsen
3
*
4
* This file is part of JustIntonation.
5
*
6
* JustIntonation is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by the
8
* Free Software Foundation, either version 3 of the License, or (at your
9
* option) any later version.
10
*
11
* JustIntonation is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with JustIntonation. If not, see http://www.gnu.org/licenses/.
18
*****************************************************************************/
19
20
#include <QtGlobal>
21
22
//=============================================================================
23
// Compile-time configuration of the application
24
//=============================================================================
25
26
#ifndef CONFIG_H
27
#define CONFIG_H
28
29
//------------------------- Application name etc ------------------------------
30
31
#define INT_APPLICATIONNAME "Just Intonation"
32
#define INT_ORGANIZATIONNAME "University of Wuerzburg"
33
#define INT_ORGANIZATIONDOMAIN "just-intonation.org"
34
#define INT_APPLICATIONNAME_LOWERCASE "justintonation"
35
36
//----------------------------- Version numbers -------------------------------
37
38
// To modify the version number update here and then call script upateVersion.h
39
#define INT_APPLICATION_VERSION "1.3.1"
40
#define INT_ROLLING_APPLICATION_VERSION 19
41
#define INT_FILEFORMAT_ROLLING_VERSION 2
42
43
//------------------------------ Internet urls --------------------------------
44
45
#define INT_SAMPLES_REPOSITORY "http://samples.just-intonation.org"
46
47
//-------------------------- Startupsound resource ----------------------------
48
49
#if defined(Q_OS_LINUX)
50
#define INT_STARTUPSOUND ":/audio/startupsound.ogg"
51
#else
52
#define INT_STARTUPSOUND ":/audio/startupsound.mp3"
53
#endif
54
55
//----------------------------- Midi examples ---------------------------------
56
57
#define INT_NUMBER_OF_EXAMPLES 12
58
59
//----------------------- Platform-specific settings --------------------------
60
61
// INT_BUFFERSIZE is the default buffer size of the internal Qt-Audio buffer
62
// Use 0 if no setting
63
// INT_MAXFRAMES is the maximal size
64
65
// ANDROID
66
#if defined(Q_OS_ANDROID)
67
#define INT_BUFFERSIZE 0
68
#define INT_PACKETSIZE 32
69
#define INT_TEMPERAMENT_DIR QStandardPaths::AppLocalDataLocation
70
71
// Stable Linux settins (empirical)
72
#elif defined(Q_OS_LINUX)
73
#define INT_BUFFERSIZE 0
74
#define INT_PACKETSIZE 2048
75
#define INT_TEMPERAMENT_DIR QStandardPaths::DocumentsLocation
76
77
// MAC OSX
78
#elif (defined(Q_OS_DARWIN) && !defined(Q_OS_IOS))
79
#define INT_BUFFERSIZE 0
80
#define INT_PACKETSIZE 256
81
#define INT_TEMPERAMENT_DIR QStandardPaths::DocumentsLocation
82
83
// IOS
84
#elif defined(Q_OS_IOS)
85
#define INT_BUFFERSIZE 0
86
#define INT_PACKETSIZE 256
87
#define INT_TEMPERAMENT_DIR QStandardPaths::AppLocalDataLocation
88
89
// WINDOWS DESKTOP
90
#elif defined(Q_OS_WIN64)
91
#define INT_BUFFERSIZE 16384
92
#define INT_PACKETSIZE 1024
93
#define INT_TEMPERAMENT_DIR QStandardPaths::DocumentsLocation
94
95
// WINDOWS UWP
96
#elif defined(Q_OS_WINRT)
97
#define INT_BUFFERSIZE 1024
98
#define INT_PACKETSIZE 1024
99
#define INT_TEMPERAMENT_DIR QStandardPaths::AppLocalDataLocation
100
101
// Generic default values
102
#else
103
#define INT_BUFFERSIZE 1024
104
#define INT_PACKETSIZE 1024
105
#define INT_TEMPERAMENT_DIR QStandardPaths::DocumentsLocation
106
#endif
107
108
//-------------------------------- RunGuard -----------------------------------
109
110
#if (!defined(Q_OS_ANDROID) && !defined(Q_OS_IOS))
111
#define INT_INCLUDE_RUNGUARD
112
#endif
113
114
115
//=============================================================================
116
// Doxygen comments describing the groups of classes
117
//=============================================================================
118
119
//-----------------------------------------------------------------------------
120
// SYSTEM:
125
//-----------------------------------------------------------------------------
126
// INSTRUMENT:
132
//-----------------------------------------------------------------------------
133
// SOUND-GENERATING
136
//-----------------------------------------------------------------------------
137
// IMPORTER
140
//-----------------------------------------------------------------------------
141
142
143
#endif // CONFIG_H
application
config.h
Generated on Wed Jul 12 2017 10:39:47 for Just Intonation by
1.8.11