[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*To*: AUDITORY@xxxxxxxxxxxxxxx*Subject*: Re: Generating sine waves with Winsound*From*: Pawel Kusmierek <p.kusmierek@xxxxxxxxxxxxx>*Date*: Thu, 8 Jan 2004 12:35:31 +0100*Delivery-date*: Thu Jan 8 07:34:42 2004*Importance*: Normal*In-reply-to*: <5845.1073556005@www17.gmx.net>*References*: <200401080503.i0852mQ2009701@viroid.mcgill.ca> <5845.1073556005@www17.gmx.net>*Reply-to*: Pawel Kusmierek <p.kusmierek@xxxxxxxxxxxxx>*Sender*: AUDITORY Research in Auditory Perception <AUDITORY@xxxxxxxxxxxxxxx>*User-agent*: SquirrelMail/1.4.1

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

**References**:**Generating sine waves with Winsound***From:*Marco Kobbenbring

- Prev by Date:
**Re: Generating sine waves with Winsound** - Next by Date:
**ARO 2004 MidWinter meeting, Daytona Beach** - Previous by thread:
**Re: Generating sine waves with Winsound** - Next by thread:
**Re: Generating sine waves with Winsound** - Index(es):