tcdiff(
IN
,
OUT
,
FRAMERATE
,
EDL
)
The tcdiff( function calculates the number of frames between two timecodes.
Parameters
This function has four parameters:
in – text value containing starting timecode
out – text value containing ending timecode
framerate – integer value (usually 24, 25 or 30).
edl – see description below.
Description
This calculates the number of frames between two timecodes. Use 1 for outcodetype if you are copying the put code from an EDL, otherwise use 0 if you are using ‘inclusive’ timecode. If you don’t know what I am talking about, call a film editor! (Submitted by Chris Watts.)
tcdiff("00:00:01:00","00:00:01:01",24,0) ☞ 1
Note: This function is equivalent to:
tcframes(out,framerate)-tcframes(in,framerate)-?(edl=1,1,0)
See Also
- feetandframes( -- takes an integer and returns a feet and frame count for 35mm film.
- kcadd( -- takes a keycode for 35mm film and adds a number of frames to it and returns a keycode as a string.
- kcdiff( -- calculates the number of frames between two frames of 35mm film, using inclusive counts (submitted by chris watts)
- kcframes( -- returns an integer based on a feet and frames count for 35mm film.
- kcoutfromlength( -- answers the question "what will the last frame be if i start my cut at the incode and my shot is some number of frames long"?
- outcode( -- adds one frame to a timecode.
- tc24to30( -- converts 24 frame timecode to 30 frame non-drop timecode.
- tc30to24( -- converts 30 frame non-drop timecode to 24 frame timecode.
- tcadd( -- accepts a timecode as text, and adds some number of frames, returns a timecode string.
- tcframes( -- returns a number of frames from zero of a 24fps, 25fps, or 30fps timecode.
- timecode( -- returns a timecode string corresponding to an integer.
History
10.0 | No Change | Carried over from Panorama 6.0. |