PTTrack-class | R Documentation |
The four audio channels of the Commodore Amiga are represented as tracks
(the PTTrack
class) in a PTPattern
.
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, reffered 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.
data
A matrix
(64 rows, 4 columns) of class raw
.
Each row implicetely represents a PTCell
object, where
the raw data is formatted as specified at the PTCell
documentation. Use the PTCell-method
to make an element of
a PTTrack
object explictly of class PTCell
.
Row numbers correspond with the row numbers of PTPattern
objects.
Pepijn de Vries
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)
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.