Vtc.Timecode.mult

You're seeing just the function mult, go back to Vtc.Timecode module for more information.

Specs

mult(a :: t(), b :: Ratio.t() | number(), opts :: [{:round, maybe_round()}]) ::
  t()

Scales a by b. The result will inheret the framerat of a and be rounded to the seconds representation of the nearest whole-frame based on the :round option.

Options

  • round: How to round the result with respect to whole-frame values. Defaults to :closest.

Examples

iex> a = Timecode.with_frames!("01:00:00:00", Rates.f23_98())
iex> Timecode.mult(a, 2) |> inspect()
"<02:00:00:00 @ <23.98 NTSC NDF>>"

iex> a = Timecode.with_frames!("01:00:00:00", Rates.f23_98())
iex> Timecode.mult(a, 0.5) |> inspect()
"<00:30:00:00 @ <23.98 NTSC NDF>>"