xair-api-python/__main__.py

18 lines
366 B
Python
Raw Normal View History

2022-04-05 20:05:55 +01:00
import mair
2022-04-05 20:05:55 +01:00
def main():
with mair.connect(kind_id, ip=ip) as mixer:
mixer.strip[8].config.name = "sm7b"
2022-04-05 20:05:55 +01:00
mixer.strip[8].config.on = True
print(
f"strip 09 ({mixer.strip[8].config.name}) has been set to {mixer.strip[8].config.on}"
)
2022-04-05 20:05:55 +01:00
if __name__ == "__main__":
kind_id = "MR18"
ip = "mixer.local"
2022-04-05 20:05:55 +01:00
main()