A vector
of class raw
of length 4. The raw
data is stored identical to the way it is stored in a ProTracker module
file. The character
representation is easier to understand, and
with the ProTrackR package it shouldn't be necessary to manipulate
the raw
data directly.
The structure is illustrated with an example. Let's start with a
character
representation of a PTCell
as an example: "C-3 1B A08"
.
The left-hand part of this string shows that this cell will play note "C" in
octave 3. The middle part shows that PTSample
number 0x1B = 27
will be played. The right-hand part of the string shows that effect "A08"
will be applied (which is a volume slide down).
The raw
representation of this example would be "10 d6 ba 08"
,
or when I replace the actual values with symbols: "sp pp se ee"
. Where
"ss"
represents the sample number, "eee"
represents the effect()
code and "ppp"
represents the period value. The correct note and octave
can be derived by looking up the period value in the period_table
(which is also implemented in the following methods: note()
,
octave()
and periodToChar()
).
The period value 0x0d6 = 214
corresponds with note "C"
in octave 3.