def onPlayStop(self, value): if value: CeciliaLib.getControlPanel().nonZeroTime = 0 CeciliaLib.setVar("toDac", True) CeciliaLib.getVar("grapher").toolbar.loadingMsg.SetForegroundColour("#FFFFFF") CeciliaLib.getVar("grapher").toolbar.loadingMsg.Refresh() CeciliaLib.getControlPanel().transportButtons.setPlay(True) wx.CallLater(50, CeciliaLib.startCeciliaSound, True) else: CeciliaLib.stopCeciliaSound()
def onUpdateInterface(self, event): if event is not None: snds = [] if CeciliaLib.getVar("rememberedSound"): for key in CeciliaLib.getVar("userInputs").keys(): if CeciliaLib.getVar("userInputs")[key]['path'] != '': snds.append(CeciliaLib.getVar("userInputs")[key]['path']) if CeciliaLib.getVar("audioServer").isAudioServerRunning(): CeciliaLib.stopCeciliaSound() self.closeInterface() CeciliaLib.parseInterfaceText() title = os.path.split(CeciliaLib.getVar("currentCeciliaFile", unicode=True))[1] ceciliaInterface = CeciliaInterface.CeciliaInterface(None, title='Interface - %s' % title, mainFrame=self) ceciliaInterface.SetSize(CeciliaLib.getVar("interfaceSize")) ceciliaInterface.SetPosition(CeciliaLib.getVar("interfacePosition")) CeciliaLib.setVar("interface", ceciliaInterface) if CeciliaLib.getVar("presets") != {}: CeciliaLib.getVar("presetPanel").loadPresets() if event is not None: for i, cfilein in enumerate(CeciliaLib.getControlPanel().getCfileinList()): if i >= len(snds): break cfilein.onLoadFile(snds[i])