Functions that count specific elements in openmpt class objects and returns the resulting number.

get_num_instruments(mod, ...)

get_num_samples(mod, ...)

get_num_channels(mod, ...)

get_num_orders(mod, ...)

get_num_patterns(mod, ...)

get_num_subsongs(mod, ...)

get_pattern_num_rows(mod, pattern)

Arguments

mod

A tracker module object of class openmpt.

...

Ignored

pattern

An integer pattern index (starting at 0) for which to get count details.

Value

Returns an integer count of the requested information.

Examples

mod <- demo_mod()
get_num_instruments(mod)
#> [1] 0
get_num_samples(mod)
#> [1] 31
get_num_channels(mod)
#> [1] 4
get_num_orders(mod)
#> [1] 61
get_num_patterns(mod)
#> [1] 41
get_num_subsongs(mod)
#> [1] 1
get_pattern_num_rows(mod, 0L)
#> [1] 64