Functions to control the pitch and tempo of a module.
pitch_factor(mod, ...)
pitch_factor(mod, ...) <- value
tempo_factor(mod, ...)
tempo_factor(mod, ...) <- value
Returns current factor, or the updated object in case
of an assign operation (<-
).
mod <- demo_mod()
## Increase the module pitch with a factor 2
pitch_factor(mod) <- 2
pitch_factor(mod)
#> [1] 2
## Increase the module tempo with a factor 2
tempo_factor(mod) <- 2
tempo_factor(mod)
#> [1] 2