Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11592

Re: Is there documentation of the format of a "sound object"

From James Stein <mathgroup@stein.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Is there documentation of the format of a "sound object"
Date 2012-09-02 08:45 +0000
Message-ID <k1v6c3$5bf$1@smc.vnet.net> (permalink)
References <20120901062847.15B486885@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


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@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?
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Is there documentation of the format of a "sound object" James Stein <mathgroup@stein.org> - 2012-09-02 08:45 +0000

csiph-web