Helpful ReplyMIDI Compressor, anybody?

Author
trevor@advantechdesign.com.au
Max Output Level: -90 dBFS
  • Total Posts : 2
  • Joined: 2015/01/09 01:09:44
  • Status: offline
2016/06/21 09:20:38 (permalink)

MIDI Compressor, anybody?

Can anybody recommend a good MIDI Compressor plugin to use with Sonar? I am looking for something that can intelligently handle MIDI velocity (with threshold, ratio and gain).
 
I have a MIDI file where the dynamics of the performance are wide ranging, too wide ranging to get a good balanced mix over the entire performance. I know Cakewalk have the Velocity plugin, but to me its somewhat unintuitive in terms of knowing what it's actually doing.

There must be something good out there that works for MIDI?
 
Any ideas?
Thanks
 
#1
PilotGav
Max Output Level: -82 dBFS
  • Total Posts : 436
  • Joined: 2004/12/10 22:00:46
  • Location: Toronto
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/21 09:56:50 (permalink)
Can you "print" it to an Audio file? Then you can compress it as you usually would.
#2
trevor@advantechdesign.com.au
Max Output Level: -90 dBFS
  • Total Posts : 2
  • Joined: 2015/01/09 01:09:44
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/21 10:03:34 (permalink)
Thanks for your input and ideas. Yes, I could go to Audio and then compress that, but I like the idea of maintaining the flexibility that MIDI still gives me in this case.
 
I thought it would be simple to have an algorithm that works similar to the way an Audio Compressor works. The algorithm has thresholds and applies intelligent dynamic adjustment to values based on the note velocity information.

I don't want to adjust them by a 'fixed' percentage, but by dynamically controlling their velocity based on their range/distance 'outside' from an upper (or lower) threshold.

It's not impossible (at least for me) to draw a parallel between MIDI "Note Velocity" information and "Audio Loudness". Surely if one can apply a compressor to control dynamics to Audio, a similar concept could be used to control the dynamics of MIDI velocity data - of course using a tool designed for MIDI Data, not Audio.



#3
Keith Albright [Cakewalk]
Max Output Level: -68 dBFS
  • Total Posts : 1117
  • Joined: 2006/07/10 15:44:42
  • Location: Boston, MA
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/21 10:09:34 (permalink)
I've done MIDI compression using a combination of velocity scale and offset.
Your  compression ratio is simply the scaling.  For 2:1, just scale by 50%.  Then make-up gain is the velocity Gain you add back in. 
 
You'll find the Scale Velocity command in the Process menu.  Here I have it set for a 2:1

 
It will likely be too soft after that so dial in the Gain knob on the MIDI or Instrument track to taste (if using the inspector) or the Gain slider in the track strip.
 
For example if your input range was velocities 20 - 80 and you'd like to bring up the values that are too soft, a 50% scale gives you 10 - 40, so add 40 back in on gain to get 50 - 80.
 
If on the other hand your louds are too hot, like 60 - 127 and you want to keep the lows where they are, then 60 - 127 will scale to 30 - 63, so add 30 gain to get you to 60 - 93.
 
But you don't really have to worry about the numbers too much, just adjust the gain to taste.
 
<Update>  Just saw your 2nd post where you want a dynamic adjustment based on distance from a threshold.  For that you'd likely need an MFX.  Or I suppose a cal script could be modified to accomplish something interesting.
 
Keith
 
 
post edited by Keith Albright [Cakewalk] - 2016/06/21 10:44:23

Keith
#4
Jimbo 88
Max Output Level: -57 dBFS
  • Total Posts : 1828
  • Joined: 2007/03/19 12:27:17
  • Location: Elmhurst, Illinois USA
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/21 10:24:17 (permalink) ☄ Helpfulby PilotGav 2016/06/21 11:00:17
I have a quick, easy, down and dirty way of compressing midi.  In Piano Roll View I highlight the notes or section I need to compress...then grab the lowest velocity bar and scroll it slowly up.  As all the bars start to move up, some will hit the 127 high point and stop while the rest of the bars will continue to increase.  I eyeball how much compression (or distance between the loudest and the softest)...then drop all the velocities back into the range they started in.  
 
