home *** CD-ROM | disk | FTP | other *** search
/ Between Heaven & Hell 2 / BetweenHeavenHell.cdr / 500 / 456 / techncal.doc < prev    next >
Text File  |  1984-12-01  |  2KB  |  42 lines

  1. TECHNICAL NOTES ABOUT PIANO MAN AND RELATED PROGRAMS
  2.  
  3.     PIANO MAN and its utilities are written in TURBO PASCAL.  Within the
  4. programs, the notes are handled as variables with the structure:
  5.  
  6. type
  7.   FiledNote = record
  8.                 octave, note, staccato : byte;
  9.                 duration               : integer;
  10.               end;
  11.  
  12. The .MUS files are simply:
  13.  
  14. type
  15.   NoteFile = file of FiledNote;
  16.  
  17.                                      -*-
  18.  
  19. PIANOMAN holds the entire tune in memory--it can make use of ALL your memory.
  20. The utilities simply process data from one or more input FILES into an output
  21. FILE, so their memory requirements are relatively negligible.
  22.  
  23.                                      -*-
  24.  
  25.      In order to get at the Key Release Codes, PIANO MAN replaces the normal
  26. keyboard interrupt with its own much simpler version.  The new interrupt does
  27. nothing with the keyboard information except put the received SCAN CODE at a
  28. particular memory location.  (The normal interrupt screens out the release
  29. codes, converts to ASCII, checks for shift keys, etc.).  For reasons as yet
  30. unclear to me, sending too much information at once to this simple interrupt
  31. (i.e., pressing many keys wildly and rapidly), can crash the program.  That's
  32. not too bad, but it crashes with the keyboard disabled for normal use, so your
  33. only recourse is to physically turn the PC off and on again.
  34.  
  35.                                      -*-
  36.  
  37.     PIANO MAN needs at least 128K.  With that much, you can record about 3,600
  38. notes.  If you want more, you can record your composition in sections and save
  39. them with the [A]dd option.  Then process the resulting file with PLAYER PIANO
  40. and enjoy it!
  41.  
  42.