pt2_render | R Documentation |
Renders a 16bit pulse-code modulation waveform from a ProTracker module. The rendered format can be played on a modern machine.
pt2_render(x, duration = NA, options = pt2_render_options(), ...)
## S3 method for class 'pt2mod'
pt2_render(
x,
duration = NA,
options = pt2_render_options(),
position = 0L,
...
)
x |
The object to be rendered |
duration |
Duration of the rendered output in seconds. When set to |
options |
A list of options used for rendering the audio. Use
|
... |
Ignored |
position |
Starting position in the pattern sequence table ( |
Rendered audio inheriting the audio::audioSample()
class.
Pepijn de Vries
mod <- pt2_read_mod(pt2_demo())
aud <- pt2_render(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.