If your projects could use a Juce synth that can play SF2 and SFZ soundfonts, this might interest you.
I have taken the liberty to update Steve Folta's great SFZero player a little and convert it to a Juce module. So it's now dead easy to use it from within your code.
The source code can be found here: https://github.com/altalogix/SFZero. It's MIT/BSD-style licensed - as was the original.
And I wrote a little blog article about it as well : http://www.mucoder.net/blog/2016/03/24/sfzero.html
Have fun
Leo
(posted earlier at Audio Plugins board - but this is a better place)
Thanks! This is very useful! I’ve looked in the original version and was discouraged to try and update it to latest once I saw it used a very old version of JUCE.
Few things I had to fix before running on latest (4.2.1) JUCE:
Probably this changed with the latest version, and now the common includes (SFZCommon.h) need to look like this:
good catch tsenkov, I’ve added your changes to the repo. Works with juce 4.1 here as well.
as to the VST SDK, that’s difficult to fix as this is a global Projucer setting. It’s always best to load and save the .jucer project file once in order to regen the build scripts with your own preferences
ah, yes. Unfortunately the SFZero repo was already in use as the parent repo - so I had to pick another name.
Would it be helpful to rename SFZero.h to SFZeroModule.h instead?