platypush/platypush/message/event/midi.py

23 lines
513 B
Python
Raw Normal View History

from platypush.message.event import Event
class MidiMessageEvent(Event):
2018-07-09 22:37:54 +02:00
"""
Event triggered upon received MIDI message
"""
def __init__(self, message, delay=None, *args, **kwargs):
2018-07-09 22:37:54 +02:00
"""
:param message: Received MIDI message
:type message: tuple[int]
:param delay: Time in seconds since the previous MIDI event (default: None)
:type delay: float
"""
super().__init__(*args, message=message, delay=delay, **kwargs)
# vim:sw=4:ts=4:et: