home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 4 / boot-disc-1996-12.iso / Apps / Cakewalk / PROAUD45 / CH_MAJOR.CA_ / CH_MAJOR.bin
Text File  |  1996-05-20  |  534b  |  24 lines

  1. ;; Ch_major.cal
  2. ;;
  3. ;; Treats each note as the root of a major chord, and creates that chord:
  4. ;; For each note event, adds two note events with same time, vel, and dur
  5. ;; but a major third and a perfect fifth higher.
  6. ;;
  7.  
  8. (do
  9.     (include "need20.cal")    ; Require version 2.0 or higher of CAL
  10.  
  11.     (forEachEvent
  12.         (if (== Event.Kind NOTE)
  13.            (do
  14.              (insert Event.Time Event.Chan NOTE (+ Note.Key 4) Note.Vel Note.Dur)
  15.              (insert Event.Time Event.Chan NOTE (+ Note.Key 7) Note.Vel Note.Dur)
  16.            )
  17.         )
  18.     )
  19. )
  20.  
  21.  
  22.  
  23.  
  24.