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

Parse the note time related part of the /score-partwise/part/measure/note node. More...

#include <importmxmlnoteduration.h>

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

Public Member Functions

 mxmlNoteDuration (int divs, MxmlLogger *logger)
 
QString checkTiming (const QString &type, const bool rest, const bool grace)
 Do timing error checks. More...
 
Fraction dura () const
 
int dots () const
 
TDuration normalType () const
 
bool readProperties (QXmlStreamReader &e)
 Handle selected child elements of the /score-partwise/part/measure/note/duration node. More...
 
Fraction timeMod () const
 

Private Member Functions

void duration (QXmlStreamReader &e)
 Parse the /score-partwise/part/measure/note/duration node. More...
 
void timeModification (QXmlStreamReader &e)
 Parse the /score-partwise/part/measure/note/time-modification node. More...
 

Private Attributes

const int _divs
 
int _dots = 0
 
Fraction _dura
 
TDuration _normalType
 
Fraction _timeMod { 1, 1 }
 
MxmlLogger_logger
 Error logger. More...
 

Detailed Description

Parse the note time related part of the /score-partwise/part/measure/note node.

Constructor & Destructor Documentation

◆ mxmlNoteDuration()

Ms::mxmlNoteDuration::mxmlNoteDuration ( int  divs,
MxmlLogger logger 
)
inline

Member Function Documentation

◆ checkTiming()

QString Ms::mxmlNoteDuration::checkTiming ( const QString &  type,
const bool  rest,
const bool  grace 
)

Do timing error checks.

Return empty string if OK, message in case of error.

◆ dots()

int Ms::mxmlNoteDuration::dots ( ) const
inline

◆ dura()

Fraction Ms::mxmlNoteDuration::dura ( ) const
inline

◆ duration()

void Ms::mxmlNoteDuration::duration ( QXmlStreamReader &  e)
private

Parse the /score-partwise/part/measure/note/duration node.

◆ normalType()

TDuration Ms::mxmlNoteDuration::normalType ( ) const
inline

◆ readProperties()

bool Ms::mxmlNoteDuration::readProperties ( QXmlStreamReader &  e)

Handle selected child elements of the /score-partwise/part/measure/note/duration node.

Return true if handled.

◆ timeMod()

Fraction Ms::mxmlNoteDuration::timeMod ( ) const
inline

◆ timeModification()

void Ms::mxmlNoteDuration::timeModification ( QXmlStreamReader &  e)
private

Parse the /score-partwise/part/measure/note/time-modification node.

Member Data Documentation

◆ _divs

const int Ms::mxmlNoteDuration::_divs
private

◆ _dots

int Ms::mxmlNoteDuration::_dots = 0
private

◆ _dura

Fraction Ms::mxmlNoteDuration::_dura
private

◆ _logger

MxmlLogger* Ms::mxmlNoteDuration::_logger
private

Error logger.

◆ _normalType

TDuration Ms::mxmlNoteDuration::_normalType
private

◆ _timeMod

Fraction Ms::mxmlNoteDuration::_timeMod { 1, 1 }
private

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