From 6be335134699b603f2895a01c6c8cbdd358aa692 Mon Sep 17 00:00:00 2001 From: bklronin Date: Wed, 26 Jun 2024 15:02:12 +0200 Subject: [PATCH] Working 1.0 --- main.py => ashost.py | 3 +++ readme.md | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) rename main.py => ashost.py (98%) create mode 100644 readme.md diff --git a/main.py b/ashost.py similarity index 98% rename from main.py rename to ashost.py index e645a5b..ed2ab92 100644 --- a/main.py +++ b/ashost.py @@ -1,5 +1,8 @@ #!/usr/bin/env python3 +### Copyright 2024 Thomas Herrmann +### Released under GPL v3 + import time import mido diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..010732c --- /dev/null +++ b/readme.md @@ -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. + + +