Recherche Google
OpenMusic 6 – User ManualVisual Programming > Basic Visual Programming > Evaluation
previous pagenext page

Evaluation

Evaluating a box means calling its inner function and parameters. If this box is connected to others, all the upstream boxes will be evaluated one by one. Thus, evaluating one box can trigger a more or less lengthy evaluation chain. This chain refers to the calculus of a function tree, or, in other words, of the visual program.

Evaluating boxes and outlets

  • To evaluate a box, select it and press v.

    The result of the leftmost output is displayed in the Listener.

  • To evaluate a specific output of a box, Cmd click on the outlet.

    The corresponding value is displayed in the Listener.

In any case, the whole box, that is all of its outputs, are computed during the evaluation.

Computation Flow : Left-Right, Bottom-Up

In a program, a box evaluates all boxes connected to its inputs, and evaluates its inputs from left to right .

Therefore, the evaluation of a patch always goes bottom-top and left right , graphically speaking.

Default Values

Box inlets have a default value. This is why a box can generally be evaluated even if part or the totality of its inlets are not connected to another box. Default values can be visualized by hovering the mouse over an inlet.

Box Inputs

Locking / Unlocking a Box

Locked boxes : the values of the locked boxes are fixed and do not depend on the box inputs anymore.
Locked boxes : the values of the locked boxes are fixed and do not depend on the box inputs anymore.

To lock a box, select it and press b . A small icon appears on the upper left corner of the box icon.

  • The last computed value will kept as a definitive value for this box.
  • The input values of this box, as well as the possible elements connected to these inputs will be ignored at a subsequent evaluation.

To unlock the box, press b again.

Evaluation Modes Preview

Several other evaluation modes can be used for controlling the transmission of resulting data in a program, or to perform specific tasks.

Evaluation Modes :
previous pagenext page
About...(c) Ircam - Centre PompidouMade with Scenari