msorrels
Max Output Level: -70 dBFS
- Total Posts : 1025
- Joined: 2003/11/08 02:04:59
- Location: Pittsburgh, PA
- Status: offline
CAL Script to remove Aftertouch events
So I bought a new keyboard, a Behringer Motor 61, and it supports channel aftertouch. There isn't any easy way to toggle it on and off on the keyboard (it's not part of its preset system) and toggling it on and off inside SONAR is difficult as well. So I'm now ending up with lots of recorded aftertouch, which usually I don't want. After finding nothing with Google and deciding that using SONAR's find/replace was just too painful, I wrote a tiny CAL script that would strip out all channel and key aftertouch events from selected MIDI. I thought someone else might want this. To use it save this to a .cal file, select some MIDI with aftertouch and use Process->Run CAL ; RemoveAftertouch ; Matt Sorrels Sept 2017 ; ; Remove all key and channel aftertouch events in selected MIDI clips
(do (int nDeleted 0) (forEachEvent (do (if (|| (== Event.Kind CHANAFT) (== Event.Kind KEYAFT) ) (do (delete) (++ nDeleted) ) ) ) ) (pause "Deleted " nDeleted " aftertouch events.") )
You can also just download the file from here: http://www.pontari.com/sonar/RemoveAftertouch.cal
|
Piotr
Max Output Level: -86 dBFS
- Total Posts : 208
- Joined: 2014/12/25 20:30:44
- Status: offline
Re: CAL Script to remove Aftertouch events
2017/09/29 12:14:14
(permalink)
Thanks! Anything in mythical, not documented (abandomed by Bakers?) secret language is very precious. Even more than in Klingon language
Regards, Piotr Sonar Platinum Lifetime
|
tenfoot
Max Output Level: -53.5 dBFS
- Total Posts : 2186
- Joined: 2015/01/22 18:12:07
- Location: Qld, Australia
- Status: offline
Re: CAL Script to remove Aftertouch events
2017/09/29 13:10:03
(permalink)
Thanks Matthew! This will come in very handy.
Bruce. Sonar Platinum 2017-09, Studio One 3.5.3, Win 10 x64, Quad core i7, RME Fireface, Behringer X32 Producer, Behringer X32 Rack, Presonus Faderport, Lemure Software Controller (Android), Enttec DMXIS VST lighting controller, Xtempo POK.
|
Anderton
Max Output Level: 0 dBFS
- Total Posts : 14070
- Joined: 2003/11/06 14:02:03
- Status: offline
Re: CAL Script to remove Aftertouch events
2017/09/29 13:36:51
(permalink)
You can just disable recording aftertouch in preferences - solves the problem at the source.😀
|
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 to remove Aftertouch events
2017/09/29 13:39:27
(permalink)
There's a squillion CAL scripts for download over in the Software forms utility thread. There's a link from the Contents to the specific post with the CaL info. http://forum.cakewalk.com...tilities-m3392713.aspxSee Miscellaneous. The Cal is a giant archive. There's just too many to list individually.
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.
|
tenfoot
Max Output Level: -53.5 dBFS
- Total Posts : 2186
- Joined: 2015/01/22 18:12:07
- Location: Qld, Australia
- Status: offline
Re: CAL Script to remove Aftertouch events
2017/09/29 13:51:31
(permalink)
Anderton You can just disable recording aftertouch in preferences - solves the problem at the source.😀
Not if you want to use a Faderport.
Bruce. Sonar Platinum 2017-09, Studio One 3.5.3, Win 10 x64, Quad core i7, RME Fireface, Behringer X32 Producer, Behringer X32 Rack, Presonus Faderport, Lemure Software Controller (Android), Enttec DMXIS VST lighting controller, Xtempo POK.
|
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
- Total Posts : 26036
- Joined: 2006/09/17 11:23:23
- Location: Everett, WA USA
- Status: offline
Re: CAL Script to remove Aftertouch events
2017/09/29 13:58:15
(permalink)
Great addition to the CAL canon, Matt. Thanks for sharing. Maybe it's time to revive the CAL conversation. It's been awhile since it was a frequent topic of conversation, and I'm sure many new users aren't even aware this powerful feature exists.
All else is in doubt, so this is the truth I cling to. My Stuff
|
azslow3
Max Output Level: -42.5 dBFS
- Total Posts : 3297
- Joined: 2012/06/22 19:27:51
- Location: Germany
- Status: offline
Re: CAL Script to remove Aftertouch events
2017/09/29 14:51:18
(permalink)
tenfoot
Anderton You can just disable recording aftertouch in preferences - solves the problem at the source.😀
Not if you want to use a Faderport.
Yes... I hope there will be a day when CW has finally manage to decouple MIDI input processing from MIDI control processed, I mean: a) disable filtering MIDI events on Control Surface plug-ins input b) start filtering MIDI events assigned as "remote control" c) stop sending "controller resets" to Control Surface outputs in case the device is not marked "controller only" d) learn that PitchBend MIDI messages have 2 data bytes (so Surface plug-ins have no way to tell Sonar Mackie protocol use it for volume control, without declaring the whole device as just a controller). May be they can use new Momento platform to not forget about these 10+ years old bugs... bitflipper Maybe it's time to revive the CAL conversation. It's been awhile since it was a frequent topic of conversation, and I'm sure many new users aren't even aware this powerful feature exists.
And for younger people, Lua processor is also an option
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
|
Anderton
Max Output Level: 0 dBFS
- Total Posts : 14070
- Joined: 2003/11/06 14:02:03
- Status: offline
Re: CAL Script to remove Aftertouch events
2017/09/29 15:04:02
(permalink)
tenfoot
Anderton You can just disable recording aftertouch in preferences - solves the problem at the source.😀
Not if you want to use a Faderport.
True that. The Microsoft Dial looks very promising as a more general-purpose controller, I'm going to get one and dive in.
|
ZincTrumpet
Max Output Level: -73 dBFS
- Total Posts : 891
- Joined: 2014/12/02 13:30:11
- Location: UK
- Status: offline
Re: CAL Script to remove Aftertouch events
2017/09/29 16:33:58
(permalink)
Thanks for sharing the CAL knowledge Matt. I still use CAL more often than I thought I would.
|
Wookiee
Rrrrugh arah-ah-woof?
- Total Posts : 13306
- Joined: 2007/01/16 06:19:43
- Location: Akahaocwora - Village Yoh Kay
- Status: offline
Re: CAL Script to remove Aftertouch events
2017/09/29 17:56:50
(permalink)
Thank Matt added if I ever get that controller with after-touch I now have the means to remove it.
Life is not about waiting for the storm to pass, it's about learning to dance in the rain. Karma has a way of finding its own way home.
Primary, i7 8700K 16Gigs Ram, 3x500gb SSD's 2TB Backup HHD Saffire Pro 40. Win 10 64Bit Secondary i7 4790K, 32GB Ram, 500Gb SSD OS/Prog's, 1TB Audio, 1TB Samples HHD AudioBox USB, Win 10 64Bit CbB, Adam's A7x's - Event 20/20's, Arturia V6, Korg Digital Legacy, Softube Modular, Arturia Keylab-88, USB-MidiSport 8x8
|