Granted it is not scientific and relies on eyeballing and trial and error,  but it works perfect for about 90% of the time I need it.  Otherwise I use the Edit>Select> By Filter (or cont+alt+F6)....but that ends up being a lot of tweaking and thought that I rarely have the patience to apply.  

Cakewalk By Bandlab
Cubase 9.5 Pro
Windows 7 64 Bit   Core i7-8700   32 Gig Ram 3.20ghz  
RME Fireface 400 Audio Card
Behringer FCA 1616
Sweetwater Creation Station
 
#5
Cactus Music
Max Output Level: 0 dBFS
  • Total Posts : 8424
  • Joined: 2004/02/09 21:34:04
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/21 10:33:28 (permalink)
I do what Jimbo does too. Works for most stuff. 
Is this a piano part? I discovered it by accident one day while editing a snare drum that was part of a multi drum track. I noticed if I highlighted the snare only the snare velocity bars were highlighted. cool. 
 
Basically with midi velocity if a track has either some notes way to loud or way to low it's pretty easy to use velocity scaling to squish it into a smaller range. but once you discover the piano roll trick you'll never use that. 
 
What your asking for is not really a compression. 
post edited by Cactus Music - 2016/06/21 10:54:48

Johnny V  
Cakelab  
Focusrite 6i61st - Tascam us1641. 
3 Desktops and 3 Laptops W7 and W10
 http://www.cactusmusic.ca/
 
 
#6
Anderton
Max Output Level: 0 dBFS
  • Total Posts : 14070
  • Joined: 2003/11/06 14:02:03
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/21 11:13:28 (permalink)
Check out Week 55 in Friday's Tip of the Week, which covers MIDI compression, limiting, and expansion.

The first 3 books in "The Musician's Guide to Home Recording" series are available from Hal Leonard and http://www.reverb.com. Listen to my music on http://www.YouTube.com/thecraiganderton, and visit http://www.craiganderton.com. Thanks!
#7
azslow3
Max Output Level: -42.5 dBFS
  • Total Posts : 3297
  • Joined: 2012/06/22 19:27:51
  • Location: Germany
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/21 12:23:01 (permalink)
Ultimate MIDI dynamic range manipulator:
http://www.azslow.com/index.php/topic,275.0.html
 
The curve for "MIDI Compressor" should look like the curve for audio compressors: https://en.wikipedia.org/wiki/Dynamic_range_compression
so:
* when the line is 45 degree from 0 to 127, there is no changes (1:1)
* other angle after some point means that point is "the threshold" and the ration depends from the angle
* the whole curve shifter up means then "gain" by that shift amount.
But in practice you can just draw what you want to make it sound "right" for you
 
 
MIDI has 127 possible values only, so that is not a big deal to draw exact required curve even pixel by pixel.
I can make a preset for my another (universal) MFX plug-in with threshold, ration and gain, but Velocity MFX is more intuitive and precise for the purpose (till you need multi-band MIDI compression...).
 
Do not forget to keep 0 (the very first point) as 0 to avoid side effects !

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
#8
Bassman002
Max Output Level: -84 dBFS
  • Total Posts : 321
  • Joined: 2014/12/19 05:51:16
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/22 03:33:24 (permalink)
Hi:)
 
There is a CAL Programm for compressing called C-MPLMIT.CAL, must be in your CAL Directory!
 
But AZSlows MFX PlugIn does his Job very well:)
 
Bassman.
 
#9
Enigmatic
Max Output Level: -90 dBFS
  • Total Posts : 44
  • Joined: 2011/02/16 15:07:27
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/22 07:06:22 (permalink)
Sonar has one built in, under midi fx called Cakewalk FX Midi Event Filter. I used it a lot when one of my keyboard keys was stuck on 127 full velocity. It's very useful and full of control


Actually im sorry... I used velocity plugin and it worked very well
post edited by Enigmatic - 2016/06/22 07:28:06
#10
tenfoot
Max Output Level: -53.5 dBFS
  • Total Posts : 2186
  • Joined: 2015/01/22 18:12:07
  • Location: Qld, Australia
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/22 18:30:22 (permalink)
PilotGav
Can you "print" it to an Audio file? Then you can compress it as you usually would.


Personally I think Pilotgav points squarely to the elephant in the room here.
 
