| Trees | Index | Help |
|
|---|
| Package PMIDI :: Module Composer :: Class Voice |
|
object --+
|
Voice
Drums,
Instrument| Method Summary | |
|---|---|
Initialize an instance. | |
Measure
|
Create a new measure object. |
| list of integer |
Generate a sorted list of all notes in all measures. |
| integer |
Convert this voice to a MIDI change program command and return it. |
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
| |
| Instance Variable Summary | |
|---|---|
| integer | channel: Channel associated with this voice |
| integer | instrument: Program number of the instrument represented by this voice |
list of Measure |
measures: All of the measures played by this voice |
| Method Details |
|---|
__init__(self,
channel)
Initialize an instance.
|
NewMeasure(self, number=None)Create a new measure object. Store it and return a reference so notes can be added.
|
Sequence(self)Generate a sorted list of all notes in all measures.
|
ToMIDI(self)Convert this voice to a MIDI change program command and return it.
|
| Instance Variable Details |
|---|
channelChannel associated with this voice
|
instrumentProgram number of the instrument represented by this voice
|
measuresAll of the measures played by this voice
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Tue Feb 22 16:24:34 2005 | http://epydoc.sf.net |