neingeist
/
arduinisten
Archived
1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

53 lines
957 B
Python

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