raw import

Hello all of you,

I want to convert a text file into a wav file.
I have numbers in a text file (test.txt) like:
0.99
0.99
-0.99
-0.99

and I want to import this in Audacity 2.3.1:
File → Import → Raw Data… → test.txt
Encoding: 32bit float
byte order: Little-endian (I am using windows 10)
channels 1 channel
start offset 0 bytes
amount to import 100%
sample rate 44100 Hz.

When this is imported I see only samples (6 by the way and not 4!!!) of value 0… So I must do something wrong. Any help? Thanks!

All the best,

Victor

Text files are ASCII encoded (http://www.asciitable.com/), so when you have a file containing

0.99
0.99
-0.99
-0.99

the actual data in the file is the byte values of the characters “0”, “.”, “9”, “9”, “new line”, “0”,…
The byte values can be seen if you open the file in a “hex editor” (https://en.wikipedia.org/wiki/Hex_editor) and will look something like this:
hex.png
Those are the values that “Import Raw” will import, NOT the numbers 0.99, 0.99 …

To import the numbers “0.99, 0.99 etc”, use “Sample Data Import” rather than “Import Raw”. See: https://manual.audacityteam.org/man/sample_data_import.html

Thanks Steve, the Sample Data Import really helped. Thanks!!!