Community Forums Archive

Go Back

Subject:Find Audio Above
Posted by: beckman
Date:9/5/2011 9:01:12 AM

Hello,
this tread deals with SF8.0.

The function
“long FindAudioAbove(SfAudioSelection asel, double dThreshold, bool fAfterSilence)”
searches, if “fAfterSilence” is set to “true”, for next signal after a predefined pause of 60ms.

Before this you have to define the area where to search with the “SfAudioSelection”. There you can use a 3rd argument the “channel mask value” to define a channel to search in:
“public SfAudioSelection(start, length, channel mask value)”

My problem: For the 1st channel everything works fine. But the function finds only positive values for the 2nd channel. So the found position may be a half of a sine wave too late.

I guess it’s a bug and caused by a missing “Math.Abs” function to turn negative values into the opposite.
(This bug doesn’t occur, if “fAfterSilence” is set to “false”, but I don’t need this type of search.)

Any hints are welcome how to handle this problem.

And: Is this solved in later on versions?

Regards, Beckman

Go Back