generating inaudible freqs

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
rrochon
Posts: 2
Joined: Fri May 24, 2013 9:10 pm
Operating System: Please select

generating inaudible freqs

Post by rrochon » Fri May 24, 2013 9:43 pm

How do I generate freqs at 40,000hz? And what format? MP3 is for audible tones.

kozikowski
Forum Staff
Posts: 68902
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: generating inaudible freqs

Post by kozikowski » Sat May 25, 2013 2:31 am

Lots of really nasty things happen when you get beyond audible frequencies. For one thing, your soundcard stops working unless you bought a really fancy one or you're outputting around the card.

All the analysis tools drop dead, so you'll be inspecting your work with the magnifier and a calculator.

For 40000Hz, you'll need a sampling rate of at least 104000. 2.6 times the highest frequency in the show. I just created a sine wave at 40000 using a sampling rate of 176400 and it didn't get too badly banged up (Illustration).

What are you going to do with it? People who do scientific exercises with Audacity get burned all the time. Audacity is a sound production editor not a scientific generator or analysis tool.

Koz
Attachments
Screen shot 2013-05-24 at 7.20.05 PM.png
Screen shot 2013-05-24 at 7.20.05 PM.png (24.59 KiB) Viewed 624 times

pnielsen
Posts: 12
Joined: Fri Apr 26, 2013 9:08 am
Operating System: Please select

Re: generating inaudible freqs

Post by pnielsen » Sat May 25, 2013 10:52 am

One option is to connect a simple "frequency doubling" circuit to the sound card's output. Since you specified a single frequency, I am assuming you want a continuous wave.

For a sine wave, you can generate 20KHz in Audacity, and then build this one transistor circuit to derive 40KHz.

http://electriciantraining.tpub.com/141 ... 181_95.htm

If a square wave will suffice, clock a binary CMOS counter IC with an AF square wave from Audacity. This will output 2x, 3x, 4x, etc. simultaneously. The advantage here is that, unlike the previous tuned circuit, it will work over a wide range of input frequencies. A filter stage could be added to approximate a sinewave, if required.

http://www.milton.arachsys.com/nj71/ind ... u=5&page=2

But then, if you know a little electronics, it would perhaps be more straightforward to build a variable oscillator based on the LM555 or XR2206 IC, depending on what waveform is required. You could also buy a cheap, bare-board function generator from a Chinese supplier on eBay.

Post Reply