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

PTPatternToMODPlug

Convert PTPattern data into a MODPlug pattern


Description

Use a PTPattern or PTBlock to create a pattern table with a MODPlug flavour.

Usage

PTPatternToMODPlug(x, to.clipboard = T)

Arguments

x

Either a PTPattern object or a PTBlock object from which an Open MODPlug Tracker pattern should be created.

to.clipboard

A logical value, indicating whether the result should be copied to the system's clipboard (TRUE) or should be returned as a vector of characters (FALSE).

Details

The Open MODPlug Tracker (https://www.openmpt.org) is a modern music tracker that is for free. It too can handle ProTracker modules. This function assists in moving pattern data from R to Open MPT.

Value

Returns an invisible NULL when argument to.clipboard is set to TRUE. Returns an Open MODPlug Tracker flavoured pattern table as a vector of characters when it is set to FALSE.

Author(s)

Pepijn de Vries

See Also

Other MODPlug.operations: MODPlugToPTPattern()

Examples

## Not run: 
## get some pattern data

pattern <- PTPattern(mod.intro, 1)

## Now create a MODPlug pattern from this.
## The result is placed on the system clipboard.
## You can check by pasting it into a text
## editor, or better yet, the MODPlug Tracker.

PTPatternToMODPlug(pattern)

## If you want to handle the pattern data
## in R:

patModPlug <- PTPatternToMODPlug(pattern, F)

## We can do the same with a block:

block <- PTBlock(pattern, 1:10, 2:3)
PTPatternToMODPlug(block)

## End(Not run)

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.