Package PMIDI :: Module Composer :: Class Instrument
[show private | hide private]
[frames | no frames]

Type Instrument

object --+    
         |    
     Voice --+
             |
            Instrument


Class that represents a single, melodic instrument.
Method Summary
list of string ListInstruments(self)
Return a list of standard instrument names.
  SetInstrumentByName(self, name)
Set the current instrument by name.
  SetInstrumentByNumber(self, i)
Set the current instrument by number.
Inherited from Voice: __init__, NewMeasure, Sequence, ToMIDI
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variable Summary
Inherited from Voice: channel, instrument, measures

Method Details

ListInstruments(self)

Return a list of standard instrument names.
Returns:
Listing of all General MIDI instrument names (some spelled wrong, got it off the Web)
           (type=list of string)

SetInstrumentByName(self, name)

Set the current instrument by name.
Parameters:
name - The name of the instrument to use for this voice
           (type=string)

SetInstrumentByNumber(self, i)

Set the current instrument by number.
Parameters:
i - The number of the instrument to use for this voice
           (type=integer)

Generated by Epydoc 2.1 on Tue Feb 22 16:24:34 2005 http://epydoc.sf.net