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, ...) <- value

Arguments

mod

A tracker module object of class openmpt.

...

Ignored

value

An integer value to assign to the repeat count.

Value

Returns the integer repeat count of an openmpt object. In case of an assign operator (<-) an updated mod is returned with the new repeat count.

Examples

mod <- demo_mod()
repeat_count(mod) <- 2
repeat_count(mod)
#> [1] 2