A variation of the MP3 file reader supplied in tuneR. Reads MP3 files in as 16bit PCM data stored in a Wave object.
Usage
readMP3(filename, from, to)
Value
An object of class Wave.
Arguments
filename
Filename of MP3 file.
from
Seconds to begin reading, measured from beginning of file. See details.
to
Seconds to end reading, measured from beginning of file. See details.
Author
Jon Katz
Details
The bare bones MP3 file reader supplied in tuneR reads the entire file in. When the user installs the third party software mp3splt and libmp3splt, this variant will allow from and to to be specified, and mp3splt will attempt to read in the MP3 segment without first decoding the file. Because mp3splt will cut the MP3 file at frame boundaries the from and to arguments are necessarily only guiding values; actual values may differ.
References
mp3splt is documented at http://mp3splt.sourceforge.net/mp3splt_page/home.php.