diff --git a/mixer.py b/mixer.py index a9d758b..77f001f 100755 --- a/mixer.py +++ b/mixer.py @@ -6,12 +6,11 @@ import mido from enum import Enum -MIXER_PORT = 51325 - class Mixer: - def __init__(self, ip, port): - self.sock = socket.create_connection((ip, port)) + def __init__(self, ip): + self.MIXER_PORT = 51325 + self.sock = socket.create_connection((ip, self.MIXER_PORT)) ALLEN_HEATH_ID = [0x00, 0x00, 0x1A] QU_MIXER = [0x50, 0x11] @@ -207,7 +206,7 @@ def main(): args = parser.parse_args() print(f"IP: {args.ip}") - mixer = Mixer(args.ip, MIXER_PORT) + mixer = Mixer(args.ip) if args.command: print(f"Command: {args.command}")