Simple automapper for SFZ

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

Post

I wrote a little VB app that generates an SFZ file from a list of samples. Its for quickly mapping a shitload of one shots (*cough* Dorumalaia *cough*). Get it here!

Instructions:
Type in a file name in the first box. The .sfz extension will be added automagicly.

Provide a note number for where the mapping should start. 24 or 36 are good values.

Click the button and navigate to your sample files, and select all the samples you wich to include in the map.

Click ok. All done.

If you get an error message regarding COMDLG32 at startup, its because you have an old version of this file. Windows update should take care of it..
Last edited by Rock Hardbuns on Mon Aug 23, 2004 2:05 pm, edited 1 time in total.

Post

Oh, and it only works in one folder at a time so to speak. The generated file will be in that same folder.

And, its freeware or what ever. If anyone wnats the VB6 project files, send me a PM.

EDIT >
Found a bug.. but I fixed it. If you get a error saying that the filename buffer is too tight. DL again. Also, The program doesnt do any bounds checking on the note numbers. Remember that there is only 127 midi notes.

Post

Here is a MSYS bash command line that does the same:

Code: Select all

find -iname '*.wav' -o -iname '*.ogg' | (i=0; while read x; do echo "<region> key=$i sample=$x"; i=$((i + 1)); done) > map.sfz
You tweak the "i=0" to "i=24", whatever, and make sure you run it in the right directory... And change "map.sfz" to whatever, too. And maybe add other funky stuff into the echo command.

GUIs... who need's 'em ;-)

Post

You know, that command probably took longer to write than my program :D :lol:

Post

empty - just trying to get my post count up :lol:

Post

My, it's really useful and nice! Thank you very much Pukeweed! Moving my drumkits to sfz now! :D :D :D

Post

How do I control what samples are assigned to what keys

Post

Pukeweed wrote:(*cough* Dorumalaia *cough*).
:lol:
thanks, helps with a wonderful problem I have :)
..what goes around comes around..

Post

daviencrow wrote:How do I control what samples are assigned to what keys
You dont.. it just lines them up. If you want to move them around, just open the sfz file in notepad and edit the key numbers.

Post Reply

Return to “Samplers, Sampling & Sample Libraries”