Time management messages

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/\textit{identifier} where identifier is the unique identifier string of a scene component.


Example 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';


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


Example 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