The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Is there documentation of the format of a "sound object"
Replies: 2   Last Post: Sep 2, 2012 4:45 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ralph Dratman

Posts: 62
Registered: 5/13/11
Re: Is there documentation of the format of a "sound object"
Posted: Sep 2, 2012 4:36 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I don't know whether the material I am pasting in will come through the
email process intact, but here goes... good luck... the format looks like a
serious headache to me.

>From the Wikipedia article "aiff format":

An AIFF file is divided into a number of chunks. Each chunk is identified
by a *chunk ID* more broadly referred to as

Types of chunks found in AIFF files:

- Common Chunk (required)
- Sound Data Chunk (required)
- Marker Chunk
- Instrument Chunk
- Comment Chunk
- Name Chunk
- Author Chunk
- Copyright Chunk
- Annotation Chunk
- Audio Recording Chunk
- MIDI Data Chunk
- Application Chunk
- ID3 <> Chunk

AIFF-C common compression types

AIFF supports only uncompressed PCM data. AIFF-C also supports compression
audio formats, that can be specified in the "COMM" chunk. The compression
type is "NONE" for PCM audio data. The compression type is accompanied by a
printable name. Common compression types and names include, but are not
limited to:
AIFF-C common compression
[7] <
[8] <
TypeCompression NameDataSourceNONEnot compressedPCMApple,
Inc.fl3232-bit floating
point <>IEEE<http://en.wikipedia=
floatApple, Inc.fl6464-bit floating pointIEEE 64-bit floatApple, Inc.alawAL=
2:18-bit ITU-T G.711 <>
Inc.ulaw=B5Law 2:18-bit ITU-T G.711
Inc.ALAWCCITT <> G.711 A-law8-bit ITU-T
G.711 A-law (64 kbit/s)SGIULAWCCITT G.711 u-law8-bit ITU-T G.711 =B5-law (6=
kbit/s)SGIFL32Float 32IEEE 32-bit floatSoundHack & CsoundADP44:1
ADPCM <>SoundHackima4IMA<http://en.wikip=>
4:1ACE2ACE 2-to-1Apple IIGS ACE (Audio Compression/Expansion)ACE8ACE 8-to-=
DWVWDelta With Variable Word WidthTX16W TyphoonMAC3MACE 3-to-1Apple, Inc.
MAC6MACE 6-to-1Apple, Inc.QclpQualcomm<
PureVoiceQualcommQDMCQDesign <> Music
QDesignrt24RT24 50:1Voxwarert29RT29 50:1Voxware

Ralph Dratman

On Sat, Sep 1, 2012 at 2:28 AM, James Stein <> 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?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.