pt2_duration | R Documentation |
How long a module will play depends on several aspects such as
the length of the pattern sequence table (pt2_pattern_table()
, pt2_length()
),
the speed and tempo at which the patterns are defined,
loops, pattern breaks and delay effects. The duration in seconds of the
module is calculated by this function.
pt2_duration(x, options = pt2_render_options(), position = 0L, ...)
x |
Object for which to determine the duration. Should be of class |
options |
A list of options used for rendering the audio. Use
|
position |
Starting position in the pattern sequence table ( |
... |
Ignored |
The duration in seconds (as a difftime
class object)
Pepijn de Vries
mod <- pt2_read_mod(pt2_demo())
pt2_duration(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.