• SONAR
  • CAL script: split notes to tracks
2015/07/17 20:55:26
jonogrant
Hello out there!
Has anyone gotten the CAL script "split midi notes to tracks" to work? I'm trying all sorts of CAL scripts in the list that work fine but this one will not work. I got it to work way back in Sonar 7 and I was ecstatic about it... but it never worked again in later versions. i would get an error message saying the values were out of range or something to that effect. Now, in my demo of Platinum, it does nothing at all. It seems to go through a quick process but nothing happens.
 
I just want to split a midi drum part up that I played onto one track so I can have access to the separate instruments, each on it's own track. I'm aware of the multi output features offered in most drum soft synths and use that method currently. But sometimes to have all the snare drum hits on one track of midi is more useful, because the snare midi is triggering room mics, overheads, ambient mics etc. it would be nice to be able to render an audio track of all the snare mics together so that any added dynamics etc. would affect all the snare data at once.
 
I also know about other 3rd party apps like "midi split" etc. but it would be nice to do it internally in Sonar. It seems like it would be a simple procedure for a computer DAW to handle. 
 
Anybody out there had any luck with this?
Cheers
JG
2015/07/17 21:14:09
scook
Just tested it on a MIDI track in an otherwise empty project. The script worked fine. When running a script like this avoid instrument tracks anywhere in the project. CAL development stopped well before instrument tracks and they through the track count off.
2015/07/17 21:26:39
mettelus
I believe that script needs to be run on the LAST track in the project, as it expects the next track to be blank. It blindly creates tracks and cannot if data exists in them. Be sure to move the MIDI into the last project track first.
2015/07/17 23:12:50
TomHelvey
I use the script all the time. As the previous poster mentioned, you have to move the track you're splitting to the bottom of the project.
Clone the original track if you want to save it, the source track is destroyed by the script
Move the cloned track you want to split to the end of the project.
Select it and Process->Run CAL->Split Notes To Tracks
Set the source track to the one you want to split
First destination track to the next track number (empty track)
Destination channel (10 for drums)
Destination port (the midi device you want the new tracks to point to)
Once you run the script, it will create a new track for each midi note and leave the original source track empty (no data).
A couple artifacts, some of the new tracks will be 2 or 3 times longer than the original, select all the new tracks and do a Bounce To Clips to make them a reasonable length again. After bouncing to clips save the project and exit Sonar.
Split Notes To Tracks appears to introduce some instability, even across incarnations, I usually get exactly one crash when I hit play on a project after using it. You might want to hit Ctrl+S before hitting play.
2015/07/18 01:11:38
mudgel
That's a great bit of info. I made a doc of the info and uploaded along with my other CAl info.

Thanks.
2015/07/18 11:44:22
jonogrant
 
Okay, here's what I'm doing:
1. Open fresh instance of Platinum
2. insert one midi track, no other tracks in the file
3. record some midi on the one track
4. select the one and only midi clip
5. go to "run Cal" and select split notes to tracks
6. select source (track 1) select destination (track 2) select channel (10) select port (1)
7. Hit enter
 
* I then get message "Cal error 14: value out of range From"
 
I've been trying this on and off for years now, always baffled by why it won't work.
I always I assumed I wasn't doing something right, perhaps having to do with the selection but I've tried selecting in all different ways.. I can't get it to work. I wonder if something system related could cause a conflict?
 
The other CAL scripts work fine.
Perhaps its midi device related? I use a motu midi express for in and out. I'll go grab a demo and try it on my son's computer, he doesn't have any audio related hardware or software.
 
Crazy 
2015/07/18 13:27:37
jonogrant
 
Oi!
Okay, I just tested it on my son's computer. He doesn't have any audio hardware or plug ins etc.
It worked fine!
 
Something in my machine must be conflicting with it... I tried disabling all my midi device hardware but it didn't help. What other system related element could cause a CAL script not to work?
* I've seen other posts about this with folks getting the same cal error 14 - value out of range. 
 
JG
2015/07/18 14:13:53
Zargg
TomHelvey
 
Clone the original track if you want to save it, the source track is destroyed by the script
Move the cloned track you want to split to the end of the project.
...
Split Notes To Tracks appears to introduce some instability, even across incarnations, I usually get exactly one crash when I hit play on a project after using it. You might want to hit Ctrl+S before hitting play.


Great info I have used this for some time, and sometimes had crashes, wondering "what have I done now". I have not had this for all CAL scripts I have done.
I mostly forget to clone the track before running the script, making it that much less edit friendly afterwards (due to being a little too eager) 
 
To jonogrant. Does it make any difference if you bounce that MIDI you recorded to clip (right click, bounce to clip)?
Best of luck.
2015/07/18 14:18:33
jonogrant
Hey Zargg,
No, bouncing the clip doesn't help. I'm just testing it with a single clip anyhow. This script worked instantly when I tried it on my son's machine.. so I don't think it's the method but rather a conflict on my machine of some type.
 
Cheers
JG
2015/07/18 14:33:26
jonogrant
Okay! New puzzle piece...
 
I've reinstalled sonar but declined migration of any preferences... disabled everything, even sound card...
The CAL script worked!
Now I'm slowly rebuilding my settings as I like them, one at a time to see what the conflict is.
Will post back any results I find!
Thanks
JG
12
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account