@@ -1184,8 +1184,8 @@ def init_jack(self):
1184
1184
self .midi_aggregated_mode = has_midi_merger_output_port () or has_midi_broadcaster_input_port ()
1185
1185
1186
1186
#Add monitor ports for Zynthian routing
1187
- self .audioportsIn .append ("zynmixer_send_0 " )
1188
- self .audioportsIn .append ("zynmixer_send_1 " )
1187
+ self .audioportsIn .append ("zynthian_send_0 " )
1188
+ self .audioportsIn .append ("zynthian_send_1 " )
1189
1189
1190
1190
return True
1191
1191
@@ -2090,7 +2090,7 @@ def report_current_state(self, websocket):
2090
2090
websocket .write_message ("add_hw_port /graph/%s midi 0 %s %i" % (name .split (":" ,1 )[- 1 ], title , i + 2 ))
2091
2091
2092
2092
# Zynthian Router
2093
- websocket .write_message ("add_hw_port /graph/zynthian_main_out midi 0 Zynthian_Main_Out 1" )
2093
+ websocket .write_message ("add_hw_port /graph/zynthian_midi_out midi 0 Zynthian_MIDI_Out 1" )
2094
2094
2095
2095
# MIDI Out
2096
2096
if self .midi_aggregated_mode :
@@ -2115,7 +2115,7 @@ def report_current_state(self, websocket):
2115
2115
websocket .write_message ("add_hw_port /graph/%s midi 1 %s %i" % (name .split (":" ,1 )[- 1 ], title , i + 2 ))
2116
2116
2117
2117
# Zynthian Router
2118
- websocket .write_message ("add_hw_port /graph/zynthian_main_in midi 1 Zynthian_Main_In 1" )
2118
+ websocket .write_message ("add_hw_port /graph/zynthian_midi_in midi 1 Zynthian_MIDI_In 1" )
2119
2119
2120
2120
if self .midi_loopback_enabled :
2121
2121
websocket .write_message ("add_hw_port /graph/midi_loopback midi 1 MIDI_Loopback 42" )
@@ -3364,19 +3364,23 @@ def _fix_host_connection_port(self, port):
3364
3364
if data [2 ] == "capture_2" :
3365
3365
return self .jack_hw_capture_prefix + "2"
3366
3366
3367
- # Zynthian ports: ---------------------------
3368
- # Zynmixer Send => Audio routed from Zynthian Layer
3369
- if data [2 ].startswith ("zynmixer_send_" ):
3370
- num = data [2 ].replace ("zynmixer_send_" ,"" ,1 )
3367
+ #----------------------------------------------------------
3368
+ # Zynthian Ports:
3369
+ #----------------------------------------------------------
3370
+ # Zynmixer => Audio routed from Zynthian to mod-ui
3371
+ if data [2 ].startswith ("zynthian_send_" ):
3372
+ num = data [2 ][len ("zynthian_send_" ):]
3371
3373
if num == "0" :
3372
- return "zynmixer:send_a "
3374
+ return "zynmixer:output_moduia "
3373
3375
elif num == "1" :
3374
- return "zynmixer:send_b"
3375
- # ZynMidiRouter => MIDI routed to/from Zynthian
3376
- if data [2 ].startswith ("zynthian_" ):
3377
- subport = data [2 ].replace ("zynthian_" ,"" ,1 )
3378
- return "ZynMidiRouter:{}" .format (subport )
3379
- # -------------------------------------------
3376
+ return "zynmixer:output_moduib"
3377
+ # ZynMidiRouter => MIDI routed from Zynthian to mod-ui
3378
+ elif data [2 ].startswith ("zynthian_midi_out" ):
3379
+ return "ZynMidiRouter:mod_out"
3380
+ # ZynMidiRouter => MIDI routed from mod-ui to Zynthian
3381
+ elif data [2 ].startswith ("zynthian_midi_in" ):
3382
+ return "ZynMidiRouter:main_in"
3383
+ # ----------------------------------------------------------
3380
3384
3381
3385
# Default guess
3382
3386
return "system:%s" % data [2 ]
0 commit comments