• SONAR
  • A couple of feature suggestions for Sonar X(?) (p.2)
2014/09/04 08:37:29
Del
dcumpian
 

Paul P
TomHelvey
Now I'm going to read the ref manual and play with it. A controllable midi compressor seems like it might be relatively easy to code (I need one of those).
 


John S. Allen's Cakewalk CAL programming information page

Here's a Programming Guide by D. Glen Gardenas and Ton Valkenburgh
 
More stuff from Ton Valkenburgh :
 
Examples and library  :

 
 
 
http://web.archive.org/web/20060429074139/http://home.wanadoo.nl/t.valkenburgh/CAL.html
 
 
 

 
CAL course  (select CAL Course in bar at left for English version):

 
 
 
http://web.archive.org/web/20070203202120/http://home.wanadoo.nl/t.valkenburgh/indexmidi.html
 
 
 

 




Nice resource! Thanks!
 
Regards,
Dan
 
 




 
Yes, Thanks alot!
2014/09/04 09:58:49
scook
TomHelvey
 
I just realized CAL isn't that hard.

If it were hard, I would not suggest it because I would not have tried it myself.
 
TomHelvey
A controllable midi compressor seems like it might be relatively easy to code (I need one of those).

Have a look in the CAL directory for C-MPLIMT.CAL
I believe the Velocity MFX might get similar results without destructive edits.
 
 
Other CAL links
http://www.hexachord.net/cakewalk-cal/
http://www.softpedia.com/get/Office-tools/Text-editors/CAL-Editor.shtml Not crazy about the editor but it does include a chm for CAL itself.
 
2014/09/04 13:12:24
golophei
Thank you so much Scook. You are so knowledgeable! Thanks everyone else. I will start playing with CAL.
2014/09/04 23:39:10
golophei
Hi Scook

Is there any way to write a CAL script to use TAB button to select not event within piano roll view?

Thank you

Sam
2014/09/05 00:56:23
mudgel
I have a zip file on my Onedrive with scores of cal scripts and other resources.

Here's the link.
https://onedrive.live.com...mp;ithint=folder%2crar
2014/09/05 01:41:48
scook
golophei

Is there any way to write a CAL script to use TAB button to select not event within piano roll view?


I don't believe CAL can select the notes but Now can be used as a filter. Extending the Raise Pitch CAL example above, with the track selected, using tab to position Now and executing
   (forEachEvent
      (if (== Event.Time Now)
         (if (== Event.Kind NOTE)
            (if (< Note.Key 127)
               (+= Note.Key 1)
            )    
         )
      )
   )
 
will raise the pitch of the notes only at Now. Not very elegant but it does work.
2014/09/05 11:37:49
brconflict
I have one quick suggestion: Allow Sonar's Paste function in Take Lanes to Paste in the Lane the cursor hovers over, the Lane that's selected, or a brand new Lane. I think there's still some odd things that can happen here as-is, namely that a Pasted clip in the same Lane splits the clip in the current Take Lane.
 
I'sd like to be able to Paste in the Lane the cursor hovers over (usually a blanks space) so I can then drag the Pasted clip anywhere I want without cutting up the clip where the newly Pasted clip appears.
 
More, it would be divine to select, "Paste Into New Lane", creating a brand new Lane for a Pasted clip.
2014/09/05 12:39:12
scook
Here is an improvement on #16 above. The script now only loops through Notes at Now time (which follow tab). Still requires a time-based selection to process though:
 
;;; pitchUp.CAL
;;;
;;; Increments Note.Key values at Now time in selected MIDI notes
;;; 
;;; After processing, the script has a side effect of selecting all notes

;;; in the current track based on the current select From and Thru values
;;; =====================================================================
;;;
(do
   ; save From and Thru values
   (dword FromSave From)
   (dword ThruSave Thru)

   ; use Now to set From and Thru values
   (= From Now)
   (= Thru (+ Now 1))
   

   ; Loop through Events starting with From ending with Thru
   ; and increment Note.Key
   (forEachEvent
      (if (&& (== Event.Kind NOTE) (< Note.Key 127))
         (++ Note.Key)))

   ; restore From and Thru values
   (= From FromSave)
   (= Thru ThruSave)
)


2014/09/05 15:22:27
chilldanny
If any one person here on this forum deserves a Cakewalk coffee mug, it has to be Scook :)

@brconflict
I would think that Lanes will be one of the main areas to see some progression in the next update.
2014/09/05 16:21:48
golophei
"If any one person here on this forum deserves a Cakewalk coffee mug, it has to be Scook :)"

Hands down!  He deserves a trophy!
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account