Entropy Piano Tuner
1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
config.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright 2015 Haye Hinrichsen, Christoph Wick
3
*
4
* This file is part of Entropy Piano Tuner.
5
*
6
* Entropy Piano Tuner 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
* Entropy Piano Tuner 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 for
14
* more details.
15
*
16
* You should have received a copy of the GNU General Public License along with
17
* Entropy Piano Tuner. If not, see http://www.gnu.org/licenses/.
18
*****************************************************************************/
19
20
//=============================================================================
21
// config.h: Global configureation settings
22
//=============================================================================
23
24
25
#ifndef CONFIG
26
#define CONFIG
27
28
// Assert mode:
29
// 1: release mode (throws in release mode)
30
// 2: exceptions mode (no asserts, throw exception instead)
31
// else: normal mode
32
#define EPT_ASSERT_MODE 2
33
34
// Log level:
35
// 1: verbose
36
// 2: debug
37
// 3: information
38
// 4: warning
39
// 5: error
40
#define LOG_LEVEL 1
41
42
// Dialog size:
43
// 1: normal size (desktop)
44
// 2: maximized (mobile)
45
// 3: full screen (mobile)
46
// this is defined for each platform, default behaviour is 1
47
// CONFIG_DIALOG_SIZE 1
48
49
// Enabling what's this
50
#define EPT_WHATS_THIS_ENABLED 1
51
52
// Exclude the example algorithm
53
#define EPT_EXCLUDE_EXAMPLE_ALGORITHM 1
54
55
#if __ANDROID__
56
//=============================================================================
57
// ANDROID
58
//=============================================================================
59
60
#define CONFIG_DIALOG_SIZE 2
61
#define CONFIG_OPTIMIZE_FFT 0
62
#define CONFIG_ENABLE_XMGRACE 0
63
#define CONFIG_USE_SIMPLE_FILE_DIALOG 1
64
65
#elif __linux__
66
//=============================================================================
67
// LINUX
68
//=============================================================================
69
70
#define CONFIG_ENABLE_RTMIDI 1
71
#define CONFIG_ENABLE_XMGRACE 0
72
#define CONFIG_OPTIMIZE_FFT 1
73
#define CONFIG_USE_SIMPLE_FILE_DIALOG 0
74
#define __LINUX_ALSA__ // for RtMidi
75
76
#elif __APPLE__
77
//=============================================================================
78
// APPLE
79
//=============================================================================
80
#include "TargetConditionals.h"
81
82
#define CONFIG_OPTIMIZE_FFT 0
83
#define CONFIG_ENABLE_XMGRACE 0
84
85
# if TARGET_IPHONE_SIMULATOR
86
# define CONFIG_USE_SIMPLE_FILE_DIALOG 1
87
# define CONFIG_DIALOG_SIZE 1
88
# define CONFIG_ENABLE_RTMIDI 0
89
# elif TARGET_OS_IPHONE
90
# define CONFIG_USE_SIMPLE_FILE_DIALOG 1
91
# define CONFIG_DIALOG_SIZE 1
92
# define CONFIG_ENABLE_RTMIDI 0
93
# else
94
# define CONFIG_ENABLE_RTMIDI 1
95
# define __MACOSX_CORE__ // for RtMidi
96
# endif
97
98
#elif _WIN32
99
//=============================================================================
100
// WINDOWS
101
//=============================================================================
102
#include <winapifamily.h>
103
104
# if WINAPI_FAMILY_PARTITION( WINAPI_PARTITION_DESKTOP )
105
# define CONFIG_ENABLE_RTMIDI 1
106
# define __WINDOWS_MM__ 1 // for RtMidi
107
# endif
108
#else
109
110
111
#error Unknown system
112
#endif
113
114
115
// compiler defines
116
#if defined ( WIN32 )
117
#define __func__ __FUNCTION__
118
#endif
119
120
#ifndef CONFIG_DIALOG_SIZE
121
# define CONFIG_DIALOG_SIZE 1
122
#endif
123
124
#endif // CONFIG
125
core
config.h
Generated on Sun Oct 18 2015 23:04:47 for Entropy Piano Tuner by
1.8.8