MuseScore  3.4
Music composition and notation
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Bww::MxmlWriter Class Reference

The writer that generates MusicXML output. More...

#include <mxmlwriter.h>

Inheritance diagram for Bww::MxmlWriter:
Inheritance graph
[legend]
Collaboration diagram for Bww::MxmlWriter:
Collaboration graph
[legend]

Classes

struct  StepAlterOct
 

Public Member Functions

 MxmlWriter ()
 MxmlWriter constructor. More...
 
void beginMeasure (const Bww::MeasureBeginFlags mbf)
 Begin a new measure. More...
 
void endMeasure (const Bww::MeasureEndFlags mef)
 End the current measure. More...
 
void header (const QString title, const QString type, const QString composer, const QString footer, const unsigned int temp)
 Write the header. More...
 
void note (const QString pitch, const QVector< BeamType > beamList, const QString type, const int dots, bool tieStart=false, bool tieStop=false, StartStop triplet=ST_NONE, bool grace=false)
 Write a single note. More...
 
void setOutDevice (QIODevice *outDevice)
 
void tsig (const int beats, const int beat)
 Store beats and beat type for later use. More...
 
void trailer ()
 Write the trailer. More...
 
- Public Member Functions inherited from Bww::Writer
QString instrumentName () const
 
int midiProgram () const
 

Private Member Functions

int wholeDur () const
 Whole note duration. More...
 

Private Attributes

QTextStream out
 The output text stream. More...
 
int beats
 Number of beats. More...
 
int beat
 Beat type. More...
 
QMap< QString, StepAlterOctstepAlterOctMap
 Map bww pitch to step/alter/oct. More...
 
QMap< QString, QString > typeMap
 Map bww note types to MusicXML. More...
 
unsigned int regularMeasureNumber
 Current regular measure number. More...
 
unsigned int irregularMeasureNumber
 Current irregular measure number. More...
 
unsigned int tempo
 Tempo (0 = not specified) More...
 
unsigned int ending
 Current ending. More...
 

Detailed Description

The writer that generates MusicXML output.

Constructor & Destructor Documentation

◆ MxmlWriter()

Bww::MxmlWriter::MxmlWriter ( )

MxmlWriter constructor.

Member Function Documentation

◆ beginMeasure()

void Bww::MxmlWriter::beginMeasure ( const Bww::MeasureBeginFlags  mbf)
virtual

Begin a new measure.

Implements Bww::Writer.

◆ endMeasure()

void Bww::MxmlWriter::endMeasure ( const Bww::MeasureEndFlags  mef)
virtual

End the current measure.

Implements Bww::Writer.

◆ header()

void Bww::MxmlWriter::header ( const QString  title,
const QString  type,
const QString  composer,
const QString  footer,
const unsigned int  temp 
)
virtual

Write the header.

Implements Bww::Writer.

◆ note()

void Bww::MxmlWriter::note ( const QString  pitch,
const QVector< BeamType beamList,
const QString  type,
const int  dots,
bool  tieStart = false,
bool  tieStop = false,
StartStop  triplet = ST_NONE,
bool  grace = false 
)
virtual

Write a single note.

Implements Bww::Writer.

◆ setOutDevice()

void Bww::MxmlWriter::setOutDevice ( QIODevice *  outDevice)
inline

◆ trailer()

void Bww::MxmlWriter::trailer ( )
virtual

Write the trailer.

Implements Bww::Writer.

◆ tsig()

void Bww::MxmlWriter::tsig ( const int  beats,
const int  beat 
)
virtual

Store beats and beat type for later use.

Implements Bww::Writer.

◆ wholeDur()

int Bww::MxmlWriter::wholeDur ( ) const
inlineprivate

Whole note duration.

Member Data Documentation

◆ beat

int Bww::MxmlWriter::beat
private

Beat type.

◆ beats

int Bww::MxmlWriter::beats
private

Number of beats.

◆ ending

unsigned int Bww::MxmlWriter::ending
private

Current ending.

◆ irregularMeasureNumber

unsigned int Bww::MxmlWriter::irregularMeasureNumber
private

Current irregular measure number.

◆ out

QTextStream Bww::MxmlWriter::out
private

The output text stream.

◆ regularMeasureNumber

unsigned int Bww::MxmlWriter::regularMeasureNumber
private

Current regular measure number.

◆ stepAlterOctMap

QMap<QString, StepAlterOct> Bww::MxmlWriter::stepAlterOctMap
private

Map bww pitch to step/alter/oct.

◆ tempo

unsigned int Bww::MxmlWriter::tempo
private

Tempo (0 = not specified)

◆ typeMap

QMap<QString, QString> Bww::MxmlWriter::typeMap
private

Map bww note types to MusicXML.


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