Helpful ReplyHow To Program Changing Velocities Per Note?

Author
aglewis723
Max Output Level: -86 dBFS
  • Total Posts : 216
  • Joined: 2013/01/14 14:28:02
  • Location: New Jersey
  • Status: offline
2013/11/12 11:33:56 (permalink)

How To Program Changing Velocities Per Note?

Hello Everyone,
 
This might be simple or it might not even be possible, not sure lol. 
 
Basically right now I have a synth bass line, where the patch sound changes with different velocity hits.   I want an entire piece to have the same 5 notes with the following velocities:   70, 90, 70, 90, 80.   It gives the baseline some "bounce" if you will.
 
Problem is, it would be a pain in the ass to have to go into Piano Roll and double click EACH and EVERY note to plug in it's velocity number. 
 
I was thinking of a groove-clip and stretching it across the track, but then the problem is the chord changes.  I usually don't use Groove-clip looping because setting up the markers is a pain.
 
I was wondering if there is a way to program in Sonar to automatically adjust all my velocities on my baseline so that the velocities of 70, 90, 70, 90, 80 just repeat as each note is played.   It would have to be "by-note", not by beat, because some beats don't have a bass note.
 
I hope I made myself clear.
 
Any help would be greatly appreciated!
 
Thank You,
Adam

"Do No Harm"
#1
mettelus
Max Output Level: -22 dBFS
  • Total Posts : 5321
  • Joined: 2005/08/05 03:19:25
  • Location: Maryland, USA
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 11:38:44 (permalink)
Is the pattern consistent enough that you can use the PRV, and simply copy/paste? Then lasso and drag the notes up/down for the chord changes?
 
Charlie Roy has a nice PRV video for drums that shows what I mean..
http://www.youtube.com/watch?v=ruAnAPR6-hQ

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.
#2
Beepster
Max Output Level: 0 dBFS
  • Total Posts : 18001
  • Joined: 2012/05/11 19:11:24
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 11:45:29 (permalink)
I'm not sure but isn't this the kind of thing Calscripts do? Probably a complex thing to learn just for one song but then you know how to do it for the future.
 
Personally, as someone who yet to learn how to do such fanciness I would probably just copy/paste my way through.
 
hmm... again I'm not sure if this is possible but perhaps there is a way to copy just the velocities in the Controller Pane then apply it as needed through out the track. That way you can just paste the velocity on all the parts instead of fiddling with it one section at a time.
#3
aglewis723
Max Output Level: -86 dBFS
  • Total Posts : 216
  • Joined: 2013/01/14 14:28:02
  • Location: New Jersey
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 11:46:50 (permalink)
mettelus
Is the pattern consistent enough that you can use the PRV, and simply copy/paste? Then lasso and drag the notes up/down for the chord changes?
 
Charlie Roy has a nice PRV video for drums that shows what I mean..
http://www.youtube.com/watch?v=ruAnAPR6-hQ


Hello,
 
Thanks for the reply.  It is very consistent, I guess i can do that (seems like a pain), but I guess midi-programming is, isn't it?  LOL.
 
What happens if it wasn't a pattern that repeats though?   Any other options?
 
Thanks,
Adam

"Do No Harm"
#4
Beepster
Max Output Level: 0 dBFS
  • Total Posts : 18001
  • Joined: 2012/05/11 19:11:24
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 11:49:40 (permalink)
I think you can draw velocity in in the Controller Pane too so if you don't need exact accuracy maybe you could just go through with the draw tool and draw in the rises for each section of notes. Would take a lot less time than screwing around with the notes themselves.
 
Edit: I'd try all this out for you (except the Cal stuff) but I have all the MIDI tracks in my current project archived and hidden.
#5
aglewis723
Max Output Level: -86 dBFS
  • Total Posts : 216
  • Joined: 2013/01/14 14:28:02
  • Location: New Jersey
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 12:22:27 (permalink)
The numbers need to be precise and these synth's are very precise and I am a total perfectionist LOL.
I wish there was a way to just program it.  Just to say, here is the velocity pattern I wan 70, 90, 70, 90, 80... please repeat through all notes.  
 
