Vtc.Framerate.new

You're seeing just the function new, go back to Vtc.Framerate module for more information.
Link to this function

new(rate, ntsc, coerce_seconds_per_frame? \\ true)

View Source

Specs

Creates a new Framerate with a playback speed or timebase.

Arguments

  • rate: Either the playback rate or timebase. For NTSC framerates, the value will be rounded to the nearest correct value.

  • ntsc: Atom representing the which (or whether an) NTSC standard is being used.

  • coerce_seconds_per_frame?: If true, then values such as 1/24 are assumed to be in seconds-per-frame format and automatically converted to 24/1. Useful when you want to convert strings from multiple sources when some are seconds-per-frame and others are frames-per-second. NOTE: if you expect to be dealing with record-rate values for timelapse use at your own risk!

NOTE: Floats cannot be passed if the rate is not NTSC and the value is not a while number, as there is no way to know the precise time do to floating-point errors.