Learn R Programming

AmigaFFH (version 0.4.3)

play: Playing Amiga audio data

Description

A wrapper for tuneR-package's play routine. Allowing it to play Amiga audio (for instance stored in an 8SVX Interchange File Format).

Usage

# S4 method for ANY
play(object, player = NULL, ...)

# S4 method for IFFChunk play(object, player = NULL, ...)

Value

Returns a list of data returned by tuneR's play, for which the output is undocumented.

Arguments

object

An IFFChunk-class object that needs to be played. The IFFChunk should be of type FORM, containing an 8SVX chunk, or an 8SVX itself. object can also be of class IFF.FORM or IFF.8SVX. See play for other objects that can be played.

player

Path to the external audio player. See play for more details.

...

Arguments passed onto the tuneR play routine.

Author

Pepijn de Vries

Details

A wrapper for tuneR-package's play routine. It will try to play audio using an external audio player. When 8SVX audio is played, each octave is played separately. When a FORM container contains multiple 8SVX samples, they are also played successively.

Note that a separate package is developed to interpret and play ProTracker modules and samples (ProTrackR).

Examples

Run this code
if (FALSE) {
## First get an audio sample from the ProTrackR package
snare.samp <- ProTrackR::PTSample(ProTrackR::mod.intro, 2)

## Coerce it into an IFFChunk object:
snare.iff <- WaveToIFF(snare.samp)

## Play the 8SVX sample:
play(snare.iff)
}

Run the code above in your browser using DataLab