• SONAR
  • Keyboard shortcut for increasing/decreasing veloicty?
2016/06/18 14:03:46
grayangel
Have any of you guys found a useful way of programming the velocity of midi notes using your keyboards?  It's something I'm trying to accomplish to speed up my drum programming.
 
Thanks for any tips!
2016/06/19 04:33:43
promidi
Have you considered writing two CAL scripts, one for velocity up, one for velocity down and binding them to keystrokes? 

Using a standard text editor, create the Cals using the information below, save them to your CAL folder (See preferences | FILE | Folder locations to see where CALS are stored) and then bind them to the keystrokes of your choice.

Note, these cals simply increment and decrement the selected note's velocities. A relative increasing and decreasing would require different code.

The cal script for Velocity up is as follows:

(forEachEvent
    (if (&& (== Event.Kind NOTE) (< Note.Vel 127))   
        (do
            (+= Note.Vel 1)
        )
    )
)
 
The cal script for Velocity down is as follows:
 
(forEachEvent
    (if (&& (== Event.Kind NOTE) (>= Note.Vel 1))   
        (do
            (-= Note.Vel 1)
        )
    )
)


© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account