File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ func datetime_to_string(date):
3939 })
4040
4141
42+ func scan_midi_devices ():
43+ OS .open_midi_inputs ()
44+ var devices = OS .get_connected_midi_inputs ().join (", " )
45+ OS .close_midi_inputs ()
46+ return devices
47+
48+
4249func add_header (header ):
4350 rtl .append_bbcode ("\n [b][u][color=#6df]{header} [/color][/u][/b]\n " .format ({
4451 header = header ,
@@ -58,7 +65,7 @@ func _ready():
5865 for i in OS .get_audio_driver_count ():
5966 audio_drivers .push_back (OS .get_audio_driver_name (i ))
6067 add_line ("Available drivers" , audio_drivers .join (", " ))
61- add_line ("MIDI inputs" , OS . get_connected_midi_inputs (). join ( ", " ))
68+ add_line ("MIDI inputs" , scan_midi_devices ( ))
6269
6370 add_header ("Date" )
6471 add_line ("Date and time (local)" , datetime_to_string (OS .get_datetime ()))
You can’t perform that action at this time.
0 commit comments