move MIXER_PORT into Mixer class
This commit is contained in:
parent
2ae803ebfe
commit
3e123bc751
1 changed files with 4 additions and 5 deletions
9
mixer.py
9
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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue