Re: [LAU] Converting binary digital data in PCM

From: ciclo esano <cicloesano@email-addr-hidden>
Date: Sat Dec 11 2010 - 12:28:14 EET

Thank you Bob and Pierre,

I will try to use sox as first attempt and I will report my results.

Moreover the information about bit rate, channel and everything concerning
audio file is very difficult to apply here, since the raw data are coming
from a digitizer after several downsampling processes to have all the
signals in the audio range (in fact they arise from the high frequency of
nuclear spins, hundreds of MHz)

C

___
2010/12/11 Pierre <lists.stackp@email-addr-hidden>

> The command line program sox should be able to handle that.
>>
>
> Indeed, this should work:
>
> sox -e raw -b 32 -c 1 -r SAMPLERATE --endian little data.raw -b 16 -c 1 -r
> 44100 sound.wav
>
> (change SAMPLERATE to the sampling rate in Hertz of your analytical
> instrument, data.raw to your input file name, and sound.wav to your output
> file name).
>
> Cheers,
> Pierre
>
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-user
>

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sat Dec 11 12:15:02 2010

This archive was generated by hypermail 2.1.8 : Sat Dec 11 2010 - 12:15:02 EET