MuseScore
3.4
Music composition and notation
|
The writer that imports into MuseScore. More...
Classes | |
struct | StepAlterOct |
Public Member Functions | |
MsScWriter () | |
MsScWriter 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< Bww::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 | setScore (Ms::Score *s) |
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 | |
virtual 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)=0 |
QString | instrumentName () const |
int | midiProgram () const |
Private Member Functions | |
void | doTriplet (Ms::Chord *cr, StartStop triplet=ST_NONE) |
Handle the triplet. More... | |
Private Attributes | |
Ms::Score * | score |
The score. 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 | measureNumber |
Current measure number. More... | |
Ms::Fraction | tick |
Current tick. More... | |
Ms::Measure * | currentMeasure |
Current measure. More... | |
Ms::Tuplet * | tuplet |
Current tuplet. More... | |
Ms::Volta * | lastVolta |
Current volta. More... | |
unsigned int | tempo |
Tempo (0 = not specified) More... | |
unsigned int | ending |
Current ending. More... | |
QList< Ms::Chord * > | currentGraceNotes |
Static Private Attributes | |
static const int | WHOLE_DUR = 64 |
Whole note duration. More... | |
The writer that imports into MuseScore.
Bww::MsScWriter::MsScWriter | ( | ) |
MsScWriter constructor.
|
virtual |
Begin a new measure.
Implements Bww::Writer.
Handle the triplet.
|
virtual |
End the current measure.
Implements Bww::Writer.
|
virtual |
Write the header.
Implements Bww::Writer.
void Bww::MsScWriter::note | ( | const QString | pitch, |
const QVector< Bww::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.
|
inline |
|
virtual |
Write the trailer.
Implements Bww::Writer.
|
virtual |
Store beats and beat type for later use.
Implements Bww::Writer.
|
private |
Beat type.
|
private |
Number of beats.
|
private |
|
private |
Current measure.
|
private |
Current ending.
|
private |
Current volta.
|
private |
Current measure number.
|
private |
The score.
|
private |
Map bww pitch to step/alter/oct.
|
private |
Tempo (0 = not specified)
|
private |
Current tick.
|
private |
Current tuplet.
|
private |
Map bww note types to MusicXML.
|
staticprivate |
Whole note duration.