22f7e090400a305a8585c448986225a499723ac3
1 # -*- coding: ISO-8859-1 -*-
3 from MidiOutStream
import MidiOutStream
8 Takes midi events from the midi input and calls the apropriate
9 method in the eventhandler object
12 def __init__(self
, midiOutStream
, device
):
16 Sets a default output stream, and sets the device from where
21 if midiOutStream
is None:
22 self
.midiOutStream
= MidiOutStream()
24 self
.midiOutStream
= midiOutStream
34 def read(self
, time
=0):
38 Start the MidiInstream.
40 "time" sets timer to specific start value.
45 def resetTimer(self
, time
=0):
48 Resets the timer, probably a good idea if there is some kind