VelLeveler 2

Introduction

This is an updated version of a small "toy" to convert volume differences (in RMS dB) into MIDI velocities. It's designed to be used with the output from Voxengo Leveler.

With thanks to Aleksey Vaneev of Voxengo, Voxengo Leveler is available here.

Method of Use

This is how I generally work with non-normalised multi-samples.

  1. Run Voxengo Leveler.
  2. Use "Browse" to locate the samples you want to work with.
  3. Load up the whole set:
    Voxengo Leveler loaded with samples, Browse and Process buttons highlighted
  4. Click "Process" to run Leveler to produce the RMS values:
    Voxengo Leveler progress window...
    Voxengo Leveler results window, one set of samples selected
  5. Copy and paste each part in turn to VelLeveler:
    VelLeveler with samples pasted in
  6. Hit "GO":
    VelLeveler result
  7. Copy and paste the result into a .sfz file - the "//" means SFZ will ignore the lines as comments.
  8. Use the given velocity as the vvv value in the "hivel=vvv" and "amp_velcurve_vvv=1" opcodes:
    // 028: CHIN_001.wav (-37.20)
    // 048: CHIN_002.wav (-27.90)
    // 072: CHIN_003.wav (-21.00)
    // 095: CHIN_004.wav (-16.10)
    // 127: CHIN_005.wav (-11.10)
    <group> loop_mode=one_shot key=28
    <region> lovel=001 hivel=028 amp_velcurve_028=1 sample=Optimist_Yamaha_YD_OKM samples\CHIN_001.wav
    <region> lovel=029 hivel=048 amp_velcurve_048=1 sample=Optimist_Yamaha_YD_OKM samples\CHIN_002.wav
    <region> lovel=049 hivel=072 amp_velcurve_072=1 sample=Optimist_Yamaha_YD_OKM samples\CHIN_003.wav
    <region> lovel=073 hivel=095 amp_velcurve_095=1 sample=Optimist_Yamaha_YD_OKM samples\CHIN_004.wav
    <region> lovel=096 hivel=127 amp_velcurve_127=1 sample=Optimist_Yamaha_YD_OKM samples\CHIN_005.wav

Features

With version 2, VelLeveler no longer sorts the output. It is easy enough to sort afterwards, if you need to. And the format has changed (i.e. does not match the screenshot above).

The big new must-have feature is that you can group the input into sections using a line starting "--". VelLeveler2 will supply a velocity of 127 for the maximum volume in each group. If the volume range is under 84dB, it simply uses the calculation. In the unlikely event that the range exceeds this, it scales the calculation such that the quietest sample should end up with a velocity of 1 (i.e. not zero or below!).

There is also a Close button now and an accelerator key for the Go button. Or just hit enter.

Download

This was compiled using Microsoft .Net4, which you probably already have but you can get it from Microsoft if not.

VelLeveler2.exe

Licence

VelLeveler2 - a tool for determining MIDI velocity from volume difference

Copyright (c) 2011 Peter L Jones http://www.drealm.info

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to use the Software for any purpose except to modify, merge, publish, distribute, sublicense, and/or sell copies of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Valid XHTML 1.1! Valid CSS!

Last updated: 17 August 2011
Updated VelLeveler2.
3 June 2009: Initial version.