Skip to contents

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

Usage

# S4 method for PTModule
clearSong(mod)

Arguments

mod

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

Value

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

Details

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

Author

Pepijn de Vries

Examples

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)