Compare commits

...

2 Commits

Author SHA1 Message Date
6e017b4afc add poetry script sends
bump to 2.2.4a0
2024-02-08 21:38:30 +00:00
85664c8465 swap i, remote order 2024-02-08 18:15:18 +00:00
4 changed files with 14 additions and 6 deletions

View File

@ -10,11 +10,13 @@ def main():
for send in mixer.strip[0].send:
send.level = -22.8
mixer.strip[15].send[0].level = -16.3
mixer.strip[15].send[0].level = -16.5
print(mixer.strip[15].send[0].level)
mixer.auxreturn.send[0].level = -15.3
mixer.auxreturn.send[0].level = -15.5
print(mixer.auxreturn.send[0].level)
mixer.fxreturn[0].send[0].level = -14.3
mixer.fxreturn[0].send[0].level = -14.5
print(mixer.fxreturn[0].send[0].level)

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "xair-api"
version = "2.2.3"
version = "2.2.4a0"
description = "Remote control Behringer X-Air | Midas MR mixers through OSC"
authors = ["onyx-and-iris <code@onyxandiris.online>"]
license = "MIT"
@ -24,5 +24,6 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
obs = "scripts:ex_obs"
sends = "scripts:ex_sends"
xair = "scripts:test_xair"
x32 = "scripts:test_x32"

View File

@ -8,6 +8,11 @@ def ex_obs():
subprocess.run([sys.executable, str(path)])
def ex_sends():
path = Path.cwd() / "examples" / "sends" / "."
subprocess.run([sys.executable, str(path)])
def test_xair():
path = Path.cwd() / "tests" / "xair"
subprocess.run(["pytest", "-v", str(path)])

View File

@ -630,9 +630,9 @@ class Send:
self.i = i + 1
@classmethod
def make(cls, _cls, remote, i, index=None):
def make(cls, _cls, i, remote, index=None):
SEND_cls = type("Send", (cls, _cls), {})
return SEND_cls(remote, i, index)
return SEND_cls(i, remote, index)
@property
def address(self) -> str: