From a3473d59223d1c61a7da775bd185e9c57bcc80d8 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 8 Feb 2024 17:54:27 +0000 Subject: [PATCH] swap i, remote order for consistency. --- xair_api/rtn.py | 4 ++-- xair_api/shared.py | 2 +- xair_api/strip.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xair_api/rtn.py b/xair_api/rtn.py index 8fd5f48..205e731 100644 --- a/xair_api/rtn.py +++ b/xair_api/rtn.py @@ -66,7 +66,7 @@ class AuxRtn(IRtn): ) }, "send": tuple( - Send.make(cls, remote, i) + Send.make(cls, i, remote) for i in range(remote.kind.num_bus + remote.kind.num_fx) ), "mute": mute_prop(), @@ -108,7 +108,7 @@ class FxRtn(IRtn): ) }, "send": tuple( - Send.make(cls, remote, i, index) + Send.make(cls, i, remote, index) for i in range(remote.kind.num_bus + remote.kind.num_fx) ), "mute": mute_prop(), diff --git a/xair_api/shared.py b/xair_api/shared.py index 538545f..32a0657 100644 --- a/xair_api/shared.py +++ b/xair_api/shared.py @@ -625,7 +625,7 @@ class Automix: class Send: - def __init__(self, remote, i, index: Optional[int] = None): + def __init__(self, i, remote, index: Optional[int] = None): super(Send, self).__init__(remote, index) self.i = i + 1 diff --git a/xair_api/strip.py b/xair_api/strip.py index 7eb292f..e6f2072 100644 --- a/xair_api/strip.py +++ b/xair_api/strip.py @@ -69,7 +69,7 @@ class Strip(IStrip): ) }, "send": tuple( - Send.make(cls, remote, i, index) + Send.make(cls, i, remote, index) for i in range(remote.kind.num_bus + remote.kind.num_fx) ), "mute": mute_prop(),