Perhaps I am alone in this opinion, and to each their own, but it it seems to me that 'midi compression' is little more than a fairly ordinary imitation of the actual dynamic range control of an audio source that is traditional compression. Manipulation of midi note velocities changes the tone and texture of the sound, often triggering entirely different samples rather than just limiting dynamic range. It's a bit like saying playing a passage more quietly equates to compression.  It really doesn't.  
 
This is not to belittle the extraordinary control that midi affords us - I'm a big fan! I just see compression as one of the most important sound shaping tools in a producers arsenal that is more than worthy of the 10 seconds it takes to bounce a midi track to audio:)

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.
#11
azslow3
Max Output Level: -42.5 dBFS
  • Total Posts : 3297
  • Joined: 2012/06/22 19:27:51
  • Location: Germany
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/23 06:04:23 (permalink) ☄ Helpfulby tenfoot 2016/06/23 06:55:01
tenfoot
Perhaps I am alone in this opinion, and to each their own, but it it seems to me that 'midi compression' is little more than a fairly ordinary imitation of the actual dynamic range control of an audio source that is traditional compression. Manipulation of midi note velocities changes the tone and texture of the sound, often triggering entirely different samples rather than just limiting dynamic range. It's a bit like saying playing a passage more quietly equates to compression.  It really doesn't.  

+, replacing audio compression with MIDI compression (or in other direction) is a bad idea.
 
My use cases for MIDI dynamic range manipulations (and the reason my plug-in exists) are:
* the recording was done with one "instrument" (f.e. DP with local sound) but the track is used with another instrument (especially when that is no longer "a piano"). Hitting "forte" with one finger on piano can sound strange with an instrument where achieving "forte" required much more effort
* it is rather difficult to correctly control MIDI dynamic range on small controllers, especially in the lower volume range. "Smoothing" lower range, "Expanding" middle range and "Limiting" upper velocity can produce more consistent sound
* for some "electronic" sounds, "human" touch in volume can be undesired while 3-5 discrete volume levels sound good
In all that cases Audio compression as well as simple MIDI volume limiting/scaling are not working.

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
#12
dcumpian
Max Output Level: -34 dBFS
  • Total Posts : 4124
  • Joined: 2005/11/03 15:50:51
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/23 08:24:18 (permalink)
tenfoot
PilotGav
Can you "print" it to an Audio file? Then you can compress it as you usually would.


Personally I think Pilotgav points squarely to the elephant in the room here.
 
Perhaps I am alone in this opinion, and to each their own, but it it seems to me that 'midi compression' is little more than a fairly ordinary imitation of the actual dynamic range control of an audio source that is traditional compression. Manipulation of midi note velocities changes the tone and texture of the sound, often triggering entirely different samples rather than just limiting dynamic range. It's a bit like saying playing a passage more quietly equates to compression.  It really doesn't.  
 
This is not to belittle the extraordinary control that midi affords us - I'm a big fan! I just see compression as one of the most important sound shaping tools in a producers arsenal that is more than worthy of the 10 seconds it takes to bounce a midi track to audio:)




^^^^this. And the fact that many VST instruments trigger different articulations at different velocities, so "compressing" the midi velocities may actually cause problems.
 
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.    
#13
Mystic38
Max Output Level: -59 dBFS
  • Total Posts : 1622
  • Joined: 2010/08/30 17:40:34
  • Location: Mystic, CT
  • Status: offline
Re: MIDI Compressor, anybody? 2016/06/23 13:18:15 (permalink)
^^^ this this.. (lol)
 
volume is not equal to velocity.. compression is for volume
 
 

HPE-580T with i7-950, 8G, 1.5T, ATI6850, Win7/64, Motu 828 III Hybrid, Motu Midi Express, Sonar Platinum, Komplete 9, Ableton Live 9 & Push 2, Melodyne Editor and other stuff, KRK VXT8 Monitors
Virus Ti2 Polar, Fantom G6, Yamaha S70XS, Novation Nova, Novation Nova II, Korg MS2000, Waldorf Micro Q, NI Maschine Studio, TC-VoiceLive Rack, 2012 Gibson Les Paul Standard, 2001 Gibson Les Paul DC, 1999 Fender Am Hardtail Strat, Fender Blues Jr, Orange TH30/PPC212, Tak EF360GF, one mic, no talent.
#14
Jump to:
© 2025 APG vNext Commercial Version 5.1