FrameCalculator Icon   Syntax for Expressions
 

This chapter lists the syntax and evaluation examples of FrameCalculator's expressions.

Time Codes

Time codes can be written in two ways:

  • They can be written as pairs of digits with separators: The "." separates the time-part of the tome code from the frame-part, the ":" is used as the separator for the time-part. Time codes can be shortened by removing the leading zeros.
  • They can be written as a set of digits with a leading zero, the digits are then interpreted in pairs as frames, seconds, minutes and hours.
    Caution: Without the leading zero they would be interpreted as a number (see below).

The default Frames-per-Second setting for time code interpretation can be overridden by appending "|" with the fps value (e.g. 10:43:04.26|30). The following Frames-per-Second are possible:

  • 23.98 fps drop frame (23d)
  • 24 fps (24)
  • 25 fps (25)
  • 29.97 fps drop frame (29d)
  • 30 fps (30)
     
  • 23.98 fps non-drop frame, not realtime (23n)
  • 29.97 fps non-drop frame, not realtime (29n)

For more details on this see the Frame Rates chapter.

Numbers

Number can be used as frame numbers or skalars e.g. for multiplication. As this can't be distinguished in syntax the Kallisti-arithmetics-engine decides that during evaluation.
Fraction numbers are written with "." as the separator - independently from the system's national preferences for numbers.

Expressions

ExampleEvaluation
10000 00:06:56.16 in 24fps or
00:05:33.10 in 30fps or
10000 frames
1:10 00:01:10.00
20:01:10 20:01:10.00 or
1801750 frames in 25fps
020011001 00:20:01.10 or
1801751 frames in 25fps
0200110 20:01:10.01 or
30035 frames in 25fps
100+100 200 frames or
00:00:08.08 in 24fps
1:01+1:05.10 00:02:06.10
00:00:00.23|24+00:00:00.23|30 00:00:01.18 in 25fps
00:00:00.99 99 frames or
00:00:03.24 in 25fps
00:00:01.05|24*10 00:00:12.02 in 25fps
00:00:01.05|24 * 10.5 00:00:12.17 in 25fps
10.5*10.5 110 frames (rounded from 110.25, which makes no real sense)
(100+01:50.21) /2 1380 frames in 24 fps or
1436 frames in 25 fps
00:00:57.13 in 24fps or
00:00:57.11 in 25fps
1+1*2 3
(1+1)*2 4

More Information