Learn R Programming

ProTrackR (version 0.4.4)

mod.intro: Example of a PTModule object

Description

A PTModule object included in the package as example.

Arguments

Format

A PTModule object containing 4 PTSample objects (and 27 empty PTSample objects, adding up to the 31 samples a PTModule should hold) and 4 PTPattern objects.

Author

Pepijn de Vries

Details

This PTModule object is based on an original ProTracker module file I've composed in the late nineteen nineties. It is used as example for many of the ProTrackR methods and you can use it to test your own code. It can also be exported back to the original ProTracker module file by using write.module.

Examples

Run this code
data("mod.intro")
print(mod.intro)
plot(mod.intro)

if (FALSE) {
playSample(mod.intro)

## Save as an original module file,
## which can be played with ProTracker (or several modern audio players):
write.module(mod.intro, "intro.mod")
}

Run the code above in your browser using DataLab