Changes

Jump to navigation Jump to search
Line 27: Line 27:  
*load_config_env
 
*load_config_env
 
     Configs from:
 
     Configs from:
     source "$ZYNTHIAN_CONFIG_DIR/zynthian_envars.sh"
+
     source "$ZYNTHIAN_CONFIG_DIR/zynthian_envars_extended.sh"
 
     source "$ZYNTHIAN_MY_DATA_DIR/midi-profiles/default.sh"
 
     source "$ZYNTHIAN_MY_DATA_DIR/midi-profiles/default.sh"
 
     source "$ZYNTHIAN_CONFIG_DIR/zynthian_custom_config.sh"
 
     source "$ZYNTHIAN_CONFIG_DIR/zynthian_custom_config.sh"
Line 42: Line 42:     
Once that load_config_env has loaded up all the environmental variables that hold the actual state of a zynthian. It's all in there and is used to define the context that the zynthian runs under.
 
Once that load_config_env has loaded up all the environmental variables that hold the actual state of a zynthian. It's all in there and is used to define the context that the zynthian runs under.
Quite how a specific environment file is exposed to this process depends on the config, so mechansisms like MIDI configs define these states depending on wether 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.
 +
So the lines in the zynthian.sh file that start up the python elements are :
 +
 +
splash_zynthian
 +
load_config_env
 +
 +
while true; do
 +
# Start Zynthian GUI & Synth Engine
 +
cd $ZYNTHIAN_UI_DIR
 +
./zynthian_main.py
 +
status=$?
 +
 +
We then start up the python file 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.
 +
 +
 +
# Zynthian specific modules
 +
from zyngui import zynthian_gui_config
 +
from zyncoder.zyncore import lib_zyncore
 +
from zyngui.zynthian_gui import zynthian_gui
 +
from zyngui import zynthian_gui_keybinding
 +
 +
   −
We then start up the python file 
      
/zynthian/zynthian-ui/zynthian_gui.py
 
/zynthian/zynthian-ui/zynthian_gui.py
584

edits

Navigation menu