synthclone
0.3.0
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
types.h
Go to the documentation of this file.
1
/*
2
* libsynthclone - a plugin API for `synthclone`
3
* Copyright (C) 2011 Devin Anderson
4
*
5
* This library is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU Lesser General Public License as published by the
7
* Free Software Foundation; either version 2.1 of the License, or (at your
8
* option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13
* for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with this library; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#ifndef __SYNTHCLONE_TYPES_H__
21
#define __SYNTHCLONE_TYPES_H__
22
23
#include <QtCore/QMetaType>
24
#include <QtCore/QtGlobal>
25
26
namespace
synthclone {
27
32
enum
ControlType
{
33
CONTROLTYPE_UNDEFINED
= 0,
34
CONTROLTYPE_COMMAND
= 1,
35
CONTROLTYPE_CONTINUOUS
= 2,
36
CONTROLTYPE_MONO_MODE
= 3,
37
CONTROLTYPE_SWITCH
= 4
38
};
39
44
enum
Menu
{
45
MENU_ADD_EFFECT
= 0,
46
MENU_ADD_SAMPLER
= 1,
47
MENU_ADD_TARGET
= 2,
48
MENU_HELP
= 3,
49
MENU_SESSION
= 4,
50
MENU_TOOLS
= 5,
51
MENU_VIEW
= 6,
52
MENU_ZONES
= 7
53
};
54
59
typedef
quint8
MIDIData
;
60
66
const
MIDIData
MIDI_VALUE_NOT_SET
= 0x80;
67
72
typedef
quint16
SampleChannelCount
;
73
78
const
SampleChannelCount
SAMPLE_CHANNEL_COUNT_MINIMUM
= 1;
79
84
const
SampleChannelCount
SAMPLE_CHANNEL_COUNT_MAXIMUM
= 65535;
85
90
typedef
qint64
SampleFrameCount
;
91
96
typedef
quint32
SampleRate
;
97
104
const
SampleRate
SAMPLE_RATE_MINIMUM
= 1;
105
115
const
SampleRate
SAMPLE_RATE_MAXIMUM
= 2147483647;
116
121
typedef
float
SampleTime
;
122
127
const
SampleTime
SAMPLE_TIME_MINIMUM
= 1e-15;
128
134
const
SampleTime
SAMPLE_TIME_MAXIMUM
= 512.0;
135
140
enum
SessionState
{
141
SESSIONSTATE_CURRENT
= 0,
142
SESSIONSTATE_LOADING
= 1,
143
SESSIONSTATE_MODIFIED
= 2,
144
SESSIONSTATE_SAVING
= 3,
145
SESSIONSTATE_UNLOADING
= 4
146
};
147
148
}
149
150
#endif
synthclone
types.h
Generated on Tue Mar 19 2013 08:42:02 for synthclone by
1.8.3.1