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 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()
|
||||||
|
Loading…
Reference in New Issue
Block a user