MuseScore
3.4
Music composition and notation
|
The writer that generates MusicXML output. More...
#include <mxmlwriter.h>
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, StepAlterOct > | stepAlterOctMap |
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... | |
The writer that generates MusicXML output.
Bww::MxmlWriter::MxmlWriter | ( | ) |
MxmlWriter constructor.
|
virtual |
Begin a new measure.
Implements Bww::Writer.
|
virtual |
End the current measure.
Implements Bww::Writer.
|
virtual |
Write the header.
Implements Bww::Writer.
|
virtual |
Write a single note.
Implements Bww::Writer.
|
inline |
|
virtual |
Write the trailer.
Implements Bww::Writer.
|
virtual |
Store beats and beat type for later use.
Implements Bww::Writer.
|
inlineprivate |
Whole note duration.
|
private |
Beat type.
|
private |
Number of beats.
|
private |
Current ending.
|
private |
Current irregular measure number.
|
private |
The output text stream.
|
private |
Current regular measure number.
|
private |
Map bww pitch to step/alter/oct.
|
private |
Tempo (0 = not specified)
|
private |
Map bww note types to MusicXML.