This method treats a vector of raw
data as if it where a
file, and converts it into a PTModule
object.
Arguments
- x
A vector of
raw
data, conform ProTracker file specs.- ignore.validity
A
logical
value. When set asTRUE
this method will attempt to decode the raw data (x
), even when it is invalid. When set toFALSE
(default) validity is checked and an error is thrown when invalidity occurs.
Value
returns a PTModule
object.
Details
Data is read from a vector of raw
data as if it where a file
and converted into a PTModule
object. This
method can be useful for module files stored on virtual Amiga Disk Files
(adf), which can be read as raw data, using the AmigaFFH
package.
Use as.raw
to achieve the inverse.
See also
Other module.operations:
PTModule-class
,
appendPattern()
,
clearSamples()
,
clearSong()
,
deletePattern()
,
fix.PTModule()
,
modToWave()
,
moduleSize()
,
patternLength()
,
patternOrderLength()
,
patternOrder()
,
playMod()
,
playingtable()
,
read.module()
,
trackerFlag()
,
write.module()
Other raw.operations:
as.raw()
,
nybbleToSignedInt()
,
nybble()
,
rawToCharNull()
,
rawToSignedInt()
,
rawToUnsignedInt()
,
signedIntToNybble()
,
signedIntToRaw()
,
unsignedIntToRaw()