Category : Files from Magazines
Archive   : PCTV1N2.ZIP
Filename : BSOUND.BAS

 
Output of file : BSOUND.BAS contained in archive : PCTV1N2.ZIP
'**** BSOUND.BAS - demonstrates BSound for PC Techniques

'Copyright (c) 1990 Ethan Winer


DEFINT A-Z

PRINT "First let's make an outer-space sound"
FOR X = 1 TO 6
FOR Y = 1 TO 2
CALL BSound(Y * 100, 1)
CALL BSound(1000 - Y * 10, 1)
NEXT
NEXT
PRINT "No big deal, right?"

CALL Pause(20)

PRINT "Okay, so now we'll play a familiar tune"
FOR X = 1 TO 10
READ Frequency, Duration
CALL BSound(Frequency, Duration)
NEXT
PRINT "Well, close--but something's still not quite right."

CALL Pause(40)

RESTORE
PRINT "I've got it: we need some vibrato! How's this?"
FOR X = 1 TO 10
READ Frequency, Duration
FOR Y = 1 TO Duration \ 2
CALL BSound(Frequency + 10, 1)
CALL BSound(Frequency - 10, 1)
NEXT
NEXT
PRINT "That's the ticket!"

DATA 523, 16, 1047, 16, 988, 8, 784, 4, 880, 4, 988, 8, 1047, 8
DATA 523, 16, 880, 16, 784, 24



  3 Responses to “Category : Files from Magazines
Archive   : PCTV1N2.ZIP
Filename : BSOUND.BAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/