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

TScoreInstrument Class Reference

Represents an instrument on the score. More...

#include <TScoreInstrument.h>

Inheritance diagram for TScoreInstrument:

visitable smartable List of all members.

Public Member Functions

virtual void accept (TScoreVisitor &visitor)
void setID (const string &id)
 a MusicXML required attribute used for midi-instrument assignment.

void setName (const string &name)
 the instrument name.

void setAbbrev (const string &abbrev)
 the optional name abbreviation.

const string & getID () const
const string & getName () const
const string & getAbbrev () const

Protected Member Functions

 TScoreInstrument (string id)

Friends

EXP friend SMARTP< TScoreInstrumentnewScoreInstrument (string id)

Detailed Description

The score-instrument element allows for multiple instruments per score-part. As with the score-part element, each score-instrument has a required ID attribute, a name, and an optional abbreviation. A score-instrument element is also required if the score specifies MIDI channels, banks, or programs. An initial midi-instrument assignment can also be made here. MusicXML software should be able to automatically assign reasonable channels and instruments without these elements in simple cases, such as where part names match General MIDI instrument names.
The MusicXML score-instrument is defined in score.dtd.


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