MIDI-Smoothing Script

Hello everybody,



I know, all you guys are raving about KP3.5 and stuff, but check this out:



2 days ago, I wrote a small KSP-Script that smoothes out MIDI-CC Data. I experienced some unnatural volume-jumps when playing with the BC3 due to his imperfect "Air-2-MIDI" translation, especially on fast dynamic changes. So I digged myself into Kontakt-Scripting and now the result is ready to be shared with you:




The file contains a manual with a detailed explanation of both the theory and the practical application as well as the script as .txt-file and as .nki-Instrument. Plus, I added two audio-demos, showing the capability of the script:






This is a short piece of some rhodes-chords putting through Kontakts LP-Filter (Controlled by the Mod-Wheel) to simulate a simple wah-wah effect. One version is processed, the other one is original. If this problem sounds familiar to you, just get the script and start smoothing!





There is also a workaround (yes I finally found one!) for using this lovely script with the even lovelier Trumpet or any other KP2-Library, in fact, it could be used with anything that communicates by MIDI.



Have fun with this, and feel free to post your impression of my work. Because my BC3 is unavailable for the moment, I would be very happy, if someone could report the effect of the script for my initial problem.



Greets,

chrisboy2000

Comments

  • edited 12:05AM
    bump, because the initial thread was edited massively 8-)
  • edited 12:05AM
    Me, again, with the fastest update in software history:




    Improvements:



    - compability for Kontakt 2.24 or above

    - when using the workaround, v.1.0 creates both the smoothed and the original data (=> again those nasty jumps...) - fixed

    - when using the workaround, any other CC number will be ignored when "incoming CC" is deselected in preferences - fixed

    - workaround shall be considered equal to the script-way :lol:



    Greets,

    chrisboy2000
  • edited 12:05AM
    chrisboy2000,



    you are compelling us to reveal our secrets ;)



    Both The Trumpet and The Sax Brothers already embed a smoothing script, active on incoming CC11 (and CC7, CC2). This was found necessary, especially when dealing with keyboards, such as my "mountain" KB CME UF6, outputting data with a time resolution of 30 Hz, i.e. updated every 33 msec. This yields a "staircase" behaviour of expression, leading to a kind of zipper noise, which was originally reported to me by Wendy Carlos (yes, that one!). The present script completely eliminated this problem. The Sax Brothers apply this smoothing on several continuous CCs. The same strategy has already been implemented in the incoming version 2.51 of The Trumpet.



    Thanks for the tip, anyway. You show to have a deep insight into the midi flow. 8-)



    Best,



    Giorgio
  • edited 12:05AM
    D'oh! :o



    I forgot to mention that additionally to my BC3, I don't have access to my Trumpet at the moment, so I couldn't check this. It is still applicable in order to customly interpolate the BC-data, if the "lazy" effect is desired.







    PS: What about CC1? The Vibrato-Intensity deserves smoothing too.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.