Hi list,
As a part of procrastination and annoyed by the way, how the situation is behind the SFZ, I created little script, which maybe helpful for someone. I know, that the solution is not the best, and Bassmidi driver is enought for most of us, but I prefer SFZ because I use it also for rendering files to wav and also the bank numbers are more friendly for me. The main idea is to use standard dialog when loading soundfonts so you don't need to rename and restart manually.
The website for the script is
http://onj.me/1itt-

Below I attached the documentation, so you can see, what it does.


Overview
SF2loader allows you to load sf2 files to SFZ plug-in via standard select-file dialog. It works as a macro, e. g. it puts the selected font to appropriate place, renames it to onj.sf2 and reloads the plug-in and *.fxb bank. I know that this is ugly workaround but currently I can not discover how to quickly load the font by clicking somewhere and sometimes I want to explore my soundfont library quickly, so I created this script.

Requirements
•VSTHost
SFZ plug-in
•ONJ.fxb bank
Content
Installation and first start
SF2loader is a simple executable file. You do not need install it. You probably don't need administration privileges to use it, but if you restricted path C:\soundfont\ for certain users, you have to allow it for user which runs the sf2loader.exe file. When you first run SF2loader, it will ask you for a path to SFZ file. It is a standard dialog, where you have to select your sfz.dll file. Script needs it, because when restarting VSTHost, it must open it again. When you select the file, You will get other dialog, where you have to select onj.fxb bank. This is the bank, which tells SFZ that font is stored in C:\soundfont\onj.sf2. Select the file and press OK. You do not need to change settings on every start-up.

How to use
Script is now running which is indicated by two ascending tones from your midi interface. Now open VSTHost and load SFZ plug-in as usual. Note that following shortcuts are available only when VSTHost is running and SFZ plug-in is loaded. It doesn't work, when you have other plug-in foreground. So you can use multiple plug-ins, but when you want to use SF2loader, SFZ plug-in must be foreground. •Shift+s: Shows two dialogs presented after first start. Useful if you want to change paths to your SFZ.dll and onj.fxb file. •Shift+l: Shows the dialog where you can load the soundfont. Select sf2 file and click Open. Now it will overwrite the old C:\soundfont\onj.sf2 with your selected soundfont and reload plug-in and the bank. At the end, you will hear four ascending tones indicating that everything is OK.
•Shift+q: Quit the SF2loader. You will hear two descending tones.

notes
•Do not use C:\soundfont\onj.sf2 as a regular path for soundfonts. Scripts overwrite it when you select other font, so the old font is damaged. •If you press shift+l and you hear two descending tones, it means that something is wrong with your paths. Try to reset the settings by pressing shift+s. Settings are stored in sf2loader.ini file in the program directory. •You can change used sounds. See the program directory. I think that names of midi files are self-explanatory. There is currently no dialog for that purpose.




  Ondrej
To unsubscribe or change list options, see http://lists.andrelouis.com

for archived list posts, see http://www.mail-archive.com/[email protected]

Reply via email to