* * *

Author Topic: Windows.Beep Using Textmode IDE  (Read 1760 times)

Elap

  • Jr. Member
  • **
  • Posts: 52
Windows.Beep Using Textmode IDE
« on: August 22, 2016, 11:26:23 am »
The program below makes the required sounds, but between each sound there is a noticeable pause.

Why is this?  Is it possible to get a continuous sound?

Code: Pascal  [Select]
  1. PROGRAM SOUNDTEST;
  2.  
  3. USES
  4.     WINDOWS;
  5.  
  6. VAR
  7.     I: INTEGER;
  8.  
  9. BEGIN
  10.     FOR I:=30 TO 500 DO
  11.         BEEP(10*I,1000);
  12. END.

Many thanks for your help.

Thaddy

  • Hero Member
  • *****
  • Posts: 4617
Re: Windows.Beep Using Textmode IDE
« Reply #1 on: August 22, 2016, 11:58:18 am »
Because you gave it a duration. A windows.beep is supposed to be distinguisable from a continuous sound.
So it has a slight pause.
What you you seem to want ios a sine sweep. That's rather more complex.

http://www.satsignal.eu/software/audio.html#SweepGen

That's proper code.... Although it may seem old.

"Logically, no number of positive outcomes at the level of experimental testing can confirm a scientific theory, but a single counterexample is logically decisive."

Elap

  • Jr. Member
  • **
  • Posts: 52
Re: Windows.Beep Using Textmode IDE
« Reply #2 on: August 22, 2016, 12:49:03 pm »
Oh.

Thank you.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus