import subprocess
from subprocess import PIPE
k = subprocess.Popen(["chuck", "--probe"], stdout=PIPE, stderr=PIPE)
out, err = k.communicate()
midi_info = False
for line in err.decode().split("[chuck]:"):
# set this once, print the rest when this line is encountered
if "via RtMidi" in line:
midi_info = True
if midi_info:
print(line)
I might stick this in a menu that will appear if an in instance of MiniIn is on the line, and include it in the chuck_util_functions because it contains similar line parsing functions.
I might stick this in a menu that will appear if an in instance of MiniIn is on the line, and include it in the chuck_util_functions because it contains similar line parsing functions.