DiGiCo调音台是专业级数字调音台,广泛应用于大型演出、音乐会、剧院、电视直播等场景。本技能通过OSC(Open Sound Control)协议实现远程控制和监控,让技术人员在无法物理接触设备时也能实时调整调音台参数。
python
from skill_digico_mixer import execute
# 连接调音台
result = execute(
action="connect",
ip="192.168.1.100",
port=12345
)
# 切换场景
result = execute(
action="load_scene",
scene_id=5
)
# 调整通道增益
result = execute(
action="set_channel_gain",
channel=12,
gain=-6.0
)
python
# 获取调音台状态
status = execute(
action="get_status"
)
# 获取通道列表
channels = execute(
action="get_channels"
)
参数类型默认值说明ipstr192.168.1.100DiGiCo调音台IP地址portint12345OSC协议端口(DiGiCo默认端口)
参数类型范围说明scene_idint1-999场景编号channelint1-128通道编号gainfloat-∞ to +12dB增益值(dB)eq_bandstrlow/mid/highEQ频段eq_gainfloat-20 to +20EQ增益(dB)
DiGiCo OSC协议标准路径:
/digico/scene/load - 加载场景/digico/channel/{id}/gain - 通道增益/digico/channel/{id}/eq - 通道EQ/digico/output/{id}/route - 输出路由/digico/status - 状态查询python
# 连接调音台
execute(action="connect", ip="192.168.1.100")
# 加载演出场景
execute(action="load_scene", scene_id=10)
# 调整主唱通道
execute(
action="set_channel_gain",
channel=1,
gain=-3.0
)
# 添加压缩
execute(
action="set_channel_compressor",
channel=1,
threshold=-20,
ratio=4.0
)
# 保存快照
execute(action="save_snapshot", name="演出开场")
python
# 自动化巡检脚本(适合cron任务)
import schedule
def check_digico_status():
status = execute(action="get_status")
if status["cpu_usage"] > 80:
send_alert("DiGiCo CPU使用率过高")
if status["network_latency"] > 50:
send_alert("DiGiCo网络延迟异常")
# 每5分钟执行一次
schedule.every(5).minutes.do(check_digico_status)
python
# 检查调音台连接性
ping_result = execute(action="ping")
if ping_result["status"] == "success":
# 检查OSC端口
port_result = execute(action="check_port", port=12345)
# 获取错误日志
logs = execute(action="get_error_logs", lines=50)
print("诊断结果:", {
"ping": ping_result,
"port": port_result,
"errors": logs
})
python-oscbash
# 安装依赖
pip install python-osc