home *** CD-ROM | disk | FTP | other *** search
/ Falcon 030 Power 2 / F030_POWER2.iso / ST_STE / MAGS / STOSBTS2.ARJ / stosbts2.msa / DATA / VOLIND.DAT < prev    next >
Text File  |  1987-04-22  |  2KB  |  42 lines

  1.                     VOLUME INDICATORS IN STOS
  2.  
  3.                         BY   EDDIE BRYAN
  4.  
  5.  
  6. Hello and welcome to the first article I have written for this 
  7. issue of STOS BITS, this article is going to explain the source 
  8. code that is used to produce wicked vu meters in STOS, the source 
  9. code can be found inside the STOS folder on this disc.
  10.  
  11.      Ok off we go, at line 100 to 160,a array is set up that 
  12. contains coordinate info about the location of 15 bars, these 
  13. bars are used to show the varing volumes of the 3 ST sound 
  14. channels.
  15.  
  16.      The main loop does 2 things, firstly the program sets up 
  17. AREG(5) equal to the address of memory bank 5, then the 68000 
  18. code in bank 10 is CALLED, this code reads the ST's sound 
  19. channels and pokes the 3 different volumes (0-15) into the first 
  20. 3 bytes found at START(5), the AREG(5)= command is used to tell 
  21. the machine code routine where to put the 3 volumes, so you can 
  22. set this to any value, the second put of the main loop SCREEN 
  23. COPIES the correct volume bar onto the physical screen.
  24.  
  25.      There are 6 variables used, A/B/C/AA/BB/CC, A contains the 
  26. new volume, after the machine code routine is called, AA contains 
  27. the previous volume, these different values are used to make the 
  28. volume bars slide smoothly down, as apposed to jumping from 
  29. volume to volume.
  30.  
  31.      The graphics for the volume bars are stored as a packed 
  32. picture, and is unpacked to screen 13 when the code is run.
  33.  
  34.      This simple routine can be adapted to produce some great 
  35. effects, the bars can be changed to anything, such as balls that 
  36. shrink and grow, as long as you have 15 frames of animation.
  37.  
  38. Well I hope this has been of help to you.....bye  Eddie Bryan.
  39. }
  40.  
  41.  
  42.