MuseScore  3.4
Music composition and notation
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Ms::MusicXMLParserDirection Class Reference

#include <importmxmlpass2.h>

Collaboration diagram for Ms::MusicXMLParserDirection:
Collaboration graph
[legend]

Public Member Functions

 MusicXMLParserDirection (QXmlStreamReader &e, Score *score, const MusicXMLParserPass1 &pass1, MusicXMLParserPass2 &pass2, MxmlLogger *logger)
 MusicXMLParserDirection constructor. More...
 
void direction (const QString &partId, Measure *measure, const Fraction &tick, const int divisions, MusicXmlSpannerMap &spanners)
 Parse the /score-partwise/part/measure/direction node. More...
 

Private Member Functions

void directionType (QList< MusicXmlSpannerDesc > &starts, QList< MusicXmlSpannerDesc > &stops)
 Parse the /score-partwise/part/measure/direction/direction-type node. More...
 
void bracket (const QString &type, const int number, QList< MusicXmlSpannerDesc > &starts, QList< MusicXmlSpannerDesc > &stops)
 Parse the /score-partwise/part/measure/direction/direction-type/bracket node. More...
 
void octaveShift (const QString &type, const int number, QList< MusicXmlSpannerDesc > &starts, QList< MusicXmlSpannerDesc > &stops)
 Parse the /score-partwise/part/measure/direction/direction-type/octave-shift node. More...
 
void pedal (const QString &type, const int number, QList< MusicXmlSpannerDesc > &starts, QList< MusicXmlSpannerDesc > &stops)
 Parse the /score-partwise/part/measure/direction/direction-type/pedal node. More...
 
void dashes (const QString &type, const int number, QList< MusicXmlSpannerDesc > &starts, QList< MusicXmlSpannerDesc > &stops)
 Parse the /score-partwise/part/measure/direction/direction-type/dashes node. More...
 
void wedge (const QString &type, const int number, QList< MusicXmlSpannerDesc > &starts, QList< MusicXmlSpannerDesc > &stops)
 Parse the /score-partwise/part/measure/direction/direction-type/wedge node. More...
 
QString metronome (double &r)
 Parse the /score-partwise/part/measure/direction/direction-type/metronome node. More...
 
void sound ()
 Parse the /score-partwise/part/measure/direction/sound node. More...
 
void dynamics ()
 Parse the /score-partwise/part/measure/direction/direction-type/dynamics node. More...
 
void handleRepeats (Measure *measure, const int track)
 
void skipLogCurrElem ()
 Skip the current element, log debug as info. More...
 

Private Attributes

QXmlStreamReader & _e
 
Score *const _score
 
const MusicXMLParserPass1_pass1
 
MusicXMLParserPass2_pass2
 
MxmlLogger_logger
 Error logger. More...
 
QStringList _dynamicsList
 
QString _enclosure
 
QString _wordsText
 
QString _metroText
 
QString _rehearsalText
 
QString _dynaVelocity
 
QString _tempo
 
QString _sndCapo
 
QString _sndCoda
 
QString _sndDacapo
 
QString _sndDalsegno
 
QString _sndSegno
 
QString _sndFine
 
bool _hasDefaultY
 
qreal _defaultY
 
bool _coda
 
bool _segno
 
double _tpoMetro
 
double _tpoSound
 
QList< Element * > _elems
 
Fraction _offset
 

Constructor & Destructor Documentation

◆ MusicXMLParserDirection()

Ms::MusicXMLParserDirection::MusicXMLParserDirection ( QXmlStreamReader &  e,
Score score,
const MusicXMLParserPass1 pass1,
MusicXMLParserPass2 pass2,
MxmlLogger logger 
)

Member Function Documentation

◆ bracket()

void Ms::MusicXMLParserDirection::bracket ( const QString &  type,
const int  number,
QList< MusicXmlSpannerDesc > &  starts,
QList< MusicXmlSpannerDesc > &  stops 
)
private

Parse the /score-partwise/part/measure/direction/direction-type/bracket node.

◆ dashes()

void Ms::MusicXMLParserDirection::dashes ( const QString &  type,
const int  number,
QList< MusicXmlSpannerDesc > &  starts,
QList< MusicXmlSpannerDesc > &  stops 
)
private

Parse the /score-partwise/part/measure/direction/direction-type/dashes node.

◆ direction()

void Ms::MusicXMLParserDirection::direction ( const QString &  partId,
Measure measure,
const Fraction tick,
const int  divisions,
MusicXmlSpannerMap spanners 
)

