Working 1.0

This commit is contained in:
bklronin 2024-06-26 14:44:05 +02:00
parent d251f6860e
commit cc44b1b527
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,6 @@
import time import time
import mido import mido
from mido.ports import MultiPort
def match_device_name(input_name, output_list): def match_device_name(input_name, output_list):
# Function to match device names flexibly # Function to match device names flexibly
@ -51,6 +50,7 @@ def determine_host(devices_in):
if master: if master:
return master return master
def relay_midi_host_to_out(host_name, devices_out): def relay_midi_host_to_out(host_name, devices_out):
""" """
Relay MIDI messages from a specific input port to all specified output ports. 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) time.sleep(1)
main_run() main_run()
def main_run():
def main_run():
# Retrieve the list of available input devices # Retrieve the list of available input devices
devices_in = mido.get_input_names() devices_in = mido.get_input_names()
devices_out = mido.get_output_names() devices_out = mido.get_output_names()