A little (partial) conversion utility from SFZ to SampleTank...

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

Post

Hi, I wanted to use some sound libraries I bought in SampleTank, but the patches were in various formats except SampleTank.

SampleTank can't import SFZ files, but it can import wav files and it can also map them automatically if they are named properly, so I thought: why not writing a small utility to prepare the files, so then I just have to import them in SampleTank? So I wrote this little toy.


It works fine for me, but it is very raw and possibly buggy; in its first incarnation (I wrote it on or two years ago, but I kept it for myself) you had to change the source and destination folder in the IDE and then recompile it; now I just added a very simple gui and I made the code a little bit more sophisticated (so it recursively looks for sfz files inside the folders contained in source folder, in its first private incarnation it just looked in the main folder).


To run it you need a Java Virtual Machine on your system (I compiled the software against JDK 1.7, but I think it can be recompiled against older versions of Java).

The usage is very straightforward: write the path of the folder containing the SFZ files (hint: if there's a SFZ folder in the library with some subfolders, use that... you know for sure what I mean if you ever used a LoopMasters library), write the path of your destination folder (it should be empty!) and then click on the convert button to have the files copied and renamed. Then, fire up SampleTank, click on Import -> Sample and select a folder of samples (the software creates a folder of samples for each patch), repeat for each patch you want to import (it's a bit time consuming, I know!) and then you're done!


As I told you before, the software is very raw, so there's no dialog to select the folder (you have to write the path by hand; if you're on Mac you can select the root folder, press cmd+I and copy it from there, then you have to add the folder name). The path must be absolute (for example C:\my_sfz_folder or /Users/username/my_sfz_files; "my_sfz_files" is not an absolute path).
I also suggest you to write down the paths on a text editor because you'll have to restart the program in case of error...
Also, the source and destination folders should not be nested one inside the other (the software is programmed to stop in this situation... but don't try it!)

So, here it is the download link, complete with sources. Do what you want with it, as long you don't sell it or claim it your own. I will not maintain it, so if you want to modify it, I'm cool with it as long as you aknowledge the original source. The only thing I ask you is that, if you find it useful, you do something good (help somebody, give some money to an ong... whatever).
The software comes with no guarantees that it works; it's just a tool that I wrote for my need and later I decided to share. If you need a tool that does an actual conversion from sfz to SampleTank, there are some payware tools in the market, this is just a small utility that does only part of the job.


SFZ_extract.zip


Last but not least, the software supports a very reduced subset of the sfz specifications: root note, lokey, hikey and hivel. These are the only things I found in SampleTank manual, otherwise I would have added more things (maybe... I'm lazy!).


So, have fun! :)

Post

Hello! I know that three years has gone since your post.
Whatever here in Brazil seems that takes more time for us to have some information.
Only this year I discovered the (fantastic!) world of samples.
I tried to download the tool but the link does not work :(
Could you provide a new link, please?
Thanks In advance!

Post

Ops, that file was on divshare, so the link is definitely gone. :(

I hope the source code is still on my old pc or my backups, I'll give a look as soon as possible.

By the way, the tool was made when SampleTank was at version 2, I never tried it to import samples to SampleTank 3.
free multisamples (last upd: 22th May 2021).
-------------------------
I vote with my wallet.

Post

Wow!
Such fast answer hehe.
Well. I tried to import the awesome "Maestro Grand Piano", which I have in sfz format.
Whatever it says something like "The names have to start with C1, C2 etc."
But I did not get...
Should I rename all files to C1, C2 etc, or should I "C1, C#1, D"...?

Post

I found the code, but it's quite ugly, so I'm going to rework it a bit before uploading it.

I don't remember the details on how the file should be named; anyway there was this line in my code:

Code: Select all

return sampleName + " " + keyCenter + " " + hiKey + " " + hiVel + "." + "wav"
So I think that's the file name format required. Keys are C1, C#1, etc.
TBH, I'm quite sure there was something in SampleTank 2 manual about this subject.
free multisamples (last upd: 22th May 2021).
-------------------------
I vote with my wallet.

Post

Hey!
I spent my entire morning trying Excel commands to change the file names.
Then I finally managed to rename it using my notepad and CMD.
Then......
"Error importing sample C0.wav"
:@
So, I think I better use Extreme Sample Converter...

Post

EXC is probably the best solution for this task; I wrote my own utility because at that time I was a student and I had not enough money to buy a conversion utility or one of the bigger sampler (Kontakt or Halion) which can read SFZ, but I had enough spare time to import each patch manually in SampleTank...

By the way, I'm going to spend an hour or two on the code today, so it will be online very soon.
free multisamples (last upd: 22th May 2021).
-------------------------
I vote with my wallet.

Post

This is awesome!
You know.
I am brazilian so I also dont have money lol.
Unfortunately (or not), there are several torrents that make me end using them.
Anyway, I've got another issue...
ESC is not translating the Wave Soubd + Wave release.
So there's no release sound at all...
I think I Will Just go shift back to my guitar lol

Post Reply

Return to “Samplers, Sampling & Sample Libraries”