From cc44b1b527e9515b07366ea1f31726595cb93908 Mon Sep 17 00:00:00 2001 From: bklronin Date: Wed, 26 Jun 2024 14:44:05 +0200 Subject: [PATCH] Working 1.0 --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index c5f3f32..e645a5b 100644 --- a/main.py +++ b/main.py @@ -3,7 +3,6 @@ import time import mido -from mido.ports import MultiPort def match_device_name(input_name, output_list): # Function to match device names flexibly @@ -51,6 +50,7 @@ def determine_host(devices_in): if master: return master + def relay_midi_host_to_out(host_name, devices_out): """ Relay MIDI messages from a specific input port to all specified output ports. @@ -124,8 +124,8 @@ def relay_midi_host_to_out(host_name, devices_out): time.sleep(1) main_run() -def main_run(): +def main_run(): # Retrieve the list of available input devices devices_in = mido.get_input_names() devices_out = mido.get_output_names()