• SONAR
  • CAL Script to remove Aftertouch events
2017/09/29 10:59:25
msorrels
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
 
2017/09/29 12:14:14
Piotr
Thanks! Anything in mythical, not documented (abandomed by Bakers?) secret language is very precious. Even more than in Klingon language
2017/09/29 13:10:03
tenfoot
Thanks Matthew! This will come in very handy. 
2017/09/29 13:36:51
Anderton
You can just disable recording aftertouch in preferences - solves the problem at the source.😀
2017/09/29 13:39:27
mudgel
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.aspx

See Miscellaneous. The Cal is a giant archive. There's just too many to list individually.
2017/09/29 13:51:31
tenfoot
Anderton
You can just disable recording aftertouch in preferences - solves the problem at the source.😀

Not if you want to use a Faderport.
2017/09/29 13:58:15
bitflipper
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.
2017/09/29 14:51:18
azslow3
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 
2017/09/29 15:04:02
Anderton
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.
2017/09/29 16:33:58
ZincTrumpet
Thanks for sharing the CAL knowledge Matt. I still use CAL more often than I thought I would.
12
© 2025 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account