A module contains a sequence table describing the order in which to play patterns. This function returns the index of the patter at specific position in the sequence table.

get_order_pattern(mod, order, ...)

Arguments

mod

A tracker module object of class openmpt.

order

Index of the position in the pattern sequence table (starts at 0).

...

Ignored

Value

Returns the integer index (starting at 0) of the pattern at the indicated order position.

Examples

mod <- demo_mod()
get_order_pattern(mod, 3L)
#> [1] 11