Learn R Programming

ProTrackR (version 0.4.4)

patternLength: Get the number of PTPattern tables in a PTModule

Description

Get the number of PTPattern tables in a PTModule object.

Usage

# S4 method for PTModule
patternLength(x)

Value

Returns a numeric value representing the number of PTPattern tables in object x.

Arguments

x

A PTModule object for which the number of PTPattern tables need to be returned.

Author

Pepijn de Vries

Details

The number of PTPattern tables in a PTModule object should range from 1 up to either 64 or 100. The maximum depends on the trackerFlag of the PTModule object.

See Also

Other pattern.operations: MODPlugToPTPattern(), PTPattern-class, PTPattern-method, PTPatternToMODPlug(), appendPattern(), deletePattern(), pasteBlock(), patternOrderLength(), patternOrder()

Other module.operations: PTModule-class, appendPattern(), clearSamples(), clearSong(), deletePattern(), fix.PTModule(), modToWave(), moduleSize(), patternOrderLength(), patternOrder(), playMod(), playingtable(), rawToPTModule(), read.module(), trackerFlag(), write.module()

Examples

Run this code
data("mod.intro")

## Get the number of pattern tables in mod.intro:
patternLength(mod.intro)

Run the code above in your browser using DataLab