readMP3: Read an MPEG-2 layer 3 file into a Wave object

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/readMP3.R

Description

A bare bones MPEG-2 layer 3 (MP3) file reader that returns the results as 16bit PCM data stored in a Wave object.

Usage

1
readMP3(filename)

Arguments

filename

Filename of MP3 file.

Value

A Wave object.

Note

The decoder can currently only handle files which are either mono or stereo. This is a limitation of the Wave object and the underlying MAD decoder.

Author(s)

Olaf Mersmann [email protected]

References

The decoder source code is taken from the MAD library, see http://www.underbit.com/products/mad/.

See Also

Wave

Examples

1
2
3
4
5
6
## Not run: 
## Requires an mp3 file named sample.mp3 in the current directory.
mpt <- readMP3("sample.mp3")
summary(mpt)

## End(Not run)

tuneR documentation built on May 29, 2017, 1:04 p.m.

Related to readMP3 in tuneR...