patternLength: Get the number of PTPattern tables in a PTModule

patternLengthR Documentation

Get the number of PTPattern tables in a PTModule

Description

Get the number of PTPattern tables in a PTModule object.

Usage

## S4 method for signature 'PTModule'
patternLength(x)

Arguments

x

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

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.

Value

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

Author(s)

Pepijn de Vries

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

data("mod.intro")

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


ProTrackR documentation built on Aug. 23, 2023, 1:07 a.m.