LibMusicXML 3.22
Visitors

Classes

class  sortvisitor
 A visitor that sorts a musicxml tree according to the dtd. More...
struct  scoreHeader
class  xmlpart2guido
 A score visitor to produce a Guido representation. More...
class  musicxmlQuery
 A general musicXML visitor to access properties through a class. More...
class  transposition
 A visitor that computes a diatonic transposition of a score. More...
class  clefvisitor
 key element data More...
class  clonevisitor
 A visitor that clones a musicxml tree. More...
class  keysignvisitor
 key element data More...
class  keyvisitor
 key element data More...
class  metronomevisitor
 key element data More...
class  scoreInstrument
 score-instrument data More...
class  midiInstrument
 midi-instrument data More...
class  midiwriter
 An abstract interface to be used with midicontextvisitor. More...
class  midicontextvisitor
 A Visitor that maintains a context for MIDI generation. More...
class  notevisitor
 A note visitor. More...
class  partlistvisitor
 Produces a summary of a MusicXML parts for groupings. More...
class  partsummary
 Produces a summary of a MusicXML part. More...
class  timesignvisitor
 key element data More...
class  transposevisitor
 a musicxml transpose element visitor More...
class  unrolled_clonevisitor
 A visitor that creates an "unrolled" version of a score. More...
class  visitor< C >

Typedefs

typedef int Chromatic
typedef int Diatonic

Functions

void init ()
int getTransposeInstrumentChromatic ()
 Query methods.
std::string getTransposeInstrumentName ()
int getStavesForFirstPart ()
std::vector< std::string > getAllClefsOfFirstPart ()
int getTotalStaves ()
virtual void visitStart (S_part &elt)
virtual void visitStart (S_staves &elt)
void visitEnd (S_clef &elt)
EXP std::ostream & operator<< (std::ostream &os, const keyvisitor &elt)
EXP std::ostream & operator<< (std::ostream &os, const notevisitor &elt)
 partHeader (std::string name, std::string nameabbr)
partGroupfind_first_of_partID_inGroup (std::string partID)
 Returns the part group with first occurence of partID (string)
void partID2range (partGroup &pGroup)
 Converts XML Part ID list to Guido's Staff range string.
bool checkLonelyBarFormat (int staffID)
 Checks if current staff is lonely in terms of BarFormat definition.
void visitStart (S_score_part &elt)
void visitStart (S_part_group &elt)

Variables

std::map< std::string, int > stavesInPart
std::map< std::string, std::set< std::string > > clefsInPart
std::string currentPart
std::vector< std::string > partIDs
std::string guidoRange
int guidoRangeStart
int guidoRangeStop
bool bracket
bool barlineGrouping
std::string fGroupName
std::string fGroupNameDisplay
bool visited
int xmlGroupNumber
std::string fPartName
std::string fPartNameAbbr
bool visited
std::map< int, partGroupfPartGroups
std::map< std::string, partHeaderfPartHeaders
int fPartGroupIncrementer
std::vector< int > fCurrentPartGroupIndex
std::map< std::string, int > part2staffmap
int staffCreatorCounter

Detailed Description

Function Documentation

◆ getAllClefsOfFirstPart()

std::vector< std::string > getAllClefsOfFirstPart ( )

Return the number of staves for the first part

◆ getStavesForFirstPart()

int getStavesForFirstPart ( )

Return the number of staves for the first part

◆ getTotalStaves()

int getTotalStaves ( )

Return the total number of staves

◆ getTransposeInstrumentChromatic()

int getTransposeInstrumentChromatic ( )

Provides Instrument Transposer of the score in Chromatic Scale

The transpose element represents what must be added to the written pitch to get the correct sounding pitch.

See (MusicXML Attribute Description)[http://www.musicxml.com/tutorial/the-midi-compatible-part/attributes/]

Returns
steps as Int in chromatic steps count

◆ visitEnd()

void visitEnd ( S_clef & elt)
protectedvirtual

Reimplemented from visitor< S_clef >.

◆ visitStart() [1/4]

virtual void visitStart ( S_part & elt)
protectedvirtual

Reimplemented from visitor< S_part >.

◆ visitStart() [2/4]

virtual void visitStart ( S_staves & elt)
protectedvirtual

Reimplemented from visitor< S_staves >.

◆ visitStart() [3/4]

void visitStart ( S_part_group & elt)
protectedvirtual

Reimplemented from visitor< S_part_group >.

◆ visitStart() [4/4]

void visitStart ( S_score_part & elt)
protectedvirtual

Reimplemented from visitor< S_score_part >.