While playing with play()
or rendering with convert_mod()
, the
state of the module can change continuously (volume, speed, order index, etc.).
These functions return the
current state of an openmpt
class object.
get_current_channel_vu_left(mod, channel, ...)
get_current_channel_vu_mono(mod, channel, ...)
get_current_channel_vu_rear_left(mod, channel, ...)
get_current_channel_vu_rear_right(mod, channel, ...)
get_current_channel_vu_right(mod, channel, ...)
get_current_estimated_bpm(mod, ...)
get_current_order(mod, ...)
get_current_pattern(mod, ...)
get_current_playing_channels(mod, ...)
get_current_row(mod, ...)
get_current_speed(mod, ...)
get_current_tempo(mod, ...)
Return numeric
or integer
values of the requested state.
Function names are pretty self-explanatory. Note that tempo and speed
values are tracker dependent, their meaning depend on the originating
tracker.
mod <- demo_mod()
get_current_channel_vu_left(mod, 0L)
#> [1] 0
get_current_channel_vu_mono(mod, 0L)
#> [1] 0
get_current_channel_vu_rear_left(mod, 0L)
#> [1] 0
get_current_channel_vu_rear_right(mod, 0L)
#> [1] 0
get_current_channel_vu_right(mod, 0L)
#> [1] 0
get_current_estimated_bpm(mod)
#> [1] 125
get_current_order(mod)
#> [1] 0
get_current_pattern(mod)
#> [1] 0
get_current_playing_channels(mod)
#> [1] 0
get_current_row(mod)
#> [1] 0
get_current_speed(mod)
#> [1] 6
get_current_tempo(mod)
#> [1] 125