Re: zero-crossing division of an AIFF file
Re: zero-crossing division of an AIFF file
- Subject: Re: zero-crossing division of an AIFF file
- From: David Duncan <email@hidden>
- Date: Sat, 8 Feb 2003 07:07:13 -0500
On Saturday, February 8, 2003, at 05:42 AM, Andrew GFunk wrote:
Hi! You know how Emagic's Logic Audio searches for "zero-crossing"
points in the sample editor? I was wondering how one would split an
AIFF file into two seperate files at first occurance of a
"zero-crossing" point. Is there a standard method for searching for
these points? What's the definition of "zero-crossing" when we're
dealing with a stereo sound (obviously it can't be where BOTH channels
are at 0dB... the likelyhood of that happening at any point is next to
nil)? Any help on this subject would be MUCH appreciated :)
Zero-cross is a relatively simple split, you just scan the audio data
for a zero sample and split the file =). As for multi-channel sound,
you have two options. Either as you say, look for a play where both
channels read zero and split it there (not as unlikely as you think,
the stereo separation on most audio files isn't so great that the
channels won't zero cross together at all). The other alternative is to
find zero cross in each channel separately, and then zero fill the
other channel(s) to make them the same length. You might even want to
make that an option to the user.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.