CAL Stands for CakeWalk Application Languages
CAL is an event processing language that is used for extend Pro Audio and Professional with custom editing commands. It was started as a Musical Instrument Digital Interface sequencer made by Twelve Tone systems.
We can create CAL script by recording a series of commands, keystrokes and mouse action from within cakewalk. To use CAL you will need Cakewalk Pro for DOS, Cakewalk Professional for Windows, or Cakewalk Pro Audio.
Given example will ask value from user then it will add that values to the velocity parameter of not events:
(do) (int amt 0) (getInt amt "Amount to add?" -127 127) (forEachEvent (if (== Event.Kind NOTE) (+= Note.Vel amt) ) ) )