Helpful ReplyCAL script: split notes to tracks

Author
jonogrant
Max Output Level: -89 dBFS
  • Total Posts : 99
  • Joined: 2015/07/14 21:34:07
  • Status: offline
2015/07/17 20:55:26 (permalink)

CAL script: split notes to tracks

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

Jono Grant (Film and TV Composer)
Intel Core i7 3930K CPU @ 320 GHz, 32 GB RAM,
Windows 8 (64 bit) . {3 X MOTU 2408 MK3} Asus mboard.
550 GB SSD system drive and 3 - 2TB SATA drives.
Sonar Platinum x64 
#1
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/17 21:14:09 (permalink)
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.
#2
mettelus
Max Output Level: -22 dBFS
  • Total Posts : 5321
  • Joined: 2005/08/05 03:19:25
  • Location: Maryland, USA
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/17 21:26:39 (permalink)
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.

ASUS ROG Maximus X Hero (Wi-Fi AC), i7-8700k, 16GB RAM, GTX-1070Ti, Win 10 Pro, Saffire PRO 24 DSP, A-300 PRO, plus numerous gadgets and gizmos that make or manipulate sound in some way.
#3
TomHelvey
Max Output Level: -80 dBFS
  • Total Posts : 537
  • Joined: 2013/02/26 20:23:54
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/17 23:12:50 (permalink) ☄ Helpfulby Zargg71 2015/07/18 06:07:51
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.
post edited by TomHelvey - 2015/07/18 03:47:08

System: i7-6900, 64Gb, AMI X99 Carbon Pro Gaming, AMD Radeon HD 7700, Win 10 Pro
PCIe: UAD Octo
USB: MOTU midi express 128, OB-6 Module, Akai MPK-249, Moog SUB 37, Antelope Orion 32 HD, Softube Console 1, iLok, eLicenser
DAW: Cubase Pro, Ableton Live, Sonar Platinum
Plugins: Waves, UAD, Xfer, Lennar Digital, u-he, Reveal Sound, Spectrasonics, SoundToys, VPS, Blue Cat, iZotope, NI, Valhalla, Lexicon, etc.
 
https://soundcloud.com/thomas-helvey
#4
mudgel
Max Output Level: 0 dBFS
  • Total Posts : 12010
  • Joined: 2004/08/13 00:56:05
  • Location: Linton Victoria (Near Ballarat)
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/18 01:11:38 (permalink)
That's a great bit of info. I made a doc of the info and uploaded along with my other CAl info.

Thanks.

Mike V. (MUDGEL)

STUDIO: Win 10 Pro x64, SPlat & CbB x64,
PC: ASUS Z370-A, INTEL i7 8700k, 32GIG DDR4 2400, OC 4.7Ghz.
Storage: 7 TB SATA III, 750GiG SSD & Samsung 500 Gig 960 EVO NVMe M.2.
Monitors: Adam A7X, JBL 10” Sub.
Audio I/O & DSP Server: DIGIGRID IOS & IOX.
Screen: Raven MTi + 43" HD 4K TV Monitor.
Keyboard Controller: Native Instruments Komplete Kontrol S88.
#5
jonogrant
Max Output Level: -89 dBFS
  • Total Posts : 99
  • Joined: 2015/07/14 21:34:07
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/18 11:44:22 (permalink)
 
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 

Jono Grant (Film and TV Composer)
Intel Core i7 3930K CPU @ 320 GHz, 32 GB RAM,
Windows 8 (64 bit) . {3 X MOTU 2408 MK3} Asus mboard.
550 GB SSD system drive and 3 - 2TB SATA drives.
Sonar Platinum x64 
#6
jonogrant
Max Output Level: -89 dBFS
  • Total Posts : 99
  • Joined: 2015/07/14 21:34:07
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/18 13:27:37 (permalink)
 
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

Jono Grant (Film and TV Composer)
Intel Core i7 3930K CPU @ 320 GHz, 32 GB RAM,
Windows 8 (64 bit) . {3 X MOTU 2408 MK3} Asus mboard.
550 GB SSD system drive and 3 - 2TB SATA drives.
Sonar Platinum x64 
#7
Zargg
Max Output Level: 0 dBFS
  • Total Posts : 10666
  • Joined: 2014/09/28 04:20:14
  • Location: Norway
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/18 14:13:53 (permalink)
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.

Ken Nilsen
Zargg
BBZ
Win 10 Pro X64, Cakewalk by Bandlab, SPlat X64, AMD AM3+ fx-8320, 16Gb RAM, RME Ucx (+ ARC), Tascam FW 1884, M-Audio Keystation 61es, *AKAI MPK Pro 25, *Softube Console1, Alesis DM6 USB, Maschine MkII
Laptop setup: Win 10 X64, i5 2.4ghz, 8gb RAM, 320gb 7200 RPM HD, Focusrite Solo, + *
 
#8
jonogrant
Max Output Level: -89 dBFS
  • Total Posts : 99
  • Joined: 2015/07/14 21:34:07
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/18 14:18:33 (permalink)
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

Jono Grant (Film and TV Composer)
Intel Core i7 3930K CPU @ 320 GHz, 32 GB RAM,
Windows 8 (64 bit) . {3 X MOTU 2408 MK3} Asus mboard.
550 GB SSD system drive and 3 - 2TB SATA drives.
Sonar Platinum x64 
#9
jonogrant
Max Output Level: -89 dBFS
  • Total Posts : 99
  • Joined: 2015/07/14 21:34:07
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/18 14:33:26 (permalink)
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

Jono Grant (Film and TV Composer)
Intel Core i7 3930K CPU @ 320 GHz, 32 GB RAM,
Windows 8 (64 bit) . {3 X MOTU 2408 MK3} Asus mboard.
550 GB SSD system drive and 3 - 2TB SATA drives.
Sonar Platinum x64 
#10
jonogrant
Max Output Level: -89 dBFS
  • Total Posts : 99
  • Joined: 2015/07/14 21:34:07
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/18 15:37:00 (permalink)
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
 
 

Jono Grant (Film and TV Composer)
Intel Core i7 3930K CPU @ 320 GHz, 32 GB RAM,
Windows 8 (64 bit) . {3 X MOTU 2408 MK3} Asus mboard.
550 GB SSD system drive and 3 - 2TB SATA drives.
Sonar Platinum x64 
#11
Notecrusher
Max Output Level: -79 dBFS
  • Total Posts : 579
  • Joined: 2004/02/17 00:32:14
  • Status: offline
Re: CAL script: split notes to tracks 2015/07/18 16:49:12 (permalink)
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.
 
#12
2coolmuisc1
Max Output Level: -90 dBFS
  • Total Posts : 4
  • Joined: 2015/07/12 14:10:21
  • Status: offline
Re: CAL script: split notes to tracks 2017/08/06 18:11:13 (permalink)
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
#13
Blades
Max Output Level: -43 dBFS
  • Total Posts : 3246
  • Joined: 2003/11/06 08:22:52
  • Location: Georgia
  • Status: offline
Re: CAL script: split notes to tracks 2017/08/06 22:08:23 (permalink)
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.

Blades
www.blades.technology  - Technology Info and Tutorials for Music and Web
#14
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: CAL script: split notes to tracks 2017/08/06 22:11:51 (permalink)
This is an old thread revived to ask an unrelated question.This should be avoided. Have a question? Create a new thread.
#15
promidi
Max Output Level: -66 dBFS
  • Total Posts : 1220
  • Joined: 2014/11/21 18:46:39
  • Location: South Australia
  • Status: offline
Re: CAL script: split notes to tracks 2017/08/06 22:13:26 (permalink)
Could you not use the Menu item: Edit | Select | By Filter function  or the Menu item: Process | Find/Change function?

Windows 10 64bit fully patched, 16 gig ram . 
PCR-800 Controller.  (Working in Win 10 1809 64bit)
CPU: i5 4670. 
Video: Nvidia GTX560ti (latest drivers).
Audio IF: Focusrite 2i2 2nd Gen

Internet always on.

Software
: Cakewalk by Bandlab (2018.09 B29)
ASIO mode. 24bit 48khz 256 samples 
Rapture Pro, AAS GS2, VS-3, EP-4, VA-2, Chromophone 2, Z3TA+ 2, Addictive drums 2, Addictive Keys, Mpowersynth (latest), Iris 2, GPO5, Sampletank 3,
#16
Blades
Max Output Level: -43 dBFS
  • Total Posts : 3246
  • Joined: 2003/11/06 08:22:52
  • Location: Georgia
  • Status: offline
Re: CAL script: split notes to tracks 2017/08/06 22:25:32 (permalink)
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.

Blades
www.blades.technology  - Technology Info and Tutorials for Music and Web
#17
konradh
Max Output Level: -42 dBFS
  • Total Posts : 3325
  • Joined: 2006/01/16 16:07:06
  • Status: offline
Re: CAL script: split notes to tracks 2017/08/06 22:50:33 (permalink)
I could swear Cakewalk had a CHANNELIZE utility.  I guess that was a really old version I remember.

Konrad
Current album and more: http://www.themightykonrad.com/

Sonar X1d Producer. V-Studio 700. PC: Intel i7 CPU 3.07GHz, 12 GB RAM. Win 7 64-bit. RealGuitar, RealStrat, RealLPC, Ivory II, Vienna Symphonic, Hollywood Strings, Electr6ity, Acoustic Legends, FabFour, Scarbee Rick/J-Bass/P-Bass, Kontakt 5. NI Session Guitar. Boldersounds, Noisefirm. EZ Drummer 2. EZ Mix. Melodyne Assist. Guitar Rig 4. Tyros 2, JV-1080, Kurzweil PC2R, TC Helicon VoiceWorks+. Rode NT2a, EV RE20. Presonus Eureka.  Rokit 6s. 
#18
interpolated
Max Output Level: -74 dBFS
  • Total Posts : 830
  • Joined: 2015/03/26 17:34:58
  • Status: offline
Re: CAL script: split notes to tracks 2017/08/06 23:06:41 (permalink)
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.
 

I have computer stuff.
 
https://soundcloud.com/sigmadelta
#19
Jump to:
© 2024 APG vNext Commercial Version 5.1