| Trees | Index | Help |
|
|---|
| Package PMIDI :: Module Composer :: Class Song |
|
object --+
|
Song
| Method Summary | |
|---|---|
Initialize an instance. | |
| integer |
Get the tempp in beats per minute. |
list of Voice
|
Return all of the current voices. |
Voice
|
Create a new voice object and add it to the song. |
| list of integer |
Create an ordered list of all of the notes in a song. |
Set the tempo to a value in beats per minute. | |
| list of integer |
Return the tempo and instrument program change commands. |
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
| |
| Instance Variable Summary | |
|---|---|
| integer | channel_count: Total number of channels used in the song |
| boolean | has_drums: Indicator of whether or not the drum channel is in use |
| integer | tempo: Tempo in beats per minute |
list of Voice |
voices: All of the voices used in this song |
| Method Details |
|---|
__init__(self,
tempo=120)
Initialize an instance.
|
GetTempo(self)Get the tempp in beats per minute.
|
GetVoices(self)Return all of the current voices.
|
NewVoice(self, is_drum=False)Create a new voice object and add it to the song. Return a reference.
|
Sequence(self)Create an ordered list of all of the notes in a song.
|
SetTempo(self, val)Set the tempo to a value in beats per minute.
|
ToMIDI(self)Return the tempo and instrument program change commands.
|
| Instance Variable Details |
|---|
channel_countTotal number of channels used in the song
|
has_drumsIndicator of whether or not the drum channel is in use
|
tempoTempo in beats per minute
|
voicesAll of the voices used in this song
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Tue Feb 22 16:24:34 2005 | http://epydoc.sf.net |