Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

PTTrack-class

The PTTrack class


Description

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, 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.

Slots

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.

Author(s)

Pepijn de Vries

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)
))

ProTrackR

Manipulate and Play 'ProTracker' Modules

v0.3.7
GPL-3
Authors
Pepijn de Vries [aut, cre, dtc]
Initial release
2020-02-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.