[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generating sine waves with Winsound
Dear Marco,
typically you get such clicks when your sine wave starts at a non-zero
voltage. This causes sudden jump of voltage and a click. I would expect
however that your software should start the sine wave with zero voltage,
unless other voltage is explicitly requested. The other reason may be
that the wave does not end with zero voltage. In such case after the wave
has ended, the voltage stays above (or below) zero. When another wave is
played, the voltage jumps suddenly from the previous valuet to zero and a
click is generated. To avoid this you should either fade in and out your
files or generate waves of such length that that they contain an integer
number of periods (more precisely, half-periods) of the sine wave.
Pawel
--
Pawel Kusmierek
Nencki Institute of Experimental Biology
ul. Pasteura 3
02-093 Warsaw, Poland
phone: (+48 22) 659 85 71 ext. 388 or 379
fax: (+48 22) 822 53 42
email: p.kusmierek@nencki.gov.pl