home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hope PC Multimedia SuperPack 2
/
HOMEPC.iso
/
CAKEWALK
/
VELPCT.CA_
/
VELPCT.bin
Wrap
Text File
|
1996-02-22
|
545b
|
28 lines
;; VELPCT.CAL
;;
;; This is a sample CAL program that implements an editing command to
;; scale note velocities by a certain percentage.
;;
;; Demonstrates:
;;
;; (forEachEvent)
;; Getting input from the user
;; Arithmetic operators
;; Event kind and parameter variables
(do
(include "need20.cal") ; Require version 2.0 or higher of CAL
(int percent 100)
(getInt percent "Percentage?" 1 1000)
(forEachEvent
(if (== Event.Kind NOTE)
(do
(*= Note.Vel percent)
(/= Note.Vel 100)
)
)
)
)