Parse the /score-partwise/part/measure/direction node.

◆ directionType()

void Ms::MusicXMLParserDirection::directionType ( QList< MusicXmlSpannerDesc > &  starts,
QList< MusicXmlSpannerDesc > &  stops 
)
private

Parse the /score-partwise/part/measure/direction/direction-type node.

◆ dynamics()

void Ms::MusicXMLParserDirection::dynamics ( )
private

Parse the /score-partwise/part/measure/direction/direction-type/dynamics node.

◆ handleRepeats()

void Ms::MusicXMLParserDirection::handleRepeats ( Measure measure,
const int  track 
)
private

◆ metronome()

QString Ms::MusicXMLParserDirection::metronome ( double &  r)
private

Parse the /score-partwise/part/measure/direction/direction-type/metronome node.

Convert to text and set r to calculated tempo.

◆ octaveShift()

void Ms::MusicXMLParserDirection::octaveShift ( const QString &  type,
const int  number,
QList< MusicXmlSpannerDesc > &  starts,
QList< MusicXmlSpannerDesc > &  stops 
)
private

Parse the /score-partwise/part/measure/direction/direction-type/octave-shift node.

◆ pedal()

void Ms::MusicXMLParserDirection::pedal ( const QString &  type,
const int  number,
QList< MusicXmlSpannerDesc > &  starts,
QList< MusicXmlSpannerDesc > &  stops 
)
private

Parse the /score-partwise/part/measure/direction/direction-type/pedal node.

◆ skipLogCurrElem()

void Ms::MusicXMLParserDirection::skipLogCurrElem ( )
private

Skip the current element, log debug as info.

◆ sound()

void Ms::MusicXMLParserDirection::sound ( )
private

Parse the /score-partwise/part/measure/direction/sound node.

◆ wedge()

void Ms::MusicXMLParserDirection::wedge ( const QString &  type,
const int  number,
QList< MusicXmlSpannerDesc > &  starts,
QList< MusicXmlSpannerDesc > &  stops 
)
private

Parse the /score-partwise/part/measure/direction/direction-type/wedge node.

Member Data Documentation

◆ _coda

bool Ms::MusicXMLParserDirection::_coda
private

◆ _defaultY

qreal Ms::MusicXMLParserDirection::_defaultY
private

◆ _dynamicsList

QStringList Ms::MusicXMLParserDirection::_dynamicsList
private

◆ _dynaVelocity

QString Ms::MusicXMLParserDirection::_dynaVelocity
private

◆ _e

QXmlStreamReader& Ms::MusicXMLParserDirection::_e
private

◆ _elems

QList<Element*> Ms::MusicXMLParserDirection::_elems
private

◆ _enclosure

QString Ms::MusicXMLParserDirection::_enclosure
private

◆ _hasDefaultY

bool Ms::MusicXMLParserDirection::_hasDefaultY
private

◆ _logger

MxmlLogger* Ms::MusicXMLParserDirection::_logger
private

Error logger.

◆ _metroText

QString Ms::MusicXMLParserDirection::_metroText
private

◆ _offset

Fraction Ms::MusicXMLParserDirection::_offset
private

◆ _pass1

const MusicXMLParserPass1& Ms::MusicXMLParserDirection::_pass1
private

◆ _pass2

MusicXMLParserPass2& Ms::MusicXMLParserDirection::_pass2
private

◆ _rehearsalText

QString Ms::MusicXMLParserDirection::_rehearsalText
private

◆ _score

Score* const Ms::MusicXMLParserDirection::_score
private

◆ _segno

bool Ms::MusicXMLParserDirection::_segno
private

◆ _sndCapo

QString Ms::MusicXMLParserDirection::_sndCapo
private

◆ _sndCoda

QString Ms::MusicXMLParserDirection::_sndCoda
private

◆ _sndDacapo

QString Ms::MusicXMLParserDirection::_sndDacapo
private

◆ _sndDalsegno

QString Ms::MusicXMLParserDirection::_sndDalsegno
private

◆ _sndFine

QString Ms::MusicXMLParserDirection::_sndFine
private

◆ _sndSegno

QString Ms::MusicXMLParserDirection::_sndSegno
private

◆ _tempo

QString Ms::MusicXMLParserDirection::_tempo
private

◆ _tpoMetro

double Ms::MusicXMLParserDirection::_tpoMetro
private

◆ _tpoSound

double Ms::MusicXMLParserDirection::_tpoSound
private

◆ _wordsText

QString Ms::MusicXMLParserDirection::_wordsText
private

The documentation for this class was generated from the following files: