Vtc.Timecode.rem
You're seeing just the function
rem
, go back to Vtc.Timecode module for more information.
Specs
rem( dividend :: t(), divisor :: Ratio.t() | number(), opts :: [round_frames: round(), round_remainder: round()] ) :: t()
Devides the total frame count of dividend
by devisor
, rounds the quotient down,
and returns the remainder rounded to the nearest frame.
Options
round_frames: How to round the frame count before doing the rem operation. Default:
:closest
.round_remainder: How to round the remainder frames when a non-whole frame would be the result.
Examples
iex> dividend = Timecode.with_frames!("01:00:00:01", Rates.f23_98())
iex> Timecode.rem(dividend, 4) |> inspect()
"<00:00:00:01 @ <23.98 NTSC NDF>>"