move MIXER_PORT into Mixer class

This commit is contained in:
coon 2025-09-25 20:59:28 +02:00
parent 2ae803ebfe
commit 3e123bc751

View file

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