• SONAR
  • CAL script: split notes to tracks (p.2)
2015/07/18 15:37:00
jonogrant
Ha! Figured it out after years of frustration!
 
The CAL script "Split notes to tracks" does not work if you have "display all times as smpte" selected in the display preferences! It must have something to do with how the script calculates where to put all the midi notes on the time line and smpte time display must conflict with that process, hence the error code 14: "value out of range"
 
This would explain why only a few people posted inquiries about it. Only people working in film or tv would want to have all times displayed as smpte.
 
I will post a new thread with this fining. Thanks to those to chimed in here!
Cheers
JG
 
 
2015/07/18 16:49:12
Notecrusher
I use this CAL on virtually every project to split my drums out to individual tracks. You do not need to move the source track to the last track in the project. When you specify the target track number in the script just specify a track number that's several numbers higher than your last track to prevent the created tracks from obliterating any of your existing tracks. 
 
I don't have any issues w/ instability w/ this CAL.
Other tips:
-Don't worry about selecting the source track before running the CAL -- you specify it in the script.
-Take note of your source track's MIDI port before running the CAL. You are asked for it in the script and setting it correctly will save you fixing it up in all your created tracks.
- I always set the MIDI channel to 0.
 
2017/08/06 18:11:13
2coolmuisc1
Hi, Is there a "CAL" routine to do this...(change note
velocity)? I want to grab all notes on a midi track then run a
"CAL" routine to only change notes in a range (say 40 to 70)
to another range of say 60 to 100 respectively or even move
those notes to another midi track.
 
Aug 6,2017
2017/08/06 22:08:23
Blades
For all those using the CAL script to split drum notes out to separate tracks, there are MANY use cases where a drum map would work better and I personally think it's a much cleaner result.
 
If you haven't already, before you say "I don't need no stinking drum maps", please check out my (old) tutorial video on the topic here:
https://www.blades.technology/music/sonar/sonar-drum-maps
 
Hope this helps someone.
2017/08/06 22:11:51
scook
This is an old thread revived to ask an unrelated question.This should be avoided. Have a question? Create a new thread.
2017/08/06 22:13:26
promidi
Could you not use the Menu item: Edit | Select | By Filter function  or the Menu item: Process | Find/Change function?
2017/08/06 22:25:32
Blades
Hey scook - you are right.  I didn't even see the date.  That said, the CAL scripts have been around since seemingly the beginning of time and the Drum Map tutorial video I did was recorded in Sonar 5 (that's FIVE), but (sadly) it's still almost completely relevant and unchanged.
2017/08/06 22:50:33
konradh
I could swear Cakewalk had a CHANNELIZE utility.  I guess that was a really old version I remember.
2017/08/06 23:06:41
interpolated
I never use CAL much now however it does have some velocity editing tricks. Why not open a CAL file in notepad and study how it works and maybe you can work out how create your own scripts.
 
12
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account