Tracker music can be composed such that it is intended to play
in a continuous loop. With the repeat count you can affect the number of
times a module is repeated when playing with play() or rendered with convert_mod().
repeat_count(mod, ...)
repeat_count(mod, ...) <- valueReturns the integer repeat count of an openmpt object. In case
of an assign operator (<-) an updated mod is returned with the new repeat count.
mod <- demo_mod()
repeat_count(mod) <- 2
repeat_count(mod)
#> [1] 2