Changes

Jump to navigation Jump to search
Line 21: Line 21:  
== The Zynthian code entry point ==
 
== The Zynthian code entry point ==
    +
=== zynthian.sh ===
 
/zynthian/zynthian-ui/zynthian.sh
 
/zynthian/zynthian-ui/zynthian.sh
    +
==== Defines ====
 
This file defines a few functions
 
This file defines a few functions
   Line 44: Line 46:  
Quite how a specific environment file is exposed to this process depends on the config, so mechanisms like MIDI configs define these states depending on whether or not a user has defined their own specific MIDI configuration or indeed several. Zynthian is basically a device for starting and stopping jack instruments and interacting with the engines once they are running.
 
Quite how a specific environment file is exposed to this process depends on the config, so mechanisms like MIDI configs define these states depending on whether or not a user has defined their own specific MIDI configuration or indeed several. Zynthian is basically a device for starting and stopping jack instruments and interacting with the engines once they are running.
 
The GUI controls those interactions.
 
The GUI controls those interactions.
 +
 +
==== Commands ====
 
So the lines in the zynthian.sh file that start up the python elements are :
 
So the lines in the zynthian.sh file that start up the python elements are :
   Line 56: Line 60:     
We then start up the python file zynthian_main.py
 
We then start up the python file zynthian_main.py
 +
 +
=== zynthian_main.py ===
 +
 
This is a small file that acts as an entry point to the zyngui object that is the base of all gui zynthian objects.
 
This is a small file that acts as an entry point to the zyngui object that is the base of all gui zynthian objects.
   −
 
+
==== imports ====
 
  # Zynthian specific modules
 
  # Zynthian specific modules
 
  from zyngui import zynthian_gui_config
 
  from zyngui import zynthian_gui_config
Line 66: Line 73:     
And then start up the zynth.
 
And then start up the zynth.
 +
 +
==== Starting ====
    
  logging.info("STARTING ZYNTHIAN-UI ...")
 
  logging.info("STARTING ZYNTHIAN-UI ...")
Line 71: Line 80:  
  zyngui.create_screens()
 
  zyngui.create_screens()
 
  zyngui.run_start_thread()
 
  zyngui.run_start_thread()
 +
 +
=== xynthian/zynthian_gui.py ===
    
/zynthian/zynthian-ui/zynthian_gui.py
 
/zynthian/zynthian-ui/zynthian_gui.py
584

edits

Navigation menu