16-5
Programming
THIN PITCH WHEEL.CAL
This works almost exactly like the previous two programs, but it thins
pitch-wheel events. It asks you for the thinning factor.
This program never deletes wheel events with these special values:
-8192, 0, and 8191.
MAJOR CHORD.CAL, MINOR CHORD.CAL
These two CAL programs and the three other chord-building CAL
programs that come with Pro Audio build chords using existing events in
the track(s) as chord roots.
For instance, if you select a single note as the region and run
MAJOR_CHORD.CAL, two notes are added above the original note. The
resulting chord is a major triad.
Normally, youÕll use these programs on a region containing a single note.
You can, however, apply these to tracks containing many notes. Each
original note will become the root of a chord.
Writing CAL Programs
This section outlines the basics of writing CAL programs. Things will be
easier if youÕve done at least a little programming, whether in BASIC, C,
Pascal, LISP, or another language. (CAL blends elements of C and LISP,
in particular.)
Pro Audio provides only a limited amount of CAL programming
technical support. If you need help with your CAL programming, please
e-mail your request and include a copy of the CAL Þle in question. For
additional information on developing CAL programs:
¥ The on-line help for CAL contains a complete function reference
¥ A tutorial called CAL Tutor is available from Clockwork Music