Main Page | Modules | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | Related Pages

TScorePart Class Reference

Identifies a musical part in a score. More...

#include <TScorePart.h>

Inheritance diagram for TScorePart:

TPartListElement visitable smartable List of all members.

Public Member Functions

virtual void accept (TScoreVisitor &visitor)
const string & getID () const
const string & getPartName () const
const string & getPartAbbrev () const
vvector< SScoreInstrument > & scoreInstruments ()
vvector< SMidiInstrument > & midiInstruments ()
void setID (const string &id)
void setPartName (const string &name)
void setPartAbbrev (const string &abbrev)
long add (const SScoreInstrument &instr)
long add (const SMidiInstrument &instr)
SIdentificationidentification ()
SMidiDevicemididevice ()

Protected Member Functions

 TScorePart (string id)

Friends

EXP friend SMARTP< TScorePartnewScorePart (string id)

Detailed Description

Each part has an ID that is used later within the musical data. Since parts may be encoded separately and combined later, identification elements are present at both the score and score-part levels.
Each MusicXML part corresponds to a track in a Standard MIDI Format 1 file. The score-instrument elements are used when there are multiple instruments per track. The midi-device element is used to make a MIDI device or port assignment for the given track. Initial midi-instrument assignments may be made here as well.
TScorePart corresponds to the MusicXML score-part element as defined in score.dtd.

Todo:
Support of the MusicXML group element (design will change soon).


Generated on Tue Mar 23 09:50:19 2004 for LibMusicXML by doxygen 1.3.3