Chapter 3
Time management messages

3.1 Date and duration

Time messages control the time dimension of the score components. They could be sent to any address with the form /ITL/scene/identifier where identifier is the unique identifier string of a scene component.

timeMsg PICT

time PICT

Various ways to set an object date.

/ITL/scene/myObject date 2 1 ;
/ITL/scene/myObject date 2;     ! the denominator is 1 (implied)
/ITL/scene/myObject date 0.5;    ! equivalent to 1/2
/ITL/scene/myObject date ’1/2’;   ! the string form

Similar ways to move an object date.

/ITL/scene/myObject clock;
/ITL/scene/myObject ddate ’1/96’;

3.2 Tempo

The tempo message is supported by all the score components. It’s default value is 0. When non null, the date of an object is moved at the corresponding tempo (e.g. with a temo = 60, the date move will be 1/4 - a quarter note - every second). Note that the date is refreshed at INScore time task rate.

tempoMsg PICT

A cursor moving over a score using the tempo message.

/ITL/scene/score set gmn "[a a a a a a]"; ! a short score
/ITL/scene/cursor set ellipse 0.5 0.5;    ! a cursor
/ITL/scene/sync cursor score;       ! synchonizes the cursor to the score
/ITL/scene/cursor tempo 80;       ! an set the tempo