mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-18 12:33:34 +00:00
refactor levels.
only compute strip/bus comp tuples if ldirty. add comp generator function to util. added some docstrings patch bump
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import functools
|
||||
from typing import Iterator
|
||||
|
||||
|
||||
def polling(func):
|
||||
@@ -50,3 +51,13 @@ def script(func):
|
||||
return func(remote, script)
|
||||
|
||||
return wrapper
|
||||
|
||||
|
||||
def comp(t0: tuple, t1: tuple) -> Iterator[bool]:
|
||||
"""
|
||||
Generator function, accepts two tuples.
|
||||
|
||||
Evaluates equality of each member in both tuples.
|
||||
"""
|
||||
for a, b in zip(t0, t1):
|
||||
yield a == b
|
||||
|
||||
Reference in New Issue
Block a user