Need help with odd raw data please.

This section is now closed.
Forum rules
Audacity 1.2.x is now obsolete. Please use the current Audacity 2.1.x version.

The final version of Audacity for Windows 98/ME is the legacy 2.0.0 version.
Locked
cells
Posts: 6
Joined: Mon Mar 31, 2008 9:50 am
Operating System: Please select

Need help with odd raw data please.

Post by cells » Mon Mar 31, 2008 10:01 am

Hello gents, I am trying to use audacity in an odd way.

I have an accelerometer hooked up to audacity, which is acting basically like a microphone.

Actually I have the accelerometer writing a raw data file and audacity reading that data file.

I can’t seem to get audacity to understand the raw file though.

It is a time based voltage signal. With max of 5 and min of –5.

Here is an example of a little bit of the raw data

-0.083
-2.554
-1.948
0.818
1.421
-0.049
-0.464
-0.132
-0.059
1.06
1.619
0.671
0.889


I would be extremely grateful for any help

Thanks in advance.

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Need help with odd raw data please.

Post by kozikowski » Mon Mar 31, 2008 4:54 pm

I'm going with no. Audacity isn't going to know how to handle data unless it comes in a sound wrapper like WAV--in your case, only WAV. You can't use any of the compressed formats because they all damage data. Audacity will handle data down to DC which is where your data is. "Sound" officially stops at 20 cycles per second.

How were you planning on managing the data once you got it in?

Koz

cells
Posts: 6
Joined: Mon Mar 31, 2008 9:50 am
Operating System: Please select

Re: Need help with odd raw data please.

Post by cells » Tue Apr 01, 2008 9:15 am

kozikowski wrote:I'm going with no. Audacity isn't going to know how to handle data unless it comes in a sound wrapper like WAV--in your case, only WAV. You can't use any of the compressed formats because they all damage data. Audacity will handle data down to DC which is where your data is. "Sound" officially stops at 20 cycles per second.

How were you planning on managing the data once you got it in?

Koz
hi, audacity can take raw data, just not in any format
the signal I am getting is 500HZ so it should be fine.

think of a pure tone of say 100 HZ and your sampling it at 400 HZ you would get the following reading

0.00
1.00
0.00
-1.00
0.00
1.00
0.00
-1.00
ect

im just asking how i can get audacity to understand that.

once in audacity i plan on using the spectrogram feature to determine what frequencies make up the signal.

thanks

cells
Posts: 6
Joined: Mon Mar 31, 2008 9:50 am
Operating System: Please select

Re: Need help with odd raw data please.

Post by cells » Wed Apr 02, 2008 11:02 am

WOOT i figured it out

if you want audio software to understand raw files you need to base it from 0 - 256 (for 8 bit)

so all i had to do was change my scale from -5 to +5 to the understandable 0- 256

I still cant get audacity to understad it, but it seems cool edit pro can. so i use that to turn the txt to wav and then audacity to read the wav file

long way round, but at lest it works :D

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Need help with odd raw data please.

Post by kozikowski » Wed Apr 02, 2008 1:46 pm

Call me crazy, but why didn't you use the spectrogram features inside Cool Edit to do the tests?

Koz

cells
Posts: 6
Joined: Mon Mar 31, 2008 9:50 am
Operating System: Please select

Re: Need help with odd raw data please.

Post by cells » Thu Apr 03, 2008 7:28 am

YOUR CRAZY :D

i havent used COOL EDIT before so i didnt know it had that feature. i will use it now though ;)

anyone know if there is a COOL EDIT like program that is free? my trail runs out in about 20 days :o

Locked