hardwareAudioPorts=cbox.JackIO.get_ports("system*",cbox.JackIO.AUDIO_TYPE,cbox.JackIO.PORT_IS_SINK|cbox.JackIO.PORT_IS_PHYSICAL)#don't sort. This is correctly sorted. Another sorted will do 1, 10, 11,
self.start(additionalData)#This shows the GUI, or not, depends on the NSM gui save setting. We need to call that after the menu, otherwise the about dialog will block and then we get new menu entries, which looks strange.
api.callbacks.rescanSampleDir.append(self.react_rescanSampleDir)#This only happens on actual, manually instructed rescanning through the api. We instruct this through our Rescan-Dialog.
@ -195,7 +200,23 @@ class MainWindow(TemplateMainWindow):
self.menu.addMenuEntry("menuView","actionPianoRollVisible",QtCore.QCoreApplication.translate("Menu","Piano Roll"),self.pianoRollToggleVisibleAndRemember,shortcut="Ctrl+R",checkable=True,startChecked=True)#function receives check state as automatic parameter
self.menu.addMenuEntry("menuView","actionPianoVisible",QtCore.QCoreApplication.translate("Menu","Piano"),self.pianoToggleVisibleAndRemember,shortcut="Ctrl+P",checkable=True,startChecked=True)#function receives check state as automatic parameter