Forum > FV/Textmode IDE
Windows.Beep Using Textmode IDE
(1/1)
Elap:
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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---PROGRAM SOUNDTEST; USES WINDOWS; VAR I: INTEGER; BEGIN FOR I:=30 TO 500 DO BEEP(10*I,1000);END.
Many thanks for your help.
Thaddy:
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.
Elap:
Oh.
Thank you.
Navigation
[0] Message Index