SOUND x%, 0.00001

Please use this Board for QBasic related requests ( file research, programming, etc.)

Moderators:Administrator, Global Moderator

Post Reply
Guest
SOUND x%, 0.00001

Post by Guest » Sun Aug 24, 2003 12:57 am

I need make a sound with duration very short.
My limit is 0.02272728.......
I need 0.0001 or more short.

Dr_Davenstein
QBasic God
Posts:166
Joined:Tue Mar 25, 2003 12:45 am
Location:U.S.A.
Contact:

Re: SOUND x%, 0.00001

Post by Dr_Davenstein » Sun Aug 24, 2003 2:09 am

FOR Divisor% = 10 TO 10000
SOUND Divisor% + 27, Lent!
 Lent! = (18.2 / Divisor%)
 PRINT Lent!
NEXT

As you can see, QB can't play sounds that short. I don't know why, but it can't. Maybe the human ear just can't  hear it! I've never checked to see where it stops, but it is'nt nearly as low as what you posted.

::)

If you want good sound for Qb, try this, It stands for DirectSound for QB v2...
http://piptol.qbasicnews.com/files/ds4qbpp12.zip

or this...
It's called Bells, Whistles and Soundboards
I don't like this one, but hey, you might!
http://piptol.qbasicnews.com/files/bwsb.zip
Come check out [url=http://www.freebasic.net/forum/index.php]FreeBASIC[/url]. The syntax is based on QuickBasic, but it expands to use pointers, operator overloading, etc... The list goes on and on!

User avatar
frankiebaby
Global Moderator
Posts:95
Joined:Tue Apr 30, 2002 1:38 am
Location:Pennsylvania
Contact:

Re: SOUND x%, 0.00001

Post by frankiebaby » Wed Aug 27, 2003 11:21 pm

I think you may need to use assembly. Look for assembly tutorials and interrupt lists for system hardware, it should be fairly easy, a few lines of assembly at the most, i'd imagine.

Post Reply