add support for midi devices.

midi example added.

minor version bump
This commit is contained in:
onyx-and-iris
2022-07-24 14:38:16 +01:00
parent 43d4496378
commit 9d446ea17d
11 changed files with 166 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import functools
from itertools import zip_longest
from typing import Iterator
@@ -61,3 +62,11 @@ def comp(t0: tuple, t1: tuple) -> Iterator[bool]:
"""
for a, b in zip(t0, t1):
yield a == b
def grouper(n, iterable, fillvalue=None):
"""
Group elements of an iterable by sets of n length
"""
args = [iter(iterable)] * n
return zip_longest(fillvalue=fillvalue, *args)