Trees | Index | Help |
|
---|
Package PMIDI :: Module Composer :: Class Note |
|
object
--+
|
Note
Method Summary | |
---|---|
Initialize an instance. | |
boolean |
Compare notes first by measure, then by beat, then by start or stop flag. |
string |
Human readable note. |
integer |
Compute the delay between this note and another. |
Note
|
Generate a partner note that represents when this note should stop. |
integer |
Convert this note to a MIDI command and return it. |
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
|
Instance Variable Summary | |
---|---|
integer | beat : Beat to start sounding note in current measure (0-64) |
integer | channel : Channel number which will play the note (0-16) |
integer | duration : Duration of the note in beats |
Measure |
measure : Measure holding the note |
string | pitch : Note name |
boolean | start : Indicator of whether note is starting or stopping |
Method Details |
---|
__init__(self,
channel,
measure,
beat,
duration,
pitch,
start=True)
Initialize an instance.
|
__cmp__(self,
other)
Compare notes first by measure, then by beat, then by start or stop
flag. This op is needed for proper sequencing.
|
__repr__(self)
Human readable note.
|
DelayBetween(self, other)Compute the delay between this note and another.
|
MakeStopNote(self)Generate a partner note that represents when this note should stop.
|
ToMIDI(self)Convert this note to a MIDI command and return it.
|
Instance Variable Details |
---|
beatBeat to start sounding note in current measure (0-64)
|
channelChannel number which will play the note (0-16)
|
durationDuration of the note in beats
|
measureMeasure holding the note
|
pitchNote name
|
startIndicator of whether note is starting or stopping
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Feb 22 16:24:34 2005 | http://epydoc.sf.net |