:(

"Do No Harm"
#6
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 12:36:06 (permalink)
You can use Select By Filter to select notes that fall on particular beats or tick values/ranges and then drag their velocities in the PRV. Or use Find/Replace to change them as well as select them. Depending on the rhythm, you may need to do it once for each step in the pattern.
 
That said, I highly recommend you get a keyboard controller and learn to play in basic stuff like this in real time. It makes getting natural dynamic feel and timing so much easier. Frankly I don't understand how people can devote so much time to this level of fiddling in the PRV. In the long run, that time would be better devoted to learning to play keyboards and/or other controllers.
 
 

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
#7
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 12:40:39 (permalink) ☄ Helpfulby aglewis723 2013/11/12 12:53:23
CAL example:
 
(do
    (int counter 0)   
)
(do
    (if (== Event.Kind NOTE)
        (do
            (switch (% counter 5)
                0 (= Note.Vel 70)
                1 (= Note.Vel 90)
                2 (= Note.Vel 70)
                3 (= Note.Vel 90)
                4 (= Note.Vel 80)
            )
            (++ counter)
        )
    )
)
#8
aglewis723
Max Output Level: -86 dBFS
  • Total Posts : 216
  • Joined: 2013/01/14 14:28:02
  • Location: New Jersey
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 12:42:06 (permalink)
brundlefly
You can use Select By Filter to select notes that fall on particular beats or tick values/ranges and then drag their velocities in the PRV. Or use Find/Replace to change them as well as select them. Depending on the rhythm, you may need to do it once for each step in the pattern.
 
That said, I highly recommend you get a keyboard controller and learn to play in basic stuff like this in real time. It makes getting natural dynamic feel and timing so much easier. Frankly I don't understand how people can devote so much time to this level of fiddling in the PRV. In the long run, that time would be better devoted to learning to play keyboards and/or other controllers.
 
 


Hello, I DO have a keyboard controller, I played all this stuff by hand.   Just this is a very sensitive patch and the velocities need to be perfect.   It's impossible to play the same velocities over and over.  
 
I will play around with the Select By Filter and Find/Replace.
 
Thank You,
Adam

"Do No Harm"
#9
Beepster
Max Output Level: 0 dBFS
  • Total Posts : 18001
  • Joined: 2012/05/11 19:11:24
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 12:50:19 (permalink)
scook
CAL example:
 
(do
    (int counter 0)   
)
(do
    (if (== Event.Kind NOTE)
        (do
            (switch (% counter 5)
                0 (= Note.Vel 70)
                1 (= Note.Vel 90)
                2 (= Note.Vel 70)
                3 (= Note.Vel 90)
                4 (= Note.Vel 80)
            )
            (++ counter)
        )
    )
)




There you go. Scook, the clever fellow he is, has written a calscript for you. All you gotta do is figure out how to run it which is in the manual and the Power books as well IIRC.
#10
aglewis723
Max Output Level: -86 dBFS
  • Total Posts : 216
  • Joined: 2013/01/14 14:28:02
  • Location: New Jersey
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 12:53:46 (permalink)
holy cow!   I'm going to check out this CAL script right now and save it for future use!  I need to learn more CAL scripting!!!
 
 
THANK YOU SCOOK!!!!!  I will update this thread soon!!!

"Do No Harm"
#11
aglewis723
Max Output Level: -86 dBFS
  • Total Posts : 216
  • Joined: 2013/01/14 14:28:02
  • Location: New Jersey
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 12:58:40 (permalink)
SCOOK!  You are my hero!  Thanks for passing the knowledge along.  I think i gotta get into CAL scripting!  This will come in handy, and I can tell how to edit it for different tasks.
 
You are the man!

Thank you again!!
 

"Do No Harm"
#12
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 13:01:41 (permalink)
aglewis723
Hello, I DO have a keyboard controller, I played all this stuff by hand.   Just this is a very sensitive patch and the velocities need to be perfect.   It's impossible to play the same velocities over and over.  

 
Is it that the patch has jarring layer changes or too few layers? I try to stay away from synths/patches that do that because it can be difficult to avoid getting unintended timbre changes when velocities are very consistent but are falling randomly on either side of a layer switch by a few values.
 
If a synth has even and predictable response to velocity I find that it isn't usually that critical to have such consistent velocities so long as the dynamic relationship between sequential notes is roughly consistent. Sometime it's enough just to change the range of velocities which can also be done with Find/Replace or the Event Inspector or even just with the Vel+ control, depending on the situation.
 
Anyway, just sharing some thoughts. Only you can know exactly what the part needs.
 
 

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
#13
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 13:05:19 (permalink)
You are welcome. There are quite a few cal scripts included with SONAR. Some are well commented. There is a chm of the CAL reference included in CALeditor Keep in mind this stuff is pretty old.
#14
bvideo
Max Output Level: -58 dBFS
  • Total Posts : 1707
  • Joined: 2006/09/02 22:20:02
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 13:10:39 (permalink)
Sonar has a procedure to apply "groove quantize" to existing material. For quantizing, a groove consists of a sequence with notes at specific grid offset times, velocities, and durations. I have not examined precise results myself, but I wonder if you could use your precisely adjusted notes to apply groove quantize to the rest of your notes using a 100% strength to the velocity component (in the groove quantize dialog). If that idea sounds groovy to you, the manual tells how to use the Process > Groove Quantize command. You might have to do a little wading through the manual because groove quantize is heavily documented for use on audio, whereas you just want to apply it to your midi track.
#15
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 13:41:49 (permalink)
bvideo
I have not examined precise results myself, but I wonder if you could use your precisely adjusted notes to apply groove quantize to the rest of your notes using a 100% strength to the velocity component (in the groove quantize dialog).



Ah, good one, Bill. I forgot that Groove "Quantize" had a velocity parameter.

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
#16
Beepster
Max Output Level: 0 dBFS
  • Total Posts : 18001
  • Joined: 2012/05/11 19:11:24
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 13:46:30 (permalink)
Aren't quantize functions basically easy access calscripts? I have yet to really dig into all that stuff because up until this point it has been more effort to learn than it's worth for my purposes but it's certainly on the agenda... probably soon.
#17
chuckebaby
Max Output Level: 0 dBFS
  • Total Posts : 13146
  • Joined: 2011/01/04 14:55:28
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 13:52:23 (permalink)
mettelus
Is the pattern consistent enough that you can use the PRV, and simply copy/paste? Then lasso and drag the notes up/down for the chord changes?
 
Charlie Roy has a nice PRV video for drums that shows what I mean..
http://www.youtube.com/watch?v=ruAnAPR6-hQ


hey thank you very much man :-)
 
