1 #ifndef IMPORTMIDI_INNER_H 2 #define IMPORTMIDI_INNER_H 47 bool isTuplet =
false;
54 MidiOperations::TimeSigNumerator timeSigNumerator,
55 MidiOperations::TimeSigDenominator timeSigDenominator);
87 std::multimap<ReducedFraction, int>
volumes;
88 std::multimap<ReducedFraction, MidiChord>
chords;
89 std::multimap<ReducedFraction, MidiTuplet::TupletData>
tuplets;
92 void processPendingNotes(QList<MidiChord>& midiChords,
99 QList<std::pair<ReducedFraction, TDuration> >
103 void updateTupletsFromChords();
106 void updateTuplet(std::multimap<ReducedFraction, MidiTuplet::TupletData>::iterator &);
109 namespace MidiTuplet {
116 int tupletNumber = -1;
118 std::map<ReducedFraction, std::multimap<ReducedFraction, MidiChord>::iterator>
chords;
122 int firstChordIndex = -1;
126 bool haveIntersection(
const std::pair<ReducedFraction, ReducedFraction> &interval1,
127 const std::pair<ReducedFraction, ReducedFraction> &interval2,
128 bool strictComparison =
true);
129 bool haveIntersection(
const std::pair<ReducedFraction, ReducedFraction> &interval,
130 const std::vector<std::pair<ReducedFraction, ReducedFraction>> &intervals,
131 bool strictComparison =
true);
135 namespace MidiCharset {
139 std::string
fromUchar(
const uchar *text);
149 namespace MidiDuration {
151 double durationCount(
const QList<std::pair<ReducedFraction, TDuration> > &durations);
157 #endif // IMPORTMIDI_INNER_H DurationType
Definition: importmidi_meter.h:16
const MidiTrack * mtrack
Definition: importmidi_inner.h:79
Definition: durationtype.h:28
Global staff data not directly related to drawing.
Definition: staff.h:62
bool hadInitialNotes
Definition: importmidi_inner.h:85
int program
Definition: importmidi_inner.h:77
std::multimap< ReducedFraction, int > volumes
Definition: importmidi_inner.h:87
std::multimap< ReducedFraction, MidiTuplet::TupletData > tuplets
Definition: importmidi_inner.h:89
Definition: importmidi_chord.h:31
one measure in a system
Definition: measure.h:65
bool haveIntersection(const std::pair< ReducedFraction, ReducedFraction > &interval1, const std::pair< ReducedFraction, ReducedFraction > &interval2, bool strictComparison)
Definition: importmidi_inner.cpp:210
QString convertToCharset(const std::string &text)
Definition: importmidi_inner.cpp:235
Staff * staff
Definition: importmidi_inner.h:78
Definition: importmidi_inner.h:43
MidiOperations::TimeSigNumerator fractionNumeratorToUserValue(int n)
Definition: importmidi_inner.cpp:156
Definition: midifile.h:38
ReducedFraction sumLengthOfRests
Definition: importmidi_inner.h:121
int indexOfOperation
Definition: importmidi_inner.h:82
ReducedFraction regularSumError
Definition: importmidi_inner.h:120
void createKeys(QList< MTrack > &tracks)
Definition: importmidi.cpp:983
std::map< ReducedFraction, std::multimap< ReducedFraction, MidiChord >::iterator > chords
Definition: importmidi_inner.h:118
bool isDivisionInTps
Definition: importmidi_inner.h:84
Definition: importmidi_inner.h:37
ReducedFraction tupletSumError
Definition: importmidi_inner.h:119
ReducedFraction len
Definition: importmidi_inner.h:46
Definition: importmidi_inner.h:111
std::vector< DivLengthInfo > divLengths
Definition: importmidi_inner.h:48
int levelCount
Definition: importmidi_inner.h:33
ReducedFraction len
Definition: importmidi_inner.h:39
Definition: aeolus.cpp:26
int division
Definition: importmidi_inner.h:83
ReducedFraction pos
Definition: importmidi_inner.h:34
int level
Definition: importmidi_inner.h:32
TimeSigNumerator
Definition: importmidi_operation.h:38
Definition: importmidi_inner.h:30
QList< std::pair< ReducedFraction, TDuration > > toDurationList(const ReducedFraction &startTickInBar, const ReducedFraction &endTickInBar, const ReducedFraction &barFraction, const std::vector< MidiTuplet::TupletData > &tupletsInBar, DurationType durationType, bool useDots, bool printRestRemains)
Definition: importmidi_meter.cpp:472
Virtual base class for Chord, Rest and Tuplet.
Definition: duration.h:34
void createNotes(const ReducedFraction &lastTick, QList< MTrack > &tracks)
Definition: importmidi.cpp:948
ReducedFraction onTime
Definition: importmidi_inner.h:45
QString defaultCharset()
Definition: importmidi_inner.cpp:246
bool hasKey
Definition: importmidi_inner.h:81
double durationCount(const QList< std::pair< ReducedFraction, TDuration > > &durations)
Definition: importmidi_inner.cpp:270
std::string fromUchar(const uchar *text)
Definition: importmidi_inner.cpp:251
int level
Definition: importmidi_inner.h:40
Definition: importmidi_inner.h:71
TimeSigDenominator
Definition: importmidi_operation.h:51
ReducedFraction findBarStart(const ReducedFraction &time, const TimeSigMap *sigmap)
Definition: importmidi_inner.cpp:260
Definition: importmidi_fraction.h:9
ReducedFraction userTimeSigToFraction(MidiOperations::TimeSigNumerator timeSigNumerator, MidiOperations::TimeSigDenominator timeSigDenominator)
Definition: importmidi_inner.cpp:91
int id
Definition: importmidi_inner.h:113
std::map< ReducedFraction, int > staccatoChords
Definition: importmidi_inner.h:123
std::multimap< ReducedFraction, MidiChord > chords
Definition: importmidi_inner.h:88
MidiOperations::TimeSigDenominator fractionDenominatorToUserValue(int z)
Definition: importmidi_inner.cpp:186
const int TUPLET_BOUNDARY_LEVEL
Definition: importmidi_inner.h:28
void processMeta(MTrack &mt, bool isLyric)
Definition: importmidi.cpp:924
QString name
Definition: importmidi_inner.h:80