Creating a playable WAV file from data or equation input
Creating a playable WAV file from data or equation input
(OP)
I'm looking for a means to create a playable *.WAV file from either some sort of data list or equation. I'd like to combine and create a data list of combined sine waves together (creating a sawtooth, triangular, or sauare waves) then listen to the resulting noise from the data list (using perhaps EXCEL, TXT, or MATLAB).
Does anyone have a recommendation of how to do this?
Does anyone have a recommendation of how to do this?






RE: Creating a playable WAV file from data or equation input
RE: Creating a playable WAV file from data or equation input
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?
RE: Creating a playable WAV file from data or equation input
RE: Creating a playable WAV file from data or equation input
https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
Be prepared to think in terms of bits and bytes though, possibly even endianness (although not probably an issue unless you want to write AIFF files too). You might want to hex dump a small working one to see what's inside. It'll help you to understand the format.
- Steve
RE: Creating a playable WAV file from data or equation input
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?
RE: Creating a playable WAV file from data or equation input
wav (and other binary files) still look like ASCII when pulled up in Notepad, or you can read them in bytes with a program, just like ASCII.
If you know where the wav file header ends, you can copy and paste with Notepad or however you want. But don't use Word - it'll insert formatting in normal mode.
Best to you,
Goober Dave
Haven't see the forum policies? Do so now: Forum Policies
RE: Creating a playable WAV file from data or equation input
RE: Creating a playable WAV file from data or equation input
Try opening up a wav file in a text-only editor of your choice (it turns out Notepad puts extra stuff in there when saving nowadays). Even though you see jibberish, you can copy and paste that jibberish into another file without disturbing it, as long as you know where you are. Agreed, it's tough to interpret.
I used to have a disk patcher that would show you the hex for each byte and the ASCII to the right. It was even better, but the old thing has disappeared... If I find it, I'll post it here -- I do remember it was freeware.
Best to you,
Goober Dave
Haven't see the forum policies? Do so now: Forum Policies
RE: Creating a playable WAV file from data or equation input
- Steve
RE: Creating a playable WAV file from data or equation input
Forget Windows, forget the curse of the double-click that tries to guess what you want. A standard (non-interpretive) text or binary editor works wonders.
n the real World, it's emacs or vi.
</soapbox>
Most "interesting" stuff from any binary file can be found using "strings".
- Steve
RE: Creating a playable WAV file from data or equation input
- Steve
RE: Creating a playable WAV file from data or equation input
Yes, that is what binary/hex files look like in a text editor.
RE: Creating a playable WAV file from data or equation input
http://www.physicsforums.com/showthread.php?t=2413...
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/
RE: Creating a playable WAV file from data or equation input
http://www.mathworks.com/help/matlab/ref/wavwrite....
=====================================
(2B)+(2B)' ?