@aglewis723, I use the "last touched feature myself.
if you watch that whole vid youll see what im talking about.
it beats switching back and forth trying to find velocity's perfectly.
it also adds flavor to fool the ear in to believing its more human.

Windows 8.1 X64 Sonar Platinum x64
Custom built: Asrock z97 1150 - Intel I7 4790k - 16GB corsair DDR3 1600 - PNY SSD 220GB
Focusrite Saffire 18I8 - Mackie Control
   
#18
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 14:00:16 (permalink)
I would think quantize functions are compiled code as opposed to scripts. CAL can be very handy but I worry about the long-term viability as it has not been formally supported for a long time and no effort is being made to ensure that its functions continue working, like the status messaging that it used to do. I recently discovered one script I wrote myself was no longer working in X3. I haven't yet taken the time to see if it's fixable.

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
#19
Beepster
Max Output Level: 0 dBFS
  • Total Posts : 18001
  • Joined: 2012/05/11 19:11:24
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 14:04:40 (permalink)
hmm... weird. I figured it was just a kind of standardized thing to manipulate MIDI. Didn't realize it somehow needed support or updates. Like how I can still use old HTML to build a website if I wanted. Perhaps it has something to do with how the hosts read the info.
#20
bvideo
Max Output Level: -58 dBFS
  • Total Posts : 1707
  • Joined: 2006/09/02 22:20:02
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 16:00:07 (permalink)
Thanks, Dave.
 
beepster: The groove quantize dialog also works on audiosnap transients. Definitely out of cal's reach.
 
Bill B.
#21
John T
Max Output Level: -7.5 dBFS
  • Total Posts : 6783
  • Joined: 2006/06/12 10:24:39
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/12 18:16:31 (permalink)
I might have misunderstood, but all these solutions seem like a sledgehammer to crack a nut.
 
If you go into PRV, and click a note on the piano, then all blobs on that one key become selected right through the song. Go to Process > Scale Velocity, and the value in there. Repeat for each of your five notes.

http://johntatlockaudio.com/
Self-build PC // 16GB RAM // i7 3770k @ 3.5 Ghz // Nofan 0dB cooler // ASUS P8-Z77 V Pro motherboard // Intel x-25m SSD System Drive // Seagate RAID Array Audio Drive // Windows 10 64 bit // Sonar Platinum (64 bit) // Sonar VS-700 // M-Audio Keystation Pro 88 // KRK RP-6 Monitors // and a bunch of other stuff
#22
brundlefly
Max Output Level: 0 dBFS
  • Total Posts : 14250
  • Joined: 2007/09/14 14:57:59
  • Location: Manitou Spgs, Colorado
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/13 00:30:08 (permalink)
John T
Repeat for each of your five notes.



My understanding is the pattern isn't using the same five notes every measure.. If it were, he could just adjust one measure and copy/groove it.

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
#23
mudgel
Max Output Level: 0 dBFS
  • Total Posts : 12010
  • Joined: 2004/08/13 00:56:05
  • Location: Linton Victoria (Near Ballarat)
  • Status: offline
Re: How To Program Changing Velocities Per Note? 2013/11/13 02:35:20 (permalink)
CAL is actually the Cakewalk Application Language developed by Cakewalk. I have a ton of info about it which I keep promising to dig out but it's on a HDD that I don't have connected at the moment. Actually I'll have to dig it out as I've promised a few folks here some of the additional scripts and info I have. A simple google will unearth a ton of stuff about it though. A good place to start is with Cakewalks own developer centre.

The problem is that if Cakewalk don't continue to maintain the various hooks within Sonar, there'll be nothing for the various calls that the scripts make to call on. It's a shame because there's so much that can be done with a properly embedded scripting language.

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.
#24
Jump to:
© 2025 APG vNext Commercial Version 5.1