home *** CD-ROM | disk | FTP | other *** search
/ Computer Panoráma / computer_panorama_1997-12-hibas.iso / SHARE / SOUND / MIDILANG.ZIP / AUTOBAS.MPL < prev    next >
Encoding:
Text File  |  1997-09-27  |  948 b   |  70 lines

  1. #
  2. #
  3. #
  4. #    autobas.mpl
  5. #
  6. #    Automatic Scale of Bass for Midi Keyboard
  7. #
  8. #
  9. # This file is a mpl effect definition used by MidiLang
  10. # This effect adds scale of basses ( C D E F G A C ) based on
  11. # your melody.
  12. #
  13. #    The tonality is reset every 8 beats.
  14. #
  15. #    This mpl effect supposes that your bass channel is 2
  16. #
  17. #
  18.  
  19.  
  20.  
  21. Label beats
  22. # to be run at each beat
  23.  
  24. v+= 10 1
  25.  
  26. v< 10 9
  27.     goto suite
  28.  
  29. v= 10 1
  30. beat= 0
  31.  
  32. v== 9 0        if no note have been played , wait
  33.     goto end_beat
  34.  
  35. oldharm 1    reset the harmony
  36. calcharm 1
  37.  
  38. Label suite
  39.  
  40. v== 9 0
  41.     goto end_beat
  42.  
  43. getharm 1 10 5        get the note V[10]
  44.  
  45. Chan= 2
  46. vel= 100
  47. note=v 5
  48. note+= 24
  49. outmidi
  50. time+= 479
  51. vel= 0
  52. outmidi
  53.  
  54. Label end_beat
  55. end
  56.  
  57.  
  58. Label Main        Every note played are sent 
  59. CalcHarm 1        to the harmony package
  60. v= 9 1
  61. End
  62.  
  63. descript Automatic bass
  64. descript based on your melody.
  65. descript the scale is the one defined with
  66. descript your melody.
  67.  
  68.