Trees | Indices | Help |
|
---|
|
object --+ | EventStream
Class used to describe a collection of MIDI events, organized into tracks.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
resolution Ticks per quarter note |
|||
duration The length of the stream in midi ticks. |
|||
trackcount | |||
endoftrack | |||
curtrack The track number of the current track |
|||
track The current track |
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Like add_event, but doesn't update the timemap after adding the event. You shouldn't usually use this, since it leaves the timemap in an inconsistent state, but it's used internally when adding a lot of events in a row. If you use it, you should ensure that _refresh_timemap gets called afterwards. |
Track defaults to the current track. The event itself is assumed to be in the track already. |
Remove the first occurence of an event matching the given event from the event stream. Raises a ValueError a match is not found in the stream.
|
Removes the event instance from a stream, if it exists. Raises a ValueError a match is not found in the stream. Note that this is different from remove_event, which looks for a match to the argument, whereas this requires identity.
|
Has the same effect as calling remove_event_instance on each members of
Note that this won't raise an exception if any of the events aren't found. |
Unimplemented. Will check for redundant messages and delete them, such as control changes that are followed by a "Reset Controllers" message before a note on. |
|
resolutionTicks per quarter note
|
durationThe length of the stream in midi ticks. Note that this is not the same as len(stream), which gives the number of tracks.
|
trackcount
|
endoftrack
|
curtrackThe track number of the current track
|
trackThe current track
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:58 2012 | http://epydoc.sourceforge.net |