Skip to contents

Get the number of PTPattern tables in a PTModule object.

Usage

# S4 method for PTModule
patternLength(x)

Arguments

x

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

Value

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

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.

Author

Pepijn de Vries

Examples

data("mod.intro")

## Get the number of pattern tables in mod.intro:
patternLength(mod.intro)
#> [1] 4