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

TMidiInstrument Class Reference

Represents a MIDI instrument. More...

#include <TMidiInstrument.h>

Inheritance diagram for TMidiInstrument:

visitable smartable List of all members.

Public Types

enum  { undefined = -1 }

Public Member Functions

void setID (const string &id)
 ID is a MusicXML required attribute that refers to the score-instrument affected by the change.

void setChannel (long chan)
 optionnal MIDI channel numbers range from 1 to 16.

void setName (const string &name)
 optionnal MIDI name, corresponds to ProgramName meta-events within a Standard MIDI File.

void setBank (long bank)
 optionnal MIDI bank number, range from 1 to 16,384.

void setProgram (long prog)
 optionnal MIDI program number, range from 1 to 128.

void setUnpitched (long pitch)
const string & getID () const
long getChannel () const
const string & getName () const
long getBank () const
long getProgram () const
long getUnpitched () const
virtual void accept (TScoreVisitor &visitor)

Protected Member Functions

 TMidiInstrument (string ident)

Friends

EXP friend SMARTP< TMidiInstrumentnewMidiInstrument (string id)

Detailed Description

TMidiInstrument includes the necessary to address a specific MIDI instrument (channel, bank, program) + additionnal information required by the MusicXML midi-instrument element as defined in common.dtd.


Member Function Documentation

void setUnpitched long  pitch  )  [inline]
 

optionnal : for unpitched instruments, specify a MIDI note number ranging from 1 to 128. Usually used with MIDI banks for percussion.


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