Category : Modula II Source Code
Archive   : M2MUSIC.ZIP
Filename : JPISPEAK.MOD

 
Output of file : JPISPEAK.MOD contained in archive : M2MUSIC.ZIP
IMPLEMENTATION MODULE Speaker;
(* Routines turn the speaker on at a given frequency,
to turn it off again, and to delay processing for a set interval.
For specifications see corresponding definition module. *)

IMPORT Lib;

PROCEDURE Sound (FreqHz : CARDINAL);
BEGIN
Lib.Sound(FreqHz);
END Sound;

PROCEDURE NoSound;
BEGIN
Lib.NoSound;
END NoSound;

PROCEDURE Delay (Time : CARDINAL);
BEGIN
Lib.Delay(Time);
END Delay;

PROCEDURE ATDelay (Time : CARDINAL);
BEGIN
Lib.Delay(Time);
END ATDelay;

PROCEDURE Wait (Time : CARDINAL);
BEGIN
Lib.Delay(Time);
END Wait;


PROCEDURE PlayNote (Frequency, Time : CARDINAL);
BEGIN
Sound(Frequency);
Delay(Time);
NoSound;
END PlayNote;

END Speaker.










  3 Responses to “Category : Modula II Source Code
Archive   : M2MUSIC.ZIP
Filename : JPISPEAK.MOD

  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/