Re: =?iso-8859-2?Q?Generating=A0sine=A0waves=A0with=A0Winsound?= (Pawel Kusmierek )


Subject: Re: =?iso-8859-2?Q?Generating=A0sine=A0waves=A0with=A0Winsound?=
From:    Pawel Kusmierek  <p.kusmierek(at)NENCKI.GOV.PL>
Date:    Thu, 8 Jan 2004 12:35:31 +0100

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(at)nencki.gov.pl


This message came from the mail archive
http://www.auditory.org/postings/2004/
maintained by:
DAn Ellis <dpwe@ee.columbia.edu>
Electrical Engineering Dept., Columbia University