Working 1.0
This commit is contained in:
parent
d251f6860e
commit
cc44b1b527
4
main.py
4
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()
|
||||
|
Loading…
Reference in New Issue
Block a user