mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-18 12:33:34 +00:00
add support for midi devices.
midi example added. minor version bump
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user