Learn R Programming

ProTrackR (version 0.4.4)

clearSong: Clear all pattern info from module

Description

Remove all patterns (PTPattern) and patternOrder info from a PTModule object.

Usage

# S4 method for PTModule
clearSong(mod)

Value

Returns a copy of object mod in which all pattern (order) info is removed.

Arguments

mod

A PTModule object from which all pattern (order) info needs to be removed.

Author

Pepijn de Vries

Details

Conform the original ProTracker, this method removes all patterns (PTPattern) and patternOrder info from a module. You keep the audio PTSamples.

See Also

Other module.operations: PTModule-class, appendPattern(), clearSamples(), deletePattern(), fix.PTModule(), modToWave(), moduleSize(), patternLength(), patternOrderLength(), patternOrder(), playMod(), playingtable(), rawToPTModule(), read.module(), trackerFlag(), write.module()

Examples

Run this code
data(mod.intro)

## 'clear.mod' is a copy of 'mod.intro' without the
## pattern (order) info. It still has the audio samples.
clear.mod <- clearSong(mod.intro)

Run the code above in your browser using DataLab