[SOLVED] How accurately can a sound frequency be generated or measured?
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How accurately can a sound frequency be generated or measured?
Need a very accurate sound waveform at 2345.6 Hz. Any noise or distortion leading to harmonics is ok, it is just the baseline frequency that has to be accurate, to less than 1 Hz.
Can a regular sound device be this accurate? How accurate can they be? +/- 0.1 Hz?
Can a regular sound device capture a sound like this coming from another computer, and measure its frequency with an accuracy as high as 0.1 Hz? How accurate can this measurement be?
Alternatively, can a cpu make a LED flash 2345.6 times a second with a frequency accuracy as high as 0.1 Hz or better? Maybe the electrical signal that feeds the LED can then go to an amplifier.
Accurate sounds can be generated as long as the sampling rate is above the nyquist limit for the given frequency. For 2345.6Hz, that would be around 5000 Hz. Standard audio generators use samples rates around 33KHz, and some go higher.
Depends on what you mean by a regular sound device? As stated 0.1 Hz is not that precise by today standards so it should be possible with average equipment. What are you trying to accomplish?
By the way that frequency is just an example. I want to build a Rife machine out of a laptop and a stereo. And a couple of electrodes made of copper, covered in napkins wet with salt water.
A Rife machine kills specific microbes by passing a current through the body at a specific frequency for each microbe. An accuracy better than 0.25 Hz is given in the specs of some such machines. The most basic machines cost $800.
Any computer or musical device could be off. Without any calibration you can't tell. If you need it to be calibrated then you have to take it to a service or compare it to a nationally known calibration source. If this needs to be precise then you'll need to get some reference or a device that has calibration stamp on it.
I kind of doubt you'd need a clock reference that is off one beat every three years. I used to use a clock like that for very precise times.
Maybe the error can be discovered by capturing one hour's worth of this sound from the microphone of another computer and then writing a program to count the number of peaks in that file.
Rife machine as I wrote above. If the capture is started and stopped based on the cmos clock, then don't we know for sure it lasts one hour? To a reasonably high precision (or the cmos clock would be useless).
Got another idea. Have two computers play the same frequency and capture from a microphone. If the capture file has a constant amplitude on a graph, the frequencies are very close and the error negligible. If they go out of phase every 10 seconds resulting in zero amplitude, the error is 1/10 Hz.
Just been reading up on Rife machines. What are you going to use for an output transducer? Impedance might be a problem and you could destroy your stereo.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.