EX: Predefined Constants: log2e (value = 1.4426950408889634074) EX: Predefined Functions: gnoise (gnoise[x] Gaussian noise function) EX: Logical Operators: == or .EQ. see if two expressions are equal EX: Instruction or Statement: i=(i>10)?0:i+1 EX: User Defined Functions: f(x,y)=cos(sqrt(x**2+y**2)*exp(0.0-sqrt(x**2+y**2)/4) enter f(0,0) to evaluate the function at x=0 and y=0 EX: Arithmetic Operators: *, /, -, +, ** EX: Arithmetic Bit-wise Operators: << shift first expression to the left by the second EX: Arithmetic Assignment Operators: ^= bit wise XOR
Click inside the image to see inside the Procedure
The available conditional constructs include:
To use the if/else construct:
To use the merge construct:
To use the switch construct:
To use the trigger construct:
Expression conditional construct
To use the expression construct:
To create a loop construct:
The available looping constructs include:
After the count loop construct has been created, open the pane to specify the loop parameters. Provide a variable, and initial, final and increment values. Close the count loop pane and it is ready for execution.
After the while loop construct has been created, open the pane to specify the loop parameters. Provide the conditional expression that determines the number of times the loop will be executed. If desired, you may also provide an initial expression, and an update expression. Close the while loop pane and it is ready for execution.
NOTE: for Encapsulated Workspaces you need to be familiar with the Khoros software development tools (guise, composer, craftsman).
An encapsulated workspace is a software object, i.e., it is a pane object. It is NOT composed of either C code or a scripting language interpretaion if the visual program. The key components of an encapsulated workspace are:
Creation of Encapsulated Workspaces.
In summary, cantata is used by the visual programmer to interactively develop visual programs by combining glyphs into a visual program or network.