Automatically build sampler instrument from wav loop(solo instrument - melody or bass)

Sampler and Sampling discussion (techniques, tips and tricks, etc.)
Post Reply New Topic
RELATED
PRODUCTS

Post

Guys please suggest how to automate process of creating sampler instrument from the solo instrument wav loop(melody or bass). Maybe some sampler / instrument capable of this?
Lets break down this into several steps :
A slice loop by pitch (not by transients) to have one note in each slice
B load each slice into sampler and map it to slice sound note
C If wav loop contains less then 12 different notes then we need to spread closest notes onto missing notes(step 14,15)

I have found the way it could be done - see images step 1 - 15. But from time consumption it's not good for situation when you have 30 and more loops.
Also I already take a look at Kontakt and Image-line Edison scripting - it seems script have no access to corresponding DOM/API.

Step 1 Load sample into Image-Line Edison ( also could be done in Image-Line Slicex)
Image
Step 2 Slice by pitch
Image
Step 3 As a result we have one note in each slice
Image
Step 4 Export slices
Image
Step 5 Notice every slice file name contain pitch info
Image
Step 6 Drag n Drop files to mapping editor (drop exactly to the keyboard area)
Image
Step 7
Image
Step 8
Image
Step 9 Select "Set to single key"
Image
Step 10
Image
Step 11
Image
Step 12
Image
Step 13
Image
Step 14
Image
Step 15
Image

Thank you!

Post

Now you know why sample libs are usually not free. It costs a shitload of time & effort to produce.
We are the KVR collective. Resistance is futile. You will be assimilated. Image
My MusicCalc is served over https!!

Post

I wrote Python code to do many of these steps, using DOS or Linux command line. The first program takes one or more "layer" files, each containing a set of different notes all for the same MIDI velocity. It produces chopped up sample files trimmed to the start and end of each note and named according to a naming scheme, which is nerd-configurable. It detects pitch and encodes that into the filename. The second program takes a text input control file with a few parameters and the names of the layers, generates a keyboard map using least-distance algorithm, and builds an SFZ file. The third program takes the keyboard map file, samples, and builds an SF2 file, though I don't bother with that step any more.

You need to loop the samples yourself. I found Extreme Sample Converter to be the best program for looping (when I looked at a handful of them back in say 2006.) It's looping tool shows the end of the loop and beginning of the loop superimposed so you can easily see what might be a good match as you slide loop endpoints around. It can also automatically loop samples but not well enough for my purpose (Rhodes and piano.)

I no longer have them online but could provide a copy. However they were built for my use and though I'm a professional sofware engineer, the code is far from professional quality.

Let me know if you're interested, but it would take a bit of effort on your part to install and set up Python and learn to use the programs. Useful if you're planning on doing multiple projects or have sample sets with scores of samples. (My first use had about 60 samples, for my Rhodes. I now use it with 6 velocity layers and every 3rd note sampled for the piano keyboard, so that's about 29*6 = 174 samples per instrument. I sample my digital piano sounds so that I can record MIDI and then adjust MIDI in my DAW even if my piano isn't connected.) I use Python under Cygwin, which is a huge package providing most Linux commands on Windows -- I wouldn't recommend it for casual users; it's a lot to install. Installing Python by itself isn't as trivial as one might hope. Also, IIRC the code uses a Windows-only library for file handling, so there'd be a bigger hurdle for Macs. It supports WAV files only, though I later convert to FLAC using SoX.

And as I said, you'd still need to use a tool to manually set the loops, or find one that does a good job automatically. My programs assume the loops are encoded into the WAV files, which Sforzando and sfz players honor. There are many tools to convert SFZ or SF2 files to other formats, including Extreme Sample Converter (40 Euros, IIRC.)

Post Reply

Return to “Samplers, Sampling & Sample Libraries”