The four audio channels of the Commodore Amiga are represented as tracks
(the PTTrack class) in a PTPattern.
Details
The Commodore Amiga original chipset supported four audio channels. Meaning that audio could be played simultaneously and independently on each of these channels. Two channels (2 and 3) were hardware-mixed fully to the right stereo outputs and the other two (1 and 4) fully to the left stereo outputs.
This class represents such a single channel, referred to as a track. A PTPattern is
composed of four such channels. As a ProTracker pattern consists of 64 rows,
a PTTrack object is also (implicitly) composed of 64
PTCell objects.
Use the PTTrack-method to construct or coerce objects to a
PTTrack-class object, or to replace such an object.
Slots
dataA
matrix(64 rows, 4 columns) of classraw. Each row implicitly represents aPTCellobject, where the raw data is formatted as specified at thePTCelldocumentation. Use thePTCell-methodto make an element of aPTTrackobject explicitly of classPTCell. Row numbers correspond with the row numbers ofPTPatternobjects.
Examples
data("mod.intro")
## Get track number 2 from pattern
## number 1 of mod.intro:
chan1 <- PTTrack(mod.intro, 2, 1)
## Create a blank track:
chan2 <- new("PTTrack")
## Get two more tracks:
chan3 <- PTTrack(mod.intro, 1, 2)
chan4 <- PTTrack(mod.intro, 4, 3)
## combine the four tracks in a
## new PTPattern:
patt <- PTPattern(cbind(
as.character(chan1),
as.character(chan2),
as.character(chan3),
as.character(chan4)
))