? about wav files
-
My guess is that you are wanting to create an alogrithm that creates a wav file. This will be MUCH harder than making a standard recording due to the number patterns you will need to make in order to get the sound you want. In fact this would be a guessing game that may never produce the intended results. But to answer your question you will first need to create a program that creates the correct file structure. Here is a link to a place that describes this: http://www.daubnet.com/formats/RIFF.html Wav files are just a form of riff files (which were originally called iff files and were made by electronics arts for video games). For the ID section you will want to put "wav " and the data will consist of pairs of signed bytes. The byte pairs correspond to the push and pull that the speaker magnet will produce when the file is played. Good luck :)