playingtable {ProTrackR} | R Documentation |
Generate a table for playing a PTModule object
Description
This method generates a table (data.frame
) in which information
from the pattern tables are put in the right order and in a comprehensive
format.
Usage
## S4 method for signature 'PTModule'
playingtable(
mod,
starting.position = 1,
max.duration = 2 * 60,
speed = 6,
tempo = 125,
video = c("PAL", "NTSC"),
play.once = T,
verbose = T
)
Arguments
mod |
An object of class |
starting.position |
A |
max.duration |
A |
speed |
Default speed to use when it is not specified in the
pattern data. See ProTrackR documentation for more info on
|
tempo |
Default tempo to use when it is not specified in the
pattern data. See ProTrackR documentation for more info on
|
video |
The video mode of a Commodore Amiga affects timing routines.
This mode can be specified with this argument and
is represented by a |
play.once |
A |
verbose |
A |
Details
This method generates a table (data.frame
) in which information
from the pattern tables (PTPattern
) are put in the right
order, taking into account pattern breaks, position jumps and pattern
loops (see also ProTrackR documentation,
section on effect commands). The information is put in
a comprehensive format in a data.frame
, with the following columns:
- row
Row number index of the original
PTPattern
object.- filter
A
logical
value indicating whether the Amiga hardware audio filter was either turned on or off using effect command E00/E01 (see also ProTrackR documentation, section on effect commands).- speed
Number of 'ticks' per row as set with the Fxy effect commands in the module.
- tempo
The tempo as specified by the Fxy commands in the module.
- delay
The delay that should be applied to the row as specified with the EEx effect command in the module.
- effect.track1..4
The effect code (
raw
) as specified in each of the 4 tracks in the module.- effect.mag.track1..4
The effect magnitude (
raw
) as specified for each of the 4 tracks in the module.- sample.nr.track1..4
The sample index number (
numeric
) as specified for each of the 4 tracks in the module.- note.track1..4
The note (
factor
) as specified for each of the four tracks in the module.- position
The positions index number (
numeric
) from thepatternOrder
table in the module.- duration
Playback duration of the corresponding row in seconds.
- cum_duration
Cumulative playback duration of the corresponding row in seconds.
Value
Returns a data.frame
with pattern rows put in the right
order. Information contained in the returned table is described in the
'Details' section
Author(s)
Pepijn de Vries
See Also
Other module.operations:
PTModule-class
,
appendPattern()
,
clearSamples()
,
clearSong()
,
deletePattern()
,
fix.PTModule()
,
modToWave()
,
moduleSize()
,
patternLength()
,
patternOrderLength()
,
patternOrder()
,
playMod()
,
rawToPTModule()
,
read.module()
,
trackerFlag()
,
write.module()
Examples
## Not run:
data(mod.intro)
pt <- playingtable(mod.intro)
## End(Not run)