A Crude 1KHz Audio Sinewave Generator Demo...

view story

http://www.unix.com – A very simple crude sinewave generator. The file required is generated inside the code, is linear interpolated and requires /dev/audio to work. Ensure you have this device, if not the download oss-compat from your OS's repository... It lasts for about 8 seconds before exiting and saves a 65536 byte file to your working directory/drawer/folder as sinewave.raw. Use an oscilloscope to check the waveform generated... It is entirely Public Domain and you may do with it as you please... Bazza, G0LCU... Code: #!/bin/bash # # 1KHz.sh # # A very simple DEMO crude sinewave genera (HowTos)