Working 1.0

This commit is contained in:
bklronin 2024-06-26 15:02:12 +02:00
parent cc44b1b527
commit 6be3351346
2 changed files with 29 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/usr/bin/env python3
### Copyright 2024 Thomas Herrmann
### Released under GPL v3
import time
import mido

26
readme.md Normal file
View File

@ -0,0 +1,26 @@
# AutoSyncHost
## Description
### An automatic midi host application that send midi sync commands to other MIDI devices connected via USB.
This python scrtipt is intended to run headless on a raspbery pi but can run on any other python able device as well.
The output is filtered so the host deosnt receive sync signals from the members and thus not causing midi loops.
## Installation
- pull from repository with `git clone https://git.raise-uav.com/Hermes/AutoSyncHost.git`
- `pip install mido`
- `pip install python-rtmidi`
- `python ashost.py` in folder
- App is running and waiting for a device playing
## Usage
- First MIDI device that sends a midi "start" command becomes the host everybody listens to.
- After hitting stop, ASH has an assigned host and all devices are in sync when pressing play again.
- Pressing "stop" three times will unbind the host from its duties and restart the app and assignment.
### Notes
It is especially interesting for devices that don´t have a physical MIDI port like the OP-Z or OP-1.