trackerFlag {ProTrackR} | R Documentation |
Tracker flag indicating version compatibility
Description
Method to obtain a tracker flag, which indicates the version compatibility
of a ProTracker module (PTModule
object).
Usage
## S4 method for signature 'PTModule'
trackerFlag(x)
## S4 replacement method for signature 'PTModule'
trackerFlag(x) <- value
Arguments
x |
A |
value |
A |
Details
ProTrackR supports two tracker flags: "M.K."
and "M!K!
". M.K.
are presumably the initials of programmers Mahony and Kaktus, unfortunately
documentation on this matter is ambiguous. In any case, modules with the
flag "M.K."
can hold up to 64 patterns, whereas modules with the flag
"M!K!"
can hold up to 100 patterns. Use this method to obtain or
replace the tracker flag of a PTModule
.
Value
For trackerFlag
, the tracker flag of object x
is returned.
For trackerFlag<-
, a copy of object x
with an updated tracker
flag is returned.
Author(s)
Pepijn de Vries
See Also
Other module.operations:
PTModule-class
,
appendPattern()
,
clearSamples()
,
clearSong()
,
deletePattern()
,
fix.PTModule()
,
modToWave()
,
moduleSize()
,
patternLength()
,
patternOrderLength()
,
patternOrder()
,
playMod()
,
playingtable()
,
rawToPTModule()
,
read.module()
,
write.module()
Examples
data("mod.intro")
## the current trackerFlag of mod.intro is "M.K.",
## meaning that it can hold a maximum of 64 patterns:
trackerFlag(mod.intro)
patternOrder(mod.intro, full = TRUE) <- 0:63
## If we upgrade the trackerFlag of mod.intro to "M!K!"
## it can hold a maximum of 100 patterns!:
trackerFlag(mod.intro) <- "M!K!"
patternOrder(mod.intro, full = TRUE) <- 0:99
## Now let's do something dangerous:
## current flag is "M!K!", by setting it
## back to "M.K.", patterns 65:100 are lost...
trackerFlag(mod.intro) <- "M.K."