Functions to control the pitch and tempo of a module.

pitch_factor(mod, ...)

pitch_factor(mod, ...) <- value

tempo_factor(mod, ...)

tempo_factor(mod, ...) <- value

Arguments

mod

A tracker module object of class openmpt.

...

Ignored

value

Replacement value. A numeric factor with which to adjust the tempo or pitch of a module

Value

Returns current factor, or the updated object in case of an assign operation (<-).

Examples

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