playMod {ProTrackR} | R Documentation |
Play PTModule objects
Description
Converts PTModule
objects into audio
tuneR::Wave
s, and plays them.
Usage
## S4 method for signature 'PTModule'
playMod(mod, wait = T, ...)
Arguments
mod |
A |
wait |
A |
... |
Arguments that are passed on to |
Details
Unfortunately, it was not feasible to create a routine that can directly
interpret PTModule
objects and play them simultaneously.
Instead, the audio first needs to be rendered after which it can be played.
This method therefore first calls modToWave
and then
playWave
. Rendering may take some time and requires some
balance between speed, quality and accuracy. See the documentation of the
modToWave
method for the control you have on these aspects.
Value
A tuneR::Wave
object, generated from the
mod
object, is returned.
Author(s)
Pepijn de Vries
See Also
Other play.audio.routines:
playSample()
,
playWave()
Other module.operations:
PTModule-class
,
appendPattern()
,
clearSamples()
,
clearSong()
,
deletePattern()
,
fix.PTModule()
,
modToWave()
,
moduleSize()
,
patternLength()
,
patternOrderLength()
,
patternOrder()
,
playingtable()
,
rawToPTModule()
,
read.module()
,
trackerFlag()
,
write.module()
Examples
## Not run:
data("mod.intro")
## play the module and capture the audio Wave
wav <- playMod(mod.intro)
## End(Not run)