- MCP Server with audio fallback, sample management - Song generator with bus routing - Reference listener and audio resampler - Vector-based sample search - Master chain with limiter and calibration - Fix: Audio fallback now works without M4L - Fix: Full song detection in sample loader Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
554 B
Python
24 lines
554 B
Python
import socket
|
|
import json
|
|
|
|
def send_cmd(cmd):
|
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
s.connect(('127.0.0.1', 9877))
|
|
s.sendall(json.dumps(cmd).encode() + b'\x00')
|
|
data = b''
|
|
while True:
|
|
chunk = s.recv(8192)
|
|
if not chunk:
|
|
break
|
|
if b'\x00' in chunk:
|
|
data += chunk.replace(b'\x00', b'')
|
|
break
|
|
data += chunk
|
|
s.close()
|
|
return data.decode()
|
|
|
|
# Get tracks first
|
|
result = send_cmd({'action': 'get_tracks'})
|
|
print("=== TRACKS ===")
|
|
print(result[:3000])
|