buggy Import RAW Data
Forum rules
This forum is for Audacity on GNU/Linux.
Please state:
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Please state:
- which version of Linux you are using,
- the exact three-section version number of Audacity from Help menu > About Audacity,
- whether you installed your distribution's release, PPA version, or compiled Audacity from source code.
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
-
terrance_h
- Posts: 14
- Joined: Fri Mar 10, 2017 6:50 am
- Operating System: OS X 10.9 Mavericks
buggy Import RAW Data
Audacity 2.1.3
Ubuntu 16.04 amd64
This also affects windows version.
Importing 16bit signed raw results strange waveform, seems like non linear a-law or u-law. Also most of the raw formats imports result unexpectedly. attachments:
sin.raw: a signed 16-bit big-endian linear sine wave
Ubuntu 16.04 amd64
This also affects windows version.
Importing 16bit signed raw results strange waveform, seems like non linear a-law or u-law. Also most of the raw formats imports result unexpectedly. attachments:
sin.raw: a signed 16-bit big-endian linear sine wave
Last edited by Gale Andrews on Fri Apr 28, 2017 4:56 pm, edited 1 time in total.
Reason: placed image inline so that it fits Forum layout
Reason: placed image inline so that it fits Forum layout
-
terrance_h
- Posts: 14
- Joined: Fri Mar 10, 2017 6:50 am
- Operating System: OS X 10.9 Mavericks
Re: buggy Import RAW Data
unable to upload raw file, using this xxd dump instead
- Attachments
-
- sin.txt
- (83.01 KiB) Downloaded 42 times
Re: buggy Import RAW Data
Note that Audacity attempts to guess the raw data format, but it's no more than an educated guess. It is not possible to make this guess 100% accurate, which is why audio files usually contain header information.
Please test importing this file as RAW data (you can change the file extension if you wish - I've just named it as a WAV file so that I can upload it to the forum). The settings should be like this (these are automatically selected on my Xubuntu 16.04 machine): And this is the (correct) waveform as it appears on my machine after importing as RAW:
Please test importing this file as RAW data (you can change the file extension if you wish - I've just named it as a WAV file so that I can upload it to the forum). The settings should be like this (these are automatically selected on my Xubuntu 16.04 machine): And this is the (correct) waveform as it appears on my machine after importing as RAW:
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: buggy Import RAW Data
Not surprising, because "sin.txt" is not 16-bit signed PCM.terrance_h wrote:Importing 16bit signed raw results strange waveform
Where did that file come from?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: buggy Import RAW Data
Here's the first 100 bytes as signed 16-bit big endian:
(it does not look like a sine wave to me)
(it does not look like a sine wave to me)
Code: Select all
0 30 30 12336
2 30 30 12336
4 30 30 12336
6 30 30 12336
8 3A 20 14880
10 65 36 25910
12 30 30 12336
14 20 65 8293
16 39 30 14640
18 30 20 12320
20 65 39 25913
22 30 30 12336
24 20 65 8293
26 62 30 25136
28 30 20 12320
30 65 65 25957
32 30 30 12336
34 20 65 8293
36 66 30 26160
38 30 20 12320
40 66 30 26160
42 30 30 12336
44 20 66 8294
46 33 30 13104
48 30 20 12320
50 20 2E 8238
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
terrance_h
- Posts: 14
- Joined: Fri Mar 10, 2017 6:50 am
- Operating System: OS X 10.9 Mavericks
Re: buggy Import RAW Data
i cannot upload the raw, the txt is its xxd dumpsteve wrote:Not surprising, because "sin.txt" is not 16-bit signed PCM.terrance_h wrote:Importing 16bit signed raw results strange waveform
Where did that file come from?
-
terrance_h
- Posts: 14
- Joined: Fri Mar 10, 2017 6:50 am
- Operating System: OS X 10.9 Mavericks
Re: buggy Import RAW Data
you can "xxd -r " to restore the raw.
the correct waveform is like this (using matplotlib)
the correct waveform is like this (using matplotlib)
-
terrance_h
- Posts: 14
- Joined: Fri Mar 10, 2017 6:50 am
- Operating System: OS X 10.9 Mavericks
Re: buggy Import RAW Data
Thanks! That explains it.steve wrote:Note that Audacity attempts to guess the raw data format, but it's no more than an educated guess. It is not possible to make this guess 100% accurate, which is why audio files usually contain header information.
Please test importing this file as RAW data (you can change the file extension if you wish - I've just named it as a WAV file so that I can upload it to the forum). The settings should be like this (these are automatically selected on my Xubuntu 16.04 machine): And this is the (correct) waveform as it appears on my machine after importing as RAW:
But this is exactly the issue. we need the "Import RAW Data" for raw files have no valid headers. or we can just "open" them.
-
terrance_h
- Posts: 14
- Joined: Fri Mar 10, 2017 6:50 am
- Operating System: OS X 10.9 Mavericks
Re: buggy Import RAW Data
the attachment is my RAW, extracted from an oscilloscope.steve wrote:Note that Audacity attempts to guess the raw data format, but it's no more than an educated guess. It is not possible to make this guess 100% accurate, which is why audio files usually contain header information.
Please test importing this file as RAW data (you can change the file extension if you wish - I've just named it as a WAV file so that I can upload it to the forum). The settings should be like this (these are automatically selected on my Xubuntu 16.04 machine): And this is the (correct) waveform as it appears on my machine after importing as RAW:
Sometimes I use audacity as a scientific tool, viewing and processing waveform.
- Attachments
-
- sin.raw.notrealwav.wav
- (19.53 KiB) Downloaded 42 times
Re: buggy Import RAW Data
On my machine, that is detected by Audacity as signed 8-bit, little endian, 2 channel (stereo), which produces this waveform:terrance_h wrote:sin.raw.notrealwav.wav
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)