Page 1 of 1

Importing raw .txt data?

Posted: Wed Mar 25, 2009 2:41 pm
by lamonti
Hi,

I'm trying to read a text file as a sound file in Audacity.

The text file is the values of an A Hz 440 sine wave that was produced in Processing.

I've done this successfully using CoolEdit on PCs, but whenever I try it on my Mac with Audacity I'm getting weird noise signals that bare no realtion to sin waves. I've tried pretty much every setting in Import Raw Data settings menu, but all they do it produce the same kind of noisy signals at different parts of the amplitude spectrum.

Any advice would be greatly appreciated - I'm working on a programming project for university, so just generating sine tones from the generate menu isn't going to solve my problem!

Thanks again

Ian

Re: Importing raw .txt data?

Posted: Fri Mar 27, 2009 8:10 am
by Gale Andrews
lamonti wrote: I'm trying to read a text file as a sound file in Audacity. The text file is the values of an A Hz 440 sine wave that was produced in Processing. I've done this successfully using CoolEdit on PCs, but whenever I try it on my Mac with Audacity I'm getting weird noise signals that bare no realtion to sin waves. I've tried pretty much every setting in Import Raw Data settings menu, but all they do it produce the same kind of noisy signals at different parts of the amplitude spectrum.
Import Raw Data is only for importing actual uncompressed audio files, like headerless PCM data. Audacity can't yet import textual representations of audio data and display them as a waveform.

Sox will probably let you convert the text file to WAV which you can then view in Audacity.

A pro-level DAW like Ardour might be able to import text files directly as audio, but I don't know.


Gale