29 #include <QtCore/QMap> 30 #include <QtCore/QString> 31 #include <QtCore/QTextStream> 49 void header(
const QString title,
const QString type,
50 const QString composer,
const QString footer,
51 const unsigned int temp);
52 void note(
const QString pitch,
const QVector<BeamType> beamList,
53 const QString type,
const int dots,
54 bool tieStart =
false,
bool tieStop =
false,
67 : s(step), a(alter), o(oct) {};
82 #endif // MXMLWRITER_H unsigned int irregularMeasureNumber
Current irregular measure number.
Definition: mxmlwriter.h:75
int beats
Number of beats.
Definition: mxmlwriter.h:70
The writer that generates MusicXML output.
Definition: mxmlwriter.h:43
MxmlWriter()
MxmlWriter constructor.
Definition: mxmlwriter.cpp:36
QChar s
< MusicXML step/alter/oct values
Definition: mxmlwriter.h:63
QMap< QString, StepAlterOct > stepAlterOctMap
Map bww pitch to step/alter/oct.
Definition: mxmlwriter.h:72
int wholeDur() const
Whole note duration.
Definition: mxmlwriter.h:61
void endMeasure(const Bww::MeasureEndFlags mef)
End the current measure.
Definition: mxmlwriter.cpp:149
void tsig(const int beats, const int beat)
Store beats and beat type for later use.
Definition: mxmlwriter.cpp:332
int beat
Beat type.
Definition: mxmlwriter.h:71
unsigned int tempo
Tempo (0 = not specified)
Definition: mxmlwriter.h:76
The flags that need to be handled at the beginning of a measure.
Definition: writer.h:53
Symbol type to text translation.
Definition: lexer.cpp:34
unsigned int ending
Current ending.
Definition: mxmlwriter.h:77
unsigned int regularMeasureNumber
Current regular measure number.
Definition: mxmlwriter.h:74
The flags that need to be handled at the end of a measure.
Definition: writer.h:72
void beginMeasure(const Bww::MeasureBeginFlags mbf)
Begin a new measure.
Definition: mxmlwriter.cpp:68
void setOutDevice(QIODevice *outDevice)
Definition: mxmlwriter.h:57
QTextStream out
The output text stream.
Definition: mxmlwriter.h:69
StepAlterOct(QChar step='C', int alter=0, int oct=1)
Definition: mxmlwriter.h:66
void header(const QString title, const QString type, const QString composer, const QString footer, const unsigned int temp)
Write the header.
Definition: mxmlwriter.cpp:278
int a
Definition: mxmlwriter.h:64
Definition of class Writer.
StartStop
Definition: symbols.h:51
int o
Definition: mxmlwriter.h:65
Definition: mxmlwriter.h:62
The writer that generates the output.
Definition: writer.h:91
QMap< QString, QString > typeMap
Map bww note types to MusicXML.
Definition: mxmlwriter.h:73
void trailer()
Write the trailer.
Definition: mxmlwriter.cpp:347
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.
Definition: mxmlwriter.cpp:187