User Submitted Macro

Time Code Calculators

Written by David Moen

What it does

This is a set of 4 time code calculators that will be useful to audio/video editors. There are 2 offset calculators to add and subtract time code, one for NTSC (29.97 dfps) and one for PAL (25 fps). There is a calculator for converting a time code in NTSC to PAL and one for converting PAL to NTSC based on a 00:00:00:00 start time in both.

To install

Download the macro file umtimecodecalculators.mex and save it to your hard drive where you store your macro file(s).  Import the macros into your existing macro file by clicking File, Import, Import Macros.

To use

Run the macro and enter time codes when prompted. Offset calculators default to addition, change the “+” to a “-” for subtraction when prompted for the offset. Results below 00:00:00:00 are inaccurate.

How it works

Converts the time code to a frame count, performs the calculation, and then converts the frame count to the appropriate time code format. (Lots of math calculations provided by G. Daniel Noland) Note: 30000/1001 was used instead of 29.97 (29.97 is a rounded number) to be more accurate. Format conversions are rounded to the nearest whole frame.

** David wins a Macro Express T-shirt for his submission.