MuseScore/mscore/importmidi_operation.h
2013-09-11 12:57:31 +04:00

103 lines
1.8 KiB
C++

#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
struct MidiOperation
{
enum class Type {
DO_IMPORT = 0,
QUANT_VALUE,
QUANT_REDUCE,
QUANT_HUMAN,
DO_LHRH_SEPARATION,
LHRH_METHOD,
LHRH_SPLIT_OCTAVE,
LHRH_SPLIT_NOTE,
USE_DOTS,
USE_MULTIPLE_VOICES,
TUPLET_SEARCH,
TUPLET_2,
TUPLET_3,
TUPLET_4,
TUPLET_5,
TUPLET_7,
TUPLET_9,
CHANGE_CLEF,
SPLIT_DRUMS,
SHOW_STAFF_BRACKET,
PICKUP_MEASURE,
SWING,
LYRIC_TRACK_INDEX
} type;
QVariant value;
enum class QuantValue {
FROM_PREFERENCES = 0,
N_4,
N_8,
N_16,
N_32,
N_64,
N_128
};
enum class Swing {
NONE = 0,
SWING,
SHUFFLE
};
enum class LHRHMethod {
HAND_WIDTH = 0,
SPECIFIED_PITCH
};
enum class Octave {
C_1 = 0,
C0,
C1,
C2,
C3,
C4,
C5,
C6,
C7,
C8,
C9
};
enum class Note {
C = 0,
Cis,
D,
Dis,
E,
F,
Fis,
G,
Gis,
A,
Ais,
H
};
};
} // namespace Ms
#endif // IMPORTMIDI_OPERATION_H