Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "DaveO" Newsgroups: comp.lang.basic.visual.misc Subject: Re: The Beep Function. Date: Wed, 11 Jan 2012 15:21:45 -0000 Organization: A noiseless patient Spider Lines: 33 Message-ID: References: <491f49f4-a678-4420-b0e4-935b398adc7b@a40g2000vbu.googlegroups.com> <7b72a5b5-5662-4632-b3b9-9f45a985c9fd@z12g2000yqm.googlegroups.com> <7a47f23c-fede-4d93-b47b-e27a16513308@n30g2000yqd.googlegroups.com> Injection-Date: Wed, 11 Jan 2012 15:21:42 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="6lq56iu6vEJec5m8zn4zjg"; logging-data="8366"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KR+dr6k8ZW0e9ucq96vgQ" X-RFC2646: Format=Flowed; Original X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 Cancel-Lock: sha1:1tjEU3fdE/k9mjBIdFCDYfNMacY= X-Priority: 3 X-MSMail-Priority: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:631 "Peter Nolan" wrote in message news:7a47f23c-fede-4d93-b47b- >While I have a firm grasp of everything it's >very unlikely I would be able to code in that ramp at the start and >end of the waveform that must be tailor made for each frequency and >duration of that WAV. So I ask you in your own time to do this for me >pointing out that I will be so happy to get it that there is no >problem for me just to wait for as long as it takes for you to write >the code. I would be happy to wait weeks if that is the time you might >need to build in this adjustment to the code. Don't worry at all about >how long it might take you to do it. >I wish I could write this code myself. You will never be able to do it yourself if you don't try! Looking at the code from Mike there is a variable called "Amplitude", you should be able to work out what that's for Presumably all you need to do is for the first n samples increase Amplitude from zero to the full value and for the last n samples reduce it to zero. The value n which should probably be proportional (possibly inversely proportional) to frequency could easily be established by trial and error Regards DaveO