self.scene.status().layers[0].get_instrument().engine.load_patch_from_string(0,"","","")#fill with null instruments, hopefully replacing the loaded sfz data.
self.currentVariant=None
self.currentKeySwitch=None
self.idKey=None
defgetAvailablePorts(self)->dict:
"""This function queries JACK each time it is called.
@ -149,3 +161,15 @@ class Auditioner(object):
raiseRuntimeError(f"Auditioner was instructed to connect to port {externalPort}, which does not exist")
@ -420,7 +420,7 @@ class GuiInstrument(QtWidgets.QTreeWidgetItem):
self.setIcon(COLUMNS.index("name"),self.offIcon)
self.midiActiveFlag=False#midi indicator
api.session.eventLoop.verySlowConnect(self._activityOff)#this is always on, even if no samples loaded. The auditioner sends activeOn, even if state==False
definstrumentSwitchOnViaGui(self,state):
"""Only GUI clicks. Does not react to the engine callback that switches on instruments. For
@ -456,10 +456,11 @@ class GuiInstrument(QtWidgets.QTreeWidgetItem):