Csound Csound-dev Csound-tekno Search About

[Csnd] Write information into file-header?

Date2009-03-27 17:06
FromSchumacher Marlon
Subject[Csnd] Write information into file-header?
Hello,

I would like to know if there is a way to write additional  
informations into the header of an audio file, say a 96k/24Bit aiff- 
file, for example in order to flag a multichannel file as a Bformat- 
file.
My apologies if this has been covered in the documentation or elsewhere.

best,
Marlon

Date2009-03-27 17:16
FromRichard Dobson
Subject[Csnd] Re: Write information into file-header?
Schumacher Marlon wrote:
> Hello,
> 
> I would like to know if there is a way to write additional informations 
> into the header of an audio file, say a 96k/24Bit aiff-file, for example 
> in order to flag a multichannel file as a Bformat-file.
> My apologies if this has been covered in the documentation or elsewhere.
> 

I designed a simple file format for that some years ago, described here:

http://dream.cs.bath.ac.uk/researchdev/wave-ex/bformat.html

It is now widely used for B-Format files, using the extension .amb (up 
to third-order), e.g. the collection here:

http://www.ambisonia.com

A more sophisticated file format is being discussed by various people 
(who cannot agree on some technical aspects, so it may take a while).

In the general case, yes, AIFF and WAVE are "chunked" formats, 
supporting a variety of chunks both standard and custom.  Not something 
however that can be programmed in Csound as such.

Richard Dobson