Trees | Index | Help |
|
---|
Module Song :: Class MidiReader |
|
MidiOutStream
--+
|
MidiReader
Method Summary | |
---|---|
__init__(self,
song)
| |
Returns the absolute time | |
addEvent(self,
track,
event,
time)
| |
header(self,
format,
nTracks,
division)
| |
note_off(self,
channel,
note,
velocity)
| |
note_on(self,
channel,
note,
velocity)
| |
value: 0-2097151 tempo in us/quarternote (to calculate value from bpm: int(60,000,000.00 / BPM)) | |
Inherited from MidiOutStream | |
No values passed | |
channel: 0-15 note, velocity: 0-127 | |
The default event handler for channel messages | |
channel: 0-15 pressure: 0-127 | |
channel: 0-15 controller, value: 0-127 | |
Copyright notice text: string | |
text: string | |
n_track: number of track | |
End of file. | |
Returns the current track number | |
Set the new running status | |
text: string | |
sf: is a byte specifying the number of flats (-ve) or sharps (+ve) that identifies the key signature (-7 = 7 flats, -1 = 1 flat, 0 = key of C, 1 = 1 sharp, etc). | |
text: string | |
text: string | |
Handles any undefined meta events | |
channel: midi channel for subsequent data (deprecated in the spec) | |
value: Midi port (deprecated in the spec) | |
msg_type: 0-7 values: 0-15 | |
channel: 0-15 patch: 0-127 | |
channel: 0-15 value: 0-16383 | |
Returns the relative time | |
Invalidates the running status | |
reset time to 0 | |
Sequence/track name text: string | |
value: 0-16383 | |
data: The data as byte values | |
Sets the current track number | |
Set the new running status | |
hour, minute, second: 3 bytes specifying the hour (0-23), minutes (0-59) and seconds (0-59), respectively. | |
No values passed | |
value: 0-16383 | |
songNumber: 0-127 | |
No values passed | |
No values passed | |
n_track: number of track | |
data: list of values in range(128) | |
No values passed | |
Text event text: string | |
nn: Numerator of the signature as notated on sheet music dd: Denominator of the signature as notated on sheet music The denominator is a negative power of 2: 2 = quarter note, 3 = eighth, etc. | |
No values passed | |
No values passed | |
Updates the time, if relative is true, new_time is relative, else it's absolute. |
Method Details |
---|
abs_time(self)Returns the absolute time
|
tempo(self, value)value: 0-2097151 tempo in us/quarternote (to calculate value from bpm: int(60,000,000.00 / BPM))
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Nov 23 23:40:42 2006 | http://epydoc.sf.net |