pt2_command | R Documentation |
As explained in vignette("s3class")
, the ProTracker pattern table
consists of cells, containing information about the note and instrument
to be played. This function can be used to retrieve or replace the
effect commands in a module.
pt2_command(x, ...)
pt2_command(x, silent = TRUE, ...) <- value
x |
An object of class |
... |
Ignored |
silent |
Don't warn about replacement values not being used or recycled. |
value |
A replacement value. It should be an object that can be converted into
an effect command. It can be a |
Returns a pt2command
object containing the raw command code.
In case of the assign operator (<-
) an update version of x
is returned.
mod <- pt2_read_mod(pt2_demo())
## select a specific cell from the module
cell <- pt2_cell(mod$patterns[[1]], 0L, 0L)
## show the command used for this cell
pt2_command(cell)
## convert character strings into ProTracker commands
pt2_command(c("C30", "F06"))
## Set the command for all cells in the first pattern
## to `C20` (volume at 50%):
pt2_command(mod$patterns[[1]][]) <- "C20"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.