The script to be excuted is built up from commands for keys and knobs
and optional scripts.
Basically, it is a loop containing a code to receive a MIDI message
and conditional statements to classify the sort of keys and knobs.
Each script assigned to a key or a knob is inserted into
the execution part of corresponding condition.
Refer to the section of
command to see
the formulation of the script code.
There are three types of optional scripts.
Initial Script: Inserted at the top of the script.
Post-Event Script: Follows the code that receives a MIDI message.
Post-Process Script: Inserted at the end of inside of the loop.