English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is there a program that I can use to make a sound (30 sec) in the 18 kHz to 22 kHz range?

2007-12-17 11:50:40 · 1 answers · asked by lfcovelli 2 in Consumer Electronics Other - Electronics

1 answers

You can write some simple code to generate the output of a simple cos() function at say 21 kHz

A*cos(2*pi*fx*n) , n=0 to T, where A is your amplitude.
You may want to sample at least 4x the frequency (Nyquist sampling theorem). Then send the data to a DA converter.

However, your DA needs to support that frequency as well, otherwise your tone will never be transmitted.

2007-12-17 13:59:36 · answer #1 · answered by TV guy 7 · 0 0

fedest.com, questions and answers