processing audio data with pulseIn

Hello,
i have the following problem and I need to sort it out :wink:

A SD card contains a wav file with a train of audio pulses with changing pulse durations. (It was received from a balloon tracker by a radio receiver. So the pulses can be noisy.)
After storing the wav in the arduino buffer, the arduino should process the pulse train such that it provides the pulse duration for consecutive time steps. The emerging data then should be stored in a separate file

Is there a way to use the built-in function pulseIn() for this purpose? How can one process a wav file in the described manner?

Any input or idea is welcome :slight_smile:

Is there a way to use the built-in function pulseIn() for this purpose?

No. The pulseIn function only times live signals coming in to a pin, not signals from a WAV file.

How can one process a wav file in the described manner?

Not on an Arduino.
Get a copy of Audacity ( free ) and use it to clean up your audio signal.

If you can get it to clean up then use a language called processing to access the file and count the number of samples the pulse is high and low. You can then write some code to turn it into telemetry.

Thank you very much! That helps.