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"
Run the code above in your browser using DataLab