deletePattern | R Documentation |
This method removes a PTPattern
from a
PTModule
object and updates the
patternOrder
table accordingly.
## S4 method for signature 'PTModule,numeric'
deletePattern(x, index)
x |
A |
index |
A |
This method safely removes a PTPattern
from a
PTModule
object, guarding the validity of the
PTModule
object. It therefore also updates
the patternOrder
table, by renumbering the indices
listed there. The index of the removed object is replaced with a zero
in the patternOrder
table.
Returns a PTModule
from which the selected
PTPattern
is deleted.
As per ProTracker specification, the pattern indices
stored in the PTModule
and obtained with
patternOrder
start at 0. Whereas R starts indexing at 1.
Beware of this discrepancy.
Pepijn de Vries
Other pattern.operations:
MODPlugToPTPattern()
,
PTPattern-class
,
PTPattern-method
,
PTPatternToMODPlug()
,
appendPattern()
,
pasteBlock()
,
patternLength()
,
patternOrderLength()
,
patternOrder()
Other module.operations:
PTModule-class
,
appendPattern()
,
clearSamples()
,
clearSong()
,
fix.PTModule()
,
modToWave()
,
moduleSize()
,
patternLength()
,
patternOrderLength()
,
patternOrder()
,
playMod()
,
playingtable()
,
rawToPTModule()
,
read.module()
,
trackerFlag()
,
write.module()
data("mod.intro")
print(mod.intro)
## delete pattern #2 from mod.intro:
mod.intro <- deletePattern(mod.intro, 2)
print(mod.intro)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.