The PTTrack class
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.
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-class
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) ))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.