home *** CD-ROM | disk | FTP | other *** search
/ Audio 4.94 - Over 11,000 Files / audio-11000.iso / msdos / music / njchime / njchime.arc / NJCHIME.DOC < prev   
Text File  |  1988-06-21  |  6KB  |  150 lines

  1. NJCHIME
  2. Nifty James' Famous Chimer
  3. Version 1.00 of 25 June 88
  4. (C) Copyright 1988 by Mike Blaszczak
  5. All Rights Reserved
  6.  
  7. THIS PROGRAM MAY NOT BE REDISTRIBUTED OR RESOLD WITHOUT THE PRIOR 
  8. WRITTEN CONSENT OF THE AUTHOR.  THE PROGRAM MAY NOT BE OFFERED AS 
  9. INCENTIVE TO PURCHASE; DOING SO IS A CRIME.
  10.  
  11. "Oh, Papa, but this one, she's for you!"
  12.  
  13.      -- Breaking Away
  14.  
  15. For quite some time, my dad has supported my meanderings with the 
  16. computer.  He would be off doing yardwork while his teenage son 
  17. hacked away at the computer.  So, for all those years of 
  18. patience, I have written my dad a program that he will certainly 
  19. like.  It is for his birthday later in July.  Of course, I will 
  20. probably get him something else, perhaps for his model planes or 
  21. something.  But I sure hope he will have fun with this program.
  22.  
  23. My father, you see, seems to be fascinated with clocks.  Back 
  24. when I was much younger (yes, there is life before eighteen), he 
  25. built this big old grandfather clock from a kit.  It made three 
  26. different chimes, and it was certainly the cat's meow for some 
  27. time to come.  Now, we my parents also have a similar wall clock 
  28. in their kitchen.  I have since moved out to my own apartment to 
  29. start working and go to college.
  30.  
  31. This clock could play three different chimes.  They were modeled 
  32. after several famous tower clocks around the world.  There were 
  33. the Saint Michael's chime, the Whittington chime, and the 
  34. Westminster chime.
  35.  
  36. From the chimies of old, I have converted the old whirring and 
  37. clinking mechanisims into structures and bytes, pointers and 
  38. offests.
  39.  
  40. NJCHIME is a terminate-and-stay resident program that attaches 
  41. itself to the BIOS timer-tick interrupt.  The program counts the 
  42. time internally, so that it does not bring any overhead into 
  43. system throughput by using DOS functions.  When the program 
  44. realizes that the time is nearing the hour, the program starts 
  45. chiming.
  46.  
  47. In its default mode, NJCHIME produces "Time Tone" beeps.  These 
  48. consist of three short beeps, starting at three seconds before 
  49. the hour.  Then, at the hour, a longer and higher beep is given.  
  50. Many of the dial-up time services provide such a time tone.
  51.  
  52. NJCHIME can be given the /M option on the command line to provide 
  53. the different clock chimes.  Using:
  54.  
  55.      NJCHIME /M1
  56.  
  57. would setup NJCHIME to use the Westminster chimes.  These are the 
  58. available chimes and their codes:
  59.  
  60.      M0   -    Time Tones
  61.      M1   -    Westminster Chimes
  62.      M2   -    Saint Michael Chimes
  63.      M3   -    Whittington Chimes
  64.  
  65. The Westminster chimes are the chimes that are played by Big Ben, 
  66. the most famous of all clock towers.  From its home in London, 
  67. England, the clock plays a melody based on a composition by 
  68. Handel.
  69.  
  70. The Saint Michael Chimes are also from England.  However, the 
  71. Saint Michael Chimes were cast by an English craftsman for a 
  72. church in Charleston, South Carolina during the Revolutionary 
  73. war.  However, the British captured this city by battle, and took 
  74. the bells back to England.  Amazingly enough, the American rebels 
  75. stole the moulds for the bells, and a second set of bells was 
  76. cast and installed in the Carolinian church.
  77.  
  78. The Whittington chimes were named for Lord Mayor Richard 
  79. Whittington.  Whittington started life in poverty.  However, he 
  80. made money in great volume by trading.  After his terms as Lord 
  81. Mayor of London, he became a philanthropist.
  82.  
  83. If you select the M0 option of the program, NJCHIME will only 
  84. become active at the hour.  Otherwise, NJCHIME will faithfully 
  85. reproduce the chimes for each quarter hour of the clock.  The 
  86. program will also strike the hour by "Bonging" for each hour, or 
  87. striking just once for the half hour.
  88.  
  89. Compatibility
  90. -------------
  91.  
  92. NJCHIME takes a little less than 1024 bytes of DOS memory.  As 
  93. with other TSR programs, it is advisable to install NJCHIME 
  94. before you use SET to set up any additional environment 
  95. variables.
  96.  
  97. NJCHIME should be compatible with every program -- it is not ill-
  98. behaved in any way.  If you use another program that accesses the 
  99. speaker port while NJCHIME is chiming or striking, the speaker 
  100. may sound fuzzled for a few notes.  However, due to the nature of 
  101. the IBM speaker output system, NJCHIME will recover gracefully 
  102. after a few notes.
  103.  
  104. Whirrings And Klunkings
  105. -----------------------
  106.  
  107. NJCHIME is a rather intricate program.  If you are familliar with 
  108. Microsoft BASIC, you will understand that NJCHIME implements much 
  109. of the PLAY command with its "Music Background" mode.
  110.  
  111. NJCHIME basically monitors the system clock, counting the time in 
  112. its own internal representation.  At each clock tick, NJCHIME 
  113. checks through each of several modes that it can be using.  If 
  114. NJCHIME is Playing a note, resting between notes, bonging for the 
  115. hour, waiting between bongs, or selecting the next note, the 
  116. program executes slightly different code.  Of course, much of the 
  117. program is skipped over for most of the time.  The majority of 
  118. the time, the program is simply dormant.  However, while striking 
  119. the hour or chiming, the program excutes the remaining code.
  120.  
  121. Getting Fancy
  122. -------------
  123.  
  124. I have a personal version of NJCHIME that plays the opening bars 
  125. of "Stairyway To Heaven".  I am also considering converting some 
  126. sheet music from Pink Floyd and Rush compilations that I have.  
  127. If you would like to have NJCHIME play another tune or function 
  128. when you use it, please register your copy and send me a copy of 
  129. the sheet music which you would like to have coded.  I'll do my 
  130. best to reply to each of these requests in a prompt manner!
  131.  
  132. Registration
  133. ------------
  134.  
  135. Of course, my father got his copy free.  But, if you find that 
  136. you're enjoying NJCHIME, I'd like to request that you send a 
  137. donation that you feel is appropriate for the program.  I would 
  138. request a contribution of $10, but you can send more or less, as 
  139. you see fit.
  140.  
  141. Thank you for your time!
  142.  
  143. Mike "Nifty James" Blaszczak
  144. 35 Ginger Lane #229
  145. East Hartford, Connecticut  06118
  146.  
  147. BIX:           blaszczak
  148. CompuServe:    76360,157
  149. NWI:           NIFTY JAMES
  150.