Learn R Programming

ProTrackR2 (version 0.1.1)

pt2_pattern: Create or retrieve a pattern from a ProTracker module

Description

Get a pattern table (sequence of notes and effects on each of the 4 channels) at a specific index from a ProTracker module. If mod is missing, a new empty pattern is created.

Usage

pt2_pattern(mod, i, ..., compact = TRUE)

Value

A pt2pat object representing the pattern.

Arguments

mod

A pt2mod class objects from which to retrieve a pattern table

i

The index (integer) of the pattern. Note that the index starts at 0.

...

Ignored

compact

Should the pattern be formatted using a compact notation (as used for file storage), or a none-compact format as used by the player? This can be set with the compact argument.

Author

Pepijn de Vries

Examples

Run this code
mod <- pt2_read_mod(pt2_demo())

pt2_pattern(mod, 0L)
pt2_pattern()

Run the code above in your browser using DataLab