Recherche Google
OM 6.5 – User ManualMaquettes > Maquettes in Patches > Reference Mode > Examples
page précédentepage suivante

Adding TemporalBoxes : Examples

Adding a List of TemporalBoxes in a Maquette

Program
  • List returns a list of TemporalBoxes that are added in the maquette.
  • The Temporalbox instances have temporal and graphic parameters.
  • The "self" outputs of the instances are connected to list.
  • The resulting list is returned to addbox2maquette.

When addbox2maquette is evaluated, both TemporalBoxes are added in the maquette.

Maquette and Evaluations

The corresponding temporal objects are represented by gray boxes , which show a small OM icon if the show box icon option is selected in the maquette preferences.

The maquette, after the first evaluation of addbox2maquette.
The maquette, after the first evaluation of addbox2maquette.

This maquette already contained three temporal objects. Addbox2maquette has been evaluated twice, without modifying the TemporalBoxes parameters : objects are superimposed. Everytime the function is evaluated, the TemporalBoxes are added in the maquette. No TemporalBox is deleted from the maquette.

After the second evaluation of the function.
After the second evaluation of the function.

Specifying Colour

The colour of a TemporalBox is specified with R-G-B values and the om-make-color function.

Systematizing Colour According to Posy and Offset

Specifying TemporalBoxes Number and Position with a PBF

Program

This patch allows to place several TemporalBoxes in a maquette. It has a BPF, an OMLoop box, and the addbox2maquette function.

  • The BPF is a series of points whose graphic position is transposed in the maquette. A series of point in the curve is selected. The x-points and y-points are converted into temporal and graphical data.
  • The OMLoop iterates the operation.
OMLoop

The "self" of the BPF is returned to the input of the OMLoop : the x and y-points of each point are enumerated via the slots of a BPF and two listloops.

  • Xs are returned to the "offset" input of the TemporalBox instance.
  • Ys are returned to the "posy" input.
  • A duration has also been assigned to the temporalbox instance.
  1. At each step of the loop, collect stores the information returned by the temporalbox instance.

  2. Finally returns the whole of the results addbox2maquette at the end of the iteration.

Resulting Maquette

The BPF is expressed by the position of the TemporalBoxes.

page précédentepage suivante
A propos...(c) Ircam - Centre PompidouRéalisé avec Scenari