[Date Index] [Thread Index] [Author Index]
Re: Is there documentation of the format of a "sound object"
Answering my own question: I was wrong to think this line: so1 = Import [ "Audio Track.aiff" ] ; worked; it should have been: so2 = Import [ "Audio Track.aiff", "AIFF" ] ; or: so3 = Import [ "Audio Track.AIFF" ] ; so2 and so3 are correct; so1 is totally weird. I was misled by the documentation for 'Import', which says: "The format of a file is by default deduced from the file extension in its name". Perhaps this is a bug? I note that both Wikipedia and Mathematica's own documentation explicitly mention .aif, .aiff and .aifc (all lower cased) as the extensions denoting AIFF files. On Fri, Aug 31, 2012 at 11:28 PM, James Stein <mathgroup at stein.org> wrote: > One simple line of code, seems to work: > so = Import["Audio Track.aiff"]; > The imported file is a track on an audio CD (music). > > Per Mathematica's documentation, "so" is a "sound object". > In my test case, "so" is a List with 616171 sub-Lists. > Some subLists are empty, some are strings, some are weird. > Somewhere within "so" I would expect to find one or more lists of > 16-bit integers. > I was not successful. > > Where is this stuff documented? >