Re: Is there documentation of the format of a "sound object"
- To: mathgroup at smc.vnet.net
- Subject: [mg127928] Re: Is there documentation of the format of a "sound object"
- From: James Stein <mathgroup at stein.org>
- Date: Sun, 2 Sep 2012 04:34:42 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
- References: <20120901062847.15B486885@smc.vnet.net>
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?
>
- References:
- Is there documentation of the format of a "sound object"
- From: James Stein <mathgroup@stein.org>
- Is there documentation of the format of a "sound object"