Ejemplo n.º 1
0
 def start(self):
     # Create initial GUI Screens
     self.screens['admin'] = zynthian_gui_admin()
     self.screens['info'] = zynthian_gui_info()
     self.screens['snapshot'] = zynthian_gui_snapshot()
     self.screens['layer'] = zynthian_gui_layer()
     self.screens['layer_options'] = zynthian_gui_layer_options()
     self.screens['engine'] = zynthian_gui_engine()
     self.screens['midich'] = zynthian_gui_midich()
     self.screens['transpose'] = zynthian_gui_transpose()
     self.screens['bank'] = zynthian_gui_bank()
     self.screens['preset'] = zynthian_gui_preset()
     self.screens['control'] = zynthian_gui_control()
     self.screens['control_xy'] = zynthian_gui_control_xy()
     self.screens['midi_profile'] = zynthian_gui_midi_profile()
     self.screens['confirm'] = zynthian_gui_confirm()
     # Show initial screen => Channel list
     self.show_screen('layer')
     # Try to load "default snapshot" or show "load snapshot" popup
     default_snapshot_fpath = os.getcwd() + "/my-data/snapshots/default.zss"
     if not isfile(default_snapshot_fpath) or not self.screens[
             'layer'].load_snapshot(default_snapshot_fpath):
         self.load_snapshot(autoclose=True)
     # Start polling threads
     self.start_polling()
     self.start_loading_thread()
     self.start_zyncoder_thread()
Ejemplo n.º 2
0
    def start(self):
        # Create initial GUI Screens
        self.screens['admin'] = zynthian_gui_admin()
        self.screens['info'] = zynthian_gui_info()
        self.screens['snapshot'] = zynthian_gui_snapshot()
        self.screens['layer'] = zynthian_gui_layer()
        self.screens['layer_options'] = zynthian_gui_layer_options()
        self.screens['engine'] = zynthian_gui_engine()
        self.screens['midi_chan'] = zynthian_gui_midi_chan()
        self.screens['transpose'] = zynthian_gui_transpose()
        self.screens['audio_out'] = zynthian_gui_audio_out()
        self.screens['bank'] = zynthian_gui_bank()
        self.screens['preset'] = zynthian_gui_preset()
        self.screens['control'] = zynthian_gui_control()
        self.screens['control_xy'] = zynthian_gui_control_xy()
        self.screens['midi_profile'] = zynthian_gui_midi_profile()
        self.screens['audio_recorder'] = zynthian_gui_audio_recorder()
        self.screens['midi_recorder'] = zynthian_gui_midi_recorder()
        self.screens['zs3_learn'] = zynthian_gui_zs3_learn()
        self.screens['confirm'] = zynthian_gui_confirm()

        # Show initial screen => Channel list
        self.show_screen('layer')

        #Init MIDI Subsystem => MIDI Profile
        self.init_midi()
        self.init_midi_services()

        # Init Auto-connector (and call it for first time!)
        zynautoconnect.start()

        # Initialize OSC
        self.osc_init()

        # Load an initial snapshot?
        snapshot_loaded = False
        if zynthian_gui_config.restore_last_state:
            # Try to load "last_state" snapshot ...
            last_state_snapshot_fpath = self.screens[
                'snapshot'].last_state_snapshot_fpath
            if isfile(last_state_snapshot_fpath):
                snapshot_loaded = self.screens['layer'].load_snapshot(
                    last_state_snapshot_fpath)

        if not snapshot_loaded:
            # Try to load "default" snapshot ...
            default_snapshot_fpath = self.screens[
                'snapshot'].default_snapshot_fpath
            if isfile(default_snapshot_fpath):
                snapshot_loaded = self.screens['layer'].load_snapshot(
                    default_snapshot_fpath)

        if not snapshot_loaded:
            # Show "load snapshot" popup. Autoclose if no snapshots available ...
            self.load_snapshot(autoclose=True)

        # Start polling threads
        self.start_polling()
        self.start_loading_thread()
        self.start_zyncoder_thread()
Ejemplo n.º 3
0
	def start(self):
		# Create initial GUI Screens
		self.screens['admin']=zynthian_gui_admin()
		self.screens['info']=zynthian_gui_info()
		self.screens['snapshot']=zynthian_gui_snapshot()
		self.screens['layer']=zynthian_gui_layer()
		self.screens['layer_options']=zynthian_gui_layer_options()
		self.screens['engine']=zynthian_gui_engine()
		self.screens['midi_chan']=zynthian_gui_midi_chan()
		self.screens['transpose']=zynthian_gui_transpose()
		self.screens['audio_out']=zynthian_gui_audio_out()
		self.screens['bank']=zynthian_gui_bank()
		self.screens['preset']=zynthian_gui_preset()
		self.screens['control']=zynthian_gui_control()
		self.screens['control_xy']=zynthian_gui_control_xy()
		self.screens['midi_profile']=zynthian_gui_midi_profile()
		self.screens['audio_recorder']=zynthian_gui_audio_recorder()
		self.screens['midi_recorder']=zynthian_gui_midi_recorder()
		self.screens['zs3_learn']=zynthian_gui_zs3_learn()
		self.screens['confirm']=zynthian_gui_confirm()

		# Show initial screen => Channel list
		self.show_screen('layer')

		# Init Auto-connector
		zynautoconnect.start()

		# Load an initial snapshot?
		snapshot_loaded=False
		if zynthian_gui_config.restore_last_state:
			# Try to load "last_state" snapshot ...
			last_state_snapshot_fpath=self.screens['snapshot'].last_state_snapshot_fpath
			if isfile(last_state_snapshot_fpath):
				snapshot_loaded=self.screens['layer'].load_snapshot(last_state_snapshot_fpath)

		if not snapshot_loaded:
			# Try to load "default" snapshot ...
			default_snapshot_fpath=self.screens['snapshot'].default_snapshot_fpath
			if isfile(default_snapshot_fpath):
				snapshot_loaded=self.screens['layer'].load_snapshot(default_snapshot_fpath)

		if not snapshot_loaded:
			# Show "load snapshot" popup. Autoclose if no snapshots available ...
			self.load_snapshot(autoclose=True)

		# Start polling threads
		self.start_polling()
		self.start_loading_thread()
		self.start_zyncoder_thread()
Ejemplo n.º 4
0
	def start(self):
		# Initialize jack Transport
		self.zyntransport = zynthian_engine_transport()

		# Create Core UI Screens
		self.screens['info'] = zynthian_gui_info()
		self.screens['confirm'] = zynthian_gui_confirm()
		self.screens['option'] = zynthian_gui_option()
		self.screens['engine'] = zynthian_gui_engine()
		self.screens['layer'] = zynthian_gui_layer()
		self.screens['layer_options'] = zynthian_gui_layer_options()
		self.screens['snapshot'] = zynthian_gui_snapshot()
		self.screens['midi_chan'] = zynthian_gui_midi_chan()
		self.screens['midi_cc'] = zynthian_gui_midi_cc()
		self.screens['transpose'] = zynthian_gui_transpose()
		self.screens['audio_out'] = zynthian_gui_audio_out()
		self.screens['midi_out'] = zynthian_gui_midi_out()
		self.screens['audio_in'] = zynthian_gui_audio_in()
		self.screens['bank'] = zynthian_gui_bank()
		self.screens['preset'] = zynthian_gui_preset()
		self.screens['control'] = zynthian_gui_control()
		self.screens['control_xy'] = zynthian_gui_control_xy()
		self.screens['midi_profile'] = zynthian_gui_midi_profile()
		self.screens['zs3_learn'] = zynthian_gui_zs3_learn()
		self.screens['zs3_options'] = zynthian_gui_zs3_options()
		self.screens['main'] = zynthian_gui_main()
		self.screens['admin'] = zynthian_gui_admin()

		# Create UI Apps Screens
		self.screens['alsa_mixer'] = self.screens['control']
		self.screens['audio_recorder'] = zynthian_gui_audio_recorder()
		self.screens['midi_recorder'] = zynthian_gui_midi_recorder()
		#self.screens['autoeq'] = zynthian_gui_autoeq()
		self.screens['stepseq'] = zynthian_gui_stepsequencer()

		# Init Auto-connector
		zynautoconnect.start()

		# Initialize OSC
		self.osc_init()

		# Load an initial snapshot?
		snapshot_loaded=False
		if zynthian_gui_config.restore_last_state:
			# Try to load "last_state" snapshot ...
			last_state_snapshot_fpath=self.screens['snapshot'].last_state_snapshot_fpath
			if isfile(last_state_snapshot_fpath):
				snapshot_loaded=self.screens['layer'].load_snapshot(last_state_snapshot_fpath)

		if not snapshot_loaded:
			# Try to load "default" snapshot ...
			default_snapshot_fpath=self.screens['snapshot'].default_snapshot_fpath
			if isfile(default_snapshot_fpath):
				snapshot_loaded=self.screens['layer'].load_snapshot(default_snapshot_fpath)

		if not snapshot_loaded:
			# Init MIDI Subsystem => MIDI Profile
			self.init_midi()
			self.init_midi_services()
			self.zynautoconnect()
			# Show initial screen
			self.show_screen('main')

		# Start polling threads
		self.start_polling()
		self.start_loading_thread()
		self.start_zyncoder_thread()

		#Run autoconnect if needed
		self.zynautoconnect_do()