I’m making this post because it took me a few hours to figure out how to use the Rubberband pitch-shifter with JUCE and I thought it’d be nice to have a little guide for other beginners.
I’d just download the repo as a zip from Github
a. You can build it pretty easily by opening \otherbuilds\rubberband-library.vcxproj and building in Visual Studio
b. Now you should have a rubberband-library.lib file under rubberband-default\otherbuilds\x64\Debug\rubberband-library.lib
You need to link the library and headers in the Projucer
a. Under the exporters section, press Visual Studio 2022 (or whatever), and under external libraries to link add the path to your rubberband-library.lib
b. Under Debug/Release there should be a field for the header search paths, here you should link to \rubberband-default\rubberband
c. Also in case it isn’t clear, you need to include where rubberband-default is located in each path
Now you should be able to #include <RubberBandStretcher.h>
It’s not so easy to work with the library. There’s some official notes here and the documentation is also here. I have a class that I’ll put here when I fix some issues.
Just wanted to add to this how I made it work in XCode.
Cloned the rubberband github repo. Installed meson and ninja with brew.
a. Access it through the terminal and configure the architecture with by running this on the terminal:
c. Run ninja and the build folder is full of stuff.
Created the following project structure (can’t show the actual names because it is company info): Root project folder with the projucer and stuff contains a libs folder. libs structure contains the whole build and the headers in another folder named include as you can see here: