+++ /dev/null
-# -*- coding: ISO-8859-1 -*-\r
-\r
-from MidiOutStream import MidiOutStream\r
-\r
-class MidiInStream:\r
-\r
- """\r
- Takes midi events from the midi input and calls the apropriate\r
- method in the eventhandler object\r
- """\r
-\r
- def __init__(self, midiOutStream, device):\r
-\r
- """\r
-\r
- Sets a default output stream, and sets the device from where\r
- the input comes\r
-\r
- """\r
-\r
- if midiOutStream is None:\r
- self.midiOutStream = MidiOutStream()\r
- else:\r
- self.midiOutStream = midiOutStream\r
-\r
-\r
- def close(self):\r
-\r
- """\r
- Stop the MidiInstream\r
- """\r
-\r
-\r
- def read(self, time=0):\r
-\r
- """\r
-\r
- Start the MidiInstream.\r
-\r
- "time" sets timer to specific start value.\r
-\r
- """\r
-\r
-\r
- def resetTimer(self, time=0):\r
- """\r
-\r
- Resets the timer, probably a good idea if there is some kind\r
- of looping going on\r
-\r
- """\r
-\r