Get the duration of the song from a openmpt class module object in seconds.

get_duration_seconds(mod, ...)

Arguments

mod

A tracker module object of class openmpt.

...

Ignored

Value

Returns a numeric value indicating the song duration in seconds.

Examples

mod <- demo_mod()
get_duration_seconds(mod)
#> [1] 288.82