synthclone  0.3.0
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 {
38  };
39 
44  enum Menu {
48  MENU_HELP = 3,
51  MENU_VIEW = 6,
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 
146  };
147 
148 }
149 
150 #endif
quint16 SampleChannelCount
Holds a sample channel count.
Definition: types.h:72
const SampleRate SAMPLE_RATE_MAXIMUM
The maximum valid sample rate.
Definition: types.h:115
const SampleChannelCount SAMPLE_CHANNEL_COUNT_MINIMUM
The minimum valid sample channel count.
Definition: types.h:78
Definition: types.h:141
Definition: types.h:50
Definition: types.h:33
Definition: types.h:143
Definition: types.h:145
const SampleChannelCount SAMPLE_CHANNEL_COUNT_MAXIMUM
The maximum valid sample channel count.
Definition: types.h:84
ControlType
MIDI control types.
Definition: types.h:32
Definition: component.h:26
SessionState
Defines session states.
Definition: types.h:140
const SampleTime SAMPLE_TIME_MAXIMUM
The maximum valid sample time.
Definition: types.h:134
Menu
Menu identifiers for default synthclone menus.
Definition: types.h:44
Definition: types.h:48
Definition: types.h:34
qint64 SampleFrameCount
Holds a count of sample frames, or an offset with sample frames.
Definition: types.h:90
Definition: types.h:36
float SampleTime
Holds a sample time (in seconds).
Definition: types.h:121
const MIDIData MIDI_VALUE_NOT_SET
A MIDIData value that refers to unset values.
Definition: types.h:66
Definition: types.h:47
Definition: types.h:46
Definition: types.h:37
Definition: types.h:52
Definition: types.h:45
quint8 MIDIData
Holds a byte of MIDI data.
Definition: types.h:59
quint32 SampleRate
Holds a sample rate.
Definition: types.h:96
Definition: types.h:49
Definition: types.h:144
Definition: types.h:51
const SampleRate SAMPLE_RATE_MINIMUM
The minimum valid sample rate.
Definition: types.h:104
Definition: types.h:142
const SampleTime SAMPLE_TIME_MINIMUM
The minimum valid sample time.
Definition: types.h:127