2013-05-27 00:13:13 +02:00
|
|
|
#ifndef IMPORTMIDI_OPERATION_H
|
|
|
|
#define IMPORTMIDI_OPERATION_H
|
|
|
|
|
|
|
|
|
|
|
|
namespace Ms {
|
|
|
|
|
|
|
|
// all enums below should have default indexes like 0, 1, 2...
|
|
|
|
// text names for enum items are in OperationsModel class
|
|
|
|
|
2013-05-30 16:04:02 +02:00
|
|
|
struct MidiOperation
|
2013-05-27 00:13:13 +02:00
|
|
|
{
|
2013-05-30 16:04:02 +02:00
|
|
|
enum class Type {
|
2013-05-27 00:13:13 +02:00
|
|
|
DO_IMPORT = 0,
|
2013-06-05 21:07:21 +02:00
|
|
|
|
2013-05-27 00:13:13 +02:00
|
|
|
QUANT_VALUE,
|
|
|
|
QUANT_REDUCE,
|
2013-06-05 21:07:21 +02:00
|
|
|
QUANT_HUMAN,
|
2013-05-27 00:13:13 +02:00
|
|
|
|
|
|
|
DO_LHRH_SEPARATION,
|
|
|
|
LHRH_METHOD,
|
|
|
|
LHRH_SPLIT_OCTAVE,
|
|
|
|
LHRH_SPLIT_NOTE,
|
|
|
|
|
2013-07-09 02:09:46 +02:00
|
|
|
USE_DOTS,
|
|
|
|
|
|
|
|
TUPLET_SEARCH,
|
|
|
|
TUPLET_2,
|
|
|
|
TUPLET_3,
|
|
|
|
TUPLET_4,
|
|
|
|
TUPLET_5,
|
2013-07-09 15:10:43 +02:00
|
|
|
TUPLET_7,
|
|
|
|
TUPLET_9
|
2013-05-27 00:13:13 +02:00
|
|
|
} type;
|
|
|
|
|
|
|
|
QVariant value;
|
|
|
|
|
2013-05-30 16:04:02 +02:00
|
|
|
enum class QuantValue {
|
2013-05-27 00:13:13 +02:00
|
|
|
SHORTEST_IN_BAR = 0,
|
|
|
|
FROM_PREFERENCES,
|
|
|
|
N_4,
|
|
|
|
N_8,
|
|
|
|
N_16,
|
|
|
|
N_32,
|
|
|
|
N_64
|
|
|
|
};
|
2013-05-30 16:04:02 +02:00
|
|
|
|
|
|
|
enum class LHRHMethod {
|
2013-05-27 00:13:13 +02:00
|
|
|
HAND_WIDTH = 0,
|
2013-05-30 16:04:02 +02:00
|
|
|
FIXED_PITCH
|
2013-05-27 00:13:13 +02:00
|
|
|
};
|
|
|
|
|
2013-05-30 16:04:02 +02:00
|
|
|
enum class Octave {
|
2013-05-27 00:13:13 +02:00
|
|
|
C_1 = 0,
|
|
|
|
C0,
|
|
|
|
C1,
|
|
|
|
C2,
|
|
|
|
C3,
|
|
|
|
C4,
|
|
|
|
C5,
|
|
|
|
C6,
|
|
|
|
C7,
|
|
|
|
C8,
|
|
|
|
C9
|
|
|
|
};
|
|
|
|
|
2013-05-30 16:04:02 +02:00
|
|
|
enum class Note {
|
2013-05-27 00:13:13 +02:00
|
|
|
C = 0,
|
|
|
|
Cis,
|
|
|
|
D,
|
|
|
|
Dis,
|
|
|
|
E,
|
|
|
|
F,
|
|
|
|
Fis,
|
|
|
|
G,
|
|
|
|
Gis,
|
|
|
|
A,
|
|
|
|
Ais,
|
|
|
|
H
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Ms
|
|
|
|
|
|
|
|
|
|
|
|
#endif // IMPORTMIDI_OPERATION_H
|