bibliopixel.control.midi module

class bibliopixel.control.midi.Midi(use_note_off=True, **kwds)[source]

Bases: bibliopixel.control.control.ExtractedLoop

EXTRACTOR = {'keys_by_type': {'aftertouch': ('port', 'channel', 'type', 'value'), 'control_change': ('port', 'channel', 'type', 'control', 'value'), 'note_off': ('port', 'channel', 'type', 'note', 'velocity'), 'note_on': ('port', 'channel', 'type', 'note', 'velocity'), 'pitchwheel': ('port', 'channel', 'type', 'pitch'), 'program_change': ('port', 'channel', 'type', 'program')}, 'normalizers': {'pitch': <function Midi.<lambda>>, 'value': <function Midi.<lambda>>, 'velocity': <function Midi.<lambda>>}, 'omit': ('port', 'channel')}
messages()[source]

Should yield a sequence of messages from the input source.