Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:3896] RE: Sound libraries

Date2004-01-04 23:46
From"gogins@pipeline.com"
Subject[CSOUND-DEV:3896] RE: Sound libraries
I looked at the libsndfile sources.

It looks like you can print all chunk including cue and smpl in wav format
to a "log string" that could be parsed to determine loop points. Is this
possible?

As for adding chunks, there's nothing specifically for writing chunks in
the API, but would it be possible to write them as binary data and then
reread the soundfile header to get things lined up again? This would have
to be done before writing anything to the data chunk.


Original Message:
-----------------
From:  jpff@codemist.co.uk
Date: Sun,  4 Jan 2004 20:21:37 +0000
To: csound-dev@eartha.mills.edu, csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:3893] RE: Sound libraries


"right" library is the one that cause the least modifications to the
system and provides all the facilities required.  At present
libsndfile does not provide a way of reading loop points as far as I
can tell, and I need a facility to add additional chunks.  I am in
contact with Erik de Castro Lopo about some of this.

I have created output from csound5 using both the old code and
libsndfile, but it needs more testing for other formats.  I am very
uncertain about the normalisation of floating formats in libsndfile,
and I need either to allocate a half day to it, or to get others who
understand the issues to test it.

I have started the reading of sound files as well; so far OK, but not
tested.

I have checked the new file into CVS (InOut/libsnd.c) but the normal
Makefile does not know about this, nor sets _SNDFILE_

==John ffitch


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

Date2004-01-05 07:39
Fromjpff@codemist.co.uk
Subject[CSOUND-DEV:3897] RE: Sound libraries
So that is what the SFC_GET_LOG_INFO option does!  Yes it would be
possible but hardly ideal, as the log for WAV and AIFF will look
different.  I gave the sndfile_info program an AIFF sample and it did
produce some loop information, if in a less than nice format.

I will keep that in mind as a possibility.

==John ffitch