Importing Raw Data into Audacity

Audio software developers forum.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
dnelson
Posts: 1
Joined: Fri Jun 05, 2020 9:49 pm
Operating System: macOS 10.13 High Sierra

Importing Raw Data into Audacity

Post by dnelson » Mon Aug 03, 2020 4:07 pm

hello.

I'm using Audacity to import RGB data as Raw data. I was wondering how does the raw import determine frequency and amplitude for a sample? Does it sample each pixel, row or column?


Thx

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

Re: Importing Raw Data into Audacity

Post by kozikowski » Mon Aug 03, 2020 5:01 pm

import RGB data
You know this is an audio program, right? Not picture or video.
Does it sample each pixel, row or column?
Raw is an adventure. You have to tell it all the stuff that normally appears in the file header. It assumes the file header is damaged and can't be read.

So it sees a pile of unformatted data. Have a good time.

I've never done it but I believe it takes your word on it. It just blindly opens up the data according to what you told it.

Koz

steve
Site Admin
Posts: 81220
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Importing Raw Data into Audacity

Post by steve » Mon Aug 03, 2020 5:03 pm

dnelson wrote:
Mon Aug 03, 2020 4:07 pm
how does the raw import determine frequency and amplitude for a sample?
The "sample rate" is set in the Import RAW dialog.

The "audio frequency" is determined by the relationship of one sample to the adjacent samples.

The "amplitude" of a sample is the sample's numeric value.

Example:
If the data is (decimal representation):

Code: Select all

0   0.5   0   -0.5   0   0.5   0 ....
Then the amplitude is +/- 0.5 and the frequency rate is 1/4 of the sample rate.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply