20 #ifndef __IMPORTMXMLPASS1_H__ 21 #define __IMPORTMXMLPASS1_H__ 83 MxmlTupletFlags determineTupletAction(
const Fraction noteDuration,
90 bool m_inTuplet {
false };
91 bool m_implicit {
false };
92 int m_actualNotes { 1 };
93 int m_normalNotes { 1 };
95 int m_tupletType { 0 };
96 int m_tupletCount { 0 };
118 void initPartState(
const QString& partId);
121 void scorePartwise();
122 void identification();
125 void pageLayout(
PageFormat& pf,
const qreal conversion,
int& pageWidth,
int& pageHeight);
127 void partGroup(
const int scoreParts,
MusicXmlPartGroupList& partGroupList, MusicXmlPartGroupMap& partGroups);
129 void scoreInstrument(
const QString& partId);
130 void midiInstrument(
const QString& partId);
133 void attributes(
const QString& partId,
const Fraction cTime);
134 void clef(
const QString& partId);
137 void staves(
const QString& partId);
138 void direction(
const QString& partId,
const Fraction cTime);
139 void directionType(
const Fraction cTime, QList<MxmlOctaveShiftDesc>& starts, QList<MxmlOctaveShiftDesc>& stops);
143 void notePrintSpacingNo(
Fraction& dura);
147 void timeModification(
Fraction& timeMod);
148 void pitch(
int& step,
float& alter,
int& oct);
150 void skipLogCurrElem();
151 bool determineMeasureLength(QVector<Fraction>& ml)
const;
152 VoiceList getVoiceList(
const QString
id)
const;
153 bool determineStaffMoveVoice(
const QString&
id,
const int mxStaff,
const QString& mxVoice,
154 int& msMove,
int& msTrack,
int& msVoice)
const;
155 int trackForPart(
const QString&
id)
const;
156 bool hasPart(
const QString&
id)
const;
157 Part*
getPart(
const QString&
id)
const {
return _partMap.value(
id); }
160 void setDrumsetDefault(
const QString&
id,
const QString& instrId,
const NoteHead::Group hg,
const int line,
const Direction sd);
162 Fraction getMeasureStart(
const int i)
const;
163 int octaveShift(
const QString&
id,
const int staff,
const Fraction f)
const;
167 void setFirstInstr(
const QString&
id,
const Fraction stime);
QString _firstInstrId
First instrument id.
Definition: importmxmlpass1.h:184
MxmlOctaveShiftDesc()
Definition: importmxmlpass1.h:59
Definition: durationtype.h:28
Definition of class MusicXML.
Fraction _firstInstrSTime
First instrument start time.
Definition: importmxmlpass1.h:183
qreal evenBottomMargin
Definition: importmxmlpass1.h:40
MxmlStartStop
Definition: importmxmlpass1.h:67
Definition of Score class.
QMap< QString, VoiceDesc > VoiceList
Definition: importxmlfirstpass.h:21
bool twosided
Definition: importmxmlpass1.h:43
QMap< QString, MusicXMLDrumset > _drumsets
Drumset for each part, mapped on part id.
Definition: importmxmlpass1.h:176
Definition: importmxmllogger.h:20
QList< CreditWords * > CreditWordsList
Definition: musicxml.h:75
QMap< QString, Part * > PartMap
Definition: importmxmlpass1.h:46
Definition: importxmlfirstpass.h:23
PartMap _partMap
TODO merge into MusicXmlPart ??
Definition: importmxmlpass1.h:175
Fraction _timeSigDura
Measure duration according to last timesig read.
Definition: importmxmlpass1.h:181
qreal oddTopMargin
Definition: importmxmlpass1.h:41
MusicXMLDrumset getDrumset(const QString &id) const
Definition: importmxmlpass1.h:159
qreal oddBottomMargin
Definition: importmxmlpass1.h:42
QFlags< MxmlTupletFlag > MxmlTupletFlags
Definition: importmxmlpass1.h:79
short num
Definition: importmxmlpass1.h:58
Type
Definition: importmxmlpass1.h:54
std::map< QString, MxmlTupletState > MxmlTupletStates
Definition: importmxmlpass1.h:99
Score * _score
MuseScore score.
Definition: importmxmlpass1.h:177
Definition: importmxmlpass1.h:81
QMap< int, MxmlOctaveShiftDesc > _octaveShifts
Pending octave-shifts.
Definition: importmxmlpass1.h:182
std::map< int, MusicXmlPartGroup * > MusicXmlPartGroupMap
Definition: importmxmlpass1.cpp:1498
MxmlOctaveShiftDesc(Type _tp, short _size, Fraction _tm)
Definition: importmxmlpass1.h:60
qreal evenTopMargin
Definition: importmxmlpass1.h:39
Definition: importmxmlpass1.h:115
Definition: importmxmlpass1.h:53
MxmlLogger * _logger
Error logger.
Definition: importmxmlpass1.h:178
FileError
Definition: score.h:395
Part * getPart(const QString &id) const
Definition: importmxmlpass1.h:157
QVector< Fraction > _measureStart
Start time of each measure.
Definition: importmxmlpass1.h:174
short size
Definition: importmxmlpass1.h:56
Definition: importxmlfirstpass.h:49
Definition: aeolus.cpp:26
QVector< Fraction > _measureLength
Length of each measure.
Definition: importmxmlpass1.h:173
QXmlStreamReader _e
Definition: importmxmlpass1.h:170
MxmlTupletFlag
Definition: importmxmlpass1.h:71
qreal oddLeftMargin
Definition: importmxmlpass1.h:38
const QSizeF & size() const
Definition: read206.h:38
QMap< QString, MusicXMLDrumInstrument > MusicXMLDrumset
A MusicXML drumset or set of instruments in a multi-instrument part.
Definition: musicxmlsupport.h:160
QSizeF _size
Definition: read206.h:25
Fraction missingTupletDuration(const Fraction duration)
Definition: importmxmlpass1.cpp:2753
Direction
Definition: types.h:282
QSizeF size
Definition: importmxmlpass1.h:35
qreal printableWidth
Definition: importmxmlpass1.h:36
Group
Definition: note.h:56
Definition: fraction.h:46
QMap< QString, MusicXmlPart > _parts
Parts data, mapped on part id.
Definition: importmxmlpass1.h:172
qreal evenLeftMargin
Definition: importmxmlpass1.h:37
void determineTupletFractionAndFullDuration(const Fraction duration, Fraction &fraction, Fraction &fullDuration)
Split duration into two factors where fullDuration is note sized (i.e.
Definition: importmxmlpass1.cpp:2632
Detect overlap in a voice, which is when a voice has two or more notes active at the same time...
Definition: musicxmlsupport.h:108
std::vector< MusicXmlPartGroup * > MusicXmlPartGroupList
Definition: musicxml.h:125
Fraction time
Definition: importmxmlpass1.h:57
int _divs
Current MusicXML divisions value.
Definition: importmxmlpass1.h:171
MusicXmlPart getMusicXmlPart(const QString &id) const
Definition: importmxmlpass1.h:158
Type tp
Definition: importmxmlpass1.h:55