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

The writer that imports into MuseScore. More...

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

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::Scorescore
 The score. 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 measureNumber
 Current measure number. More...
 
Ms::Fraction tick
 Current tick. More...
 
Ms::MeasurecurrentMeasure
 Current measure. More...
 
Ms::Tuplettuplet
 Current tuplet. More...
 
Ms::VoltalastVolta
 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...
 

Detailed Description

The writer that imports into MuseScore.

Constructor & Destructor Documentation

◆ MsScWriter()

Bww::MsScWriter::MsScWriter ( )

MsScWriter constructor.

Member Function Documentation

◆ beginMeasure()

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

Begin a new measure.

Implements Bww::Writer.

◆ doTriplet()

void Bww::MsScWriter::doTriplet ( Ms::Chord cr,
StartStop  triplet = ST_NONE 
)
private

Handle the triplet.

◆ endMeasure()

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

End the current measure.

Implements Bww::Writer.

◆ header()

void Bww::MsScWriter::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::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.

◆ setScore()

void Bww::MsScWriter::setScore ( Ms::Score s)
inline

◆ trailer()

void Bww::MsScWriter::trailer ( )
virtual

Write the trailer.

Implements Bww::Writer.

◆ tsig()

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

Store beats and beat type for later use.

Implements Bww::Writer.

Member Data Documentation

◆ beat

int Bww::MsScWriter::beat
private

Beat type.

◆ beats

int Bww::MsScWriter::beats
private

Number of beats.

◆ currentGraceNotes

QList<Ms::Chord*> Bww::MsScWriter::currentGraceNotes
private

◆ currentMeasure

Ms::Measure* Bww::MsScWriter::currentMeasure
private

Current measure.

◆ ending

unsigned int Bww::MsScWriter::ending
private

Current ending.

◆ lastVolta

Ms::Volta* Bww::MsScWriter::lastVolta
private

Current volta.

◆ measureNumber

unsigned int Bww::MsScWriter::measureNumber
private

Current measure number.

◆ score

Ms::Score* Bww::MsScWriter::score
private

The score.

◆ stepAlterOctMap

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

Map bww pitch to step/alter/oct.

◆ tempo

unsigned int Bww::MsScWriter::tempo
private

Tempo (0 = not specified)

◆ tick

Ms::Fraction Bww::MsScWriter::tick
private

Current tick.

◆ tuplet

Ms::Tuplet* Bww::MsScWriter::tuplet
private

Current tuplet.

◆ typeMap

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

Map bww note types to MusicXML.

◆ WHOLE_DUR

const int Bww::MsScWriter::WHOLE_DUR = 64
staticprivate

Whole note duration.


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