• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Advanced CAL Techniques > Introduction to CAL Programming

Introduction to CAL Programming

Unfortunately, there is no easy way to create your own CAL programs. To tap the full power of its functionality, you need to learn how to create programs from scratch using the Cakewalk Application Language. The problem is that teaching a course in CAL programming would take up an entire book. So instead, I’ll just get you started by providing a brief introduction to the language. The best way to do that is to walk you through the code of one of the CAL programs that comes included with SONAR.

To get started, open the Scale Velocity.CAL program (see Figure 16.1). The first thing you’ll see is a bunch of lines that start with semicolons and contain some text describing the CAL program. These lines are called comments. Whenever you insert a semicolon into the code of a CAL program, SONAR ignores that part of the code when you run the program. This way, you can mark the code with descriptive notes. When you come back to the program at a later date, you will understand what certain parts of the program are supposed to accomplish.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint