Billy86
Max Output Level: -83 dBFS
- Total Posts : 362
- Joined: 2015/03/06 16:03:26
- Location: Seattle
- Status: offline
CAL scripts seem powerful and efficient. What are they?
Saw a YouTube video about editing MIDI and the guy used a CAL script that apparently comes with Sonar that humanizes a MIDI drum performance by adding random velocities to the entire performance. I got the sense there were other articulations as well. I thought, wow. That beats the arduous task of going in by hand and tweaking every little MIDI event. I could see in his pop up menus that there were a slew of these CAL scripts available to use in Sonar. The names were very arcane. I am intrigued.
What the heck are CAL scripts and is there a list detailing what they do?
Windows 10 x64 on a Dell/Intel i5, 500 Gig SSD, 32 gig RAM, Focusrite Scarlett 2i4, Sonar Professional, Melodyne 4 Assistant, Kurzweil SP-76 stage piano, Baldwin RP 100 digital upright, Novation Impulse 25, Breedlove Pursuit Concert Acous/Elec, Fender American Standard Tele, Fender G-DEC 30 modeling amp, Sigma DM-5 Acoustic, Ovation MCS148 Celebrity Acous/Elec. Mandolin, Roland V-Drums TD-11KV, AKG P220, Yamaha MG82CX mixer, KRK Rokit 6 Powered Monitors, PreSonus FaderPort
|
promidi
Max Output Level: -66 dBFS
- Total Posts : 1220
- Joined: 2014/11/21 18:46:39
- Location: South Australia
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/05 22:24:20
(permalink)
Cal scripts are a text files with a *.CAL extension that are a basically set of instructions that tell Sonar how to modify MIDI event data that occur in a sequence. They only modify MIDI event data and cannot manipulate audio data.
If you look in preferences | File | Folder Location and look at the fifth item down, you'll see where Sonar deems your scripts files to be are located.
They can be written to be quite powerful. For example, I have written one that converts channel aftertouch events to Poly aftertouch events. You just select the channel aftertouch events and one note event and the script does the rest.
CAL scripts have been available in Sonar for as long as I can remember. I have used Sonar (or Cakewalk as it was known in the early days) since the mid nineteen nineties and have used CAL scripts since then.
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,
|
rogeriodec
Max Output Level: -75 dBFS
- Total Posts : 753
- Joined: 2004/04/09 13:55:04
- Location: Brazil
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/06 07:25:46
(permalink)
CAL Script is a language abandoned by Cakewalk for many years. Few dinosaurs are left, who know this language very well. It has several lags in relation to new technologies have been incorporated into Sonar for many years. It is poorly documented and has a sometimes illogical behavior. The programming structure is complicated and is not user friendly at all. I've been programming for over 34 years in many languages, but I'm having a hard time learning CAL Scripts. But despite all these limitations, this language still makes it possible to cover a number of Sonar deficiencies. If you have great determination, you can get good results by creating new scripts.
rogeriodec.com.br* Cakewalk By Bandlabs (always lastest versions), Window 10 x64* Focusrite Scarlett Solo Audio Interface* Intel i7-4790K CPU @ 4.00 GHz / ASROCK EXTREME 4 Z97 Mobo* 2 SSD Samsung Evo 250 Gb (RAID-0) + 1 Western Digital 2 Tb + 1 Seagate 1 Tb* Onboard video / 16 Gb RAM HyperX Fury 1600 Mhz* 3 LCD Monitors* Axiom 61 MIDI Controller, Tapco S5 Active Studio Monitors
|
azslow3
Max Output Level: -42.5 dBFS
- Total Posts : 3297
- Joined: 2012/06/22 19:27:51
- Location: Germany
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/06 08:36:58
(permalink)
rogeriodec CAL Script is a language abandoned by Cakewalk for many years.
If was not extended for many years, but it is still there and working. So it is not "abandoned". It is poorly documented and has a sometimes illogical behavior.
Google shows many links, f.e. http://dgcardenas.fpmit.com/cal/ The programming structure is complicated and is not user friendly at all. I've been programming for over 34 years in many languages, but I'm having a hard time learning CAL Scripts.
May be LISP nor something else with (prefix/postfix) Polish notation is not in your list of "many languages"... Normally programmers can use any language, as musicians normally have no problem to write a song in Dm instead of Am (as long as the music is 12 notes based, computers still have the same ~100 operations as they had 50 years ago). In former times, computer languages was more computer then human oriented. It was important that computers interpret/compile/execute the program fast. That was changed once good programmers become more expensive then computers. As the result, end users benefits from cheap hardware and software but suffer from the quality of both (in terms of execution time and bugs). CAL pro: 1) easy to call in Sonar, can be assigned to some keyboard shortcut 2) can work with several tracks, but there are quite some bugs in this mode CAL cons: 1) offline processing only, it is impossible to tweak parameters in real time listening the result 2) relatively slow execution There are other ways to do MIDI processing, MIDI FX, but pro and cons are reversed. Especially since most MIDI FXes are VST based and can be used as "Synth" only in Sonar (not in MIDI FX bin). But since other DAWs support such plug-ins on tracks, there are plenty of them, including a broad range of scripting languages. There is only one Sonar oriented script based MIDI FX, written by... me  Is is Lua based. So far no-one is using it...
Sonar 8LE -> Platinum infinity, REAPER, Windows 10 pro GA-EP35-DS3L, E7500, 4GB, GTX 1050 Ti, 2x500GB RME Babyface Pro (M-Audio Audiophile Firewire/410, VS-20), Kawai CN43, TD-11, Roland A500S, Akai MPK Mini, Keystation Pro, etc. www.azslow.com - Control Surface Integration Platform for SONAR, ReaCWP, AOSC and other accessibility tools
|
S.L.I.P.
Max Output Level: -72 dBFS
- Total Posts : 949
- Joined: 2004/07/10 18:00:29
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/06 09:39:52
(permalink)
An invaluable CAL script is split notes to tracks. Great for separating a midi drum track to having each part of the kit on its own track for processing, and mixing.
|
dcumpian
Max Output Level: -34 dBFS
- Total Posts : 4124
- Joined: 2005/11/03 15:50:51
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/06 10:12:58
(permalink)
☄ Helpfulby Resonant Serpent 2017/01/06 13:03:54
Once upon a time, Cakewalk was way ahead of every other DAW in midi support. CAL was one of the things that got them there. The scripts mostly still work, and you can roll your own. I'd prefer to see some or most of the CAL functionality incorporated into the GUI at this point, but until that happens, CAL is still useful. Dan
Mixing is all about control. My music: http://dancumpian.bandcamp.com/ or https://soundcloud.com/dcumpian Studiocat Advanced Studio DAW (Intel i5 3550 @ 3.7GHz, Z77 motherboard, 16GB Ram, lots of HDDs), Sonar Plat, Mackie 1604, PreSonus Audiobox 44VSL, ESI 4x4 Midi Interface, Ibanez Bass, Custom Fender Mexi-Strat, NI S88, Roland JV-2080 & MDB-1, Komplete, Omnisphere, Lots o' plugins.
|
Billy86
Max Output Level: -83 dBFS
- Total Posts : 362
- Joined: 2015/03/06 16:03:26
- Location: Seattle
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/06 12:02:54
(permalink)
S.L.I.P. An invaluable CAL script is split notes to tracks. Great for separating a midi drum track to having each part of the kit on its own track for processing, and mixing.
That's interesting. Do you know the name of the script in the CAL folder?
Windows 10 x64 on a Dell/Intel i5, 500 Gig SSD, 32 gig RAM, Focusrite Scarlett 2i4, Sonar Professional, Melodyne 4 Assistant, Kurzweil SP-76 stage piano, Baldwin RP 100 digital upright, Novation Impulse 25, Breedlove Pursuit Concert Acous/Elec, Fender American Standard Tele, Fender G-DEC 30 modeling amp, Sigma DM-5 Acoustic, Ovation MCS148 Celebrity Acous/Elec. Mandolin, Roland V-Drums TD-11KV, AKG P220, Yamaha MG82CX mixer, KRK Rokit 6 Powered Monitors, PreSonus FaderPort
|
rogeriodec
Max Output Level: -75 dBFS
- Total Posts : 753
- Joined: 2004/04/09 13:55:04
- Location: Brazil
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/06 12:05:59
(permalink)
Billy86
S.L.I.P. An invaluable CAL script is split notes to tracks. Great for separating a midi drum track to having each part of the kit on its own track for processing, and mixing.
That's interesting. Do you know the name of the script in the CAL folder?
Split Note to Tracks.cal
rogeriodec.com.br* Cakewalk By Bandlabs (always lastest versions), Window 10 x64* Focusrite Scarlett Solo Audio Interface* Intel i7-4790K CPU @ 4.00 GHz / ASROCK EXTREME 4 Z97 Mobo* 2 SSD Samsung Evo 250 Gb (RAID-0) + 1 Western Digital 2 Tb + 1 Seagate 1 Tb* Onboard video / 16 Gb RAM HyperX Fury 1600 Mhz* 3 LCD Monitors* Axiom 61 MIDI Controller, Tapco S5 Active Studio Monitors
|
Billy86
Max Output Level: -83 dBFS
- Total Posts : 362
- Joined: 2015/03/06 16:03:26
- Location: Seattle
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/06 12:06:42
(permalink)
Thanks everyone for weighing in. I'm in no way a programmer, and I have no plans to write any scripts. I just saw one used on a YouTube tutorial on editing midi in Sonar and thought, hmm, what the heck is CAL all about... Does anyone know if there is a list of what the scripts in Sonar do? For example, S.L.I.P., mentioned one that splits midi drums into separate tracks. Would love to know which one THAT is. Could be some other cool scripts as well...
Windows 10 x64 on a Dell/Intel i5, 500 Gig SSD, 32 gig RAM, Focusrite Scarlett 2i4, Sonar Professional, Melodyne 4 Assistant, Kurzweil SP-76 stage piano, Baldwin RP 100 digital upright, Novation Impulse 25, Breedlove Pursuit Concert Acous/Elec, Fender American Standard Tele, Fender G-DEC 30 modeling amp, Sigma DM-5 Acoustic, Ovation MCS148 Celebrity Acous/Elec. Mandolin, Roland V-Drums TD-11KV, AKG P220, Yamaha MG82CX mixer, KRK Rokit 6 Powered Monitors, PreSonus FaderPort
|
Paul P
Max Output Level: -48.5 dBFS
- Total Posts : 2685
- Joined: 2012/12/08 17:15:47
- Location: Montreal
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/06 12:21:41
(permalink)
azslow3 There is only one Sonar oriented script based MIDI FX, written by... me Is is Lua based. So far no-one is using it...
For those of you who might be interested in learning more about this, here's the link to Alexey's documentation : AZ Lua MFX plug-in and the Lua reference manual : Lua 5.3 Reference Manual
Sonar Platinum [2017.10], Win7U x64 sp1, Xeon E5-1620 3.6 GHz, Asus P9X79WS, 16 GB ECC, 128gb SSD, HD7950, Mackie Blackjack
|
brundlefly
Max Output Level: 0 dBFS
- Total Posts : 14250
- Joined: 2007/09/14 14:57:59
- Location: Manitou Spgs, Colorado
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/06 12:50:35
(permalink)
Billy86 Does anyone know if there is a list of what the scripts in Sonar do?
Most CAL scripts have a brief description of what they do in the header section. For more info and discussion of possible issues, you can Google the script name against site:forum.cakewalk.com to find relevant threads on the forum. CAL is 'abandoned' in the sense that there's no guarantee that it will continue to work in general - or that a particular script will work as originally designed - in current or future versions of SONAR. For the most part, they do continue to work, with the notable exception of scripts that create new tracks, such as the aforementioned 'Split Note to Tracks'. In that case it's often best to create the target tracks in advance. The majority of CAL scripts were developed by users who are not professional developers and just needed something quick and dirty to save time composing and editing, so scripts tend not to be highly developed or fortified against unexpected input (e.g. chords when the script is designed to work with a monophonic sequence). When unexpected input is encountered, the CAL may produce unexpected results or it may error or even hang SONAR. It's always a good idea to save the project before running a CAL, not only to recover from hangs, but because the results of some CALs cannot be undone.
SONAR Platinum x64, 2x MOTU 2408/PCIe-424 (24-bit, 48kHz) Win10, I7-6700K @ 4.0GHz, 24GB DDR4, 2TB HDD, 32GB SSD Cache, GeForce GTX 750Ti, 2x 24" 16:10 IPS Monitors
|
Resonant Serpent
Max Output Level: -81 dBFS
- Total Posts : 463
- Joined: 2014/09/26 11:23:12
- Location: Austin, Texas
- Status: offline
Re: CAL scripts seem powerful and efficient. What are they?
2017/01/06 13:03:43
(permalink)
I would go so far as to save a different version of your song before you use CAL. The ones what come with Sonar usually work, but can have unexpected consequences. The third party ones you can download are very hit or miss. I wouldn't even attempt to use them.
A deep chesty bawl echoes from rimrock to rimrock, rolls down the mountain, and fades into the far blackness of the night. It is an outburst of wild defiant sorrow, and of contempt for all the adversities of the world. - Aldo Leopold
|