This project is uses JUCE and spleeterpp to make a simple application that runs spleeter in c++.
Credit for most of this work goes to https://github.com/gvne.
- Optional: download and install Intel's math kernel library. If you do not
install it, leave out the
Drtff_use_mkl=ON
cmake flag and remove the mlk libraries fromexternalLibraries
in the jucer file. - Download and install JUCE
- On MacOS, install xcode. On Win, install Visual Studio 2017.
- On Win, install git-bash.
git clone https://github.com/diracdeltas/spleeterpp.git && cd spleeterpp
- In bash or git-bash, set
SPLEETERPP_INSTALL_DIR=$(pwd)/install
- Install anaconda from https://docs.anaconda.com/anaconda/install/. On
Windows, make sure that conda is in your path and the Python version that
comes with Conda precedes the regular system Python in your path (make sure
~/anaconda3
is first in the path and~/anaconda3/Scripts
is also in the path).
- on macOS:
mkdir build && cd build && cmake -GXcode -Drtff_use_mkl=ON -DCMAKE_INSTALL_PREFIX=$SPLEETERPP_INSTALL_DIR ..
. on windows, replace Xcode with ""Visual Studio 15 2017 Win64" - run
cmake --build . --target install --config Release
. on MacOS, this may fail if Tensorflow wasn't correctly downloaded. to fix, delete the(NOT tensorflow_lib OR NOT tensorflow_framework_lib)
condition from cmake/add_tensorflow.cmake, then run step 1 again. - in another folder, do
git clone https://github.com/diracdeltas/vstSpleeter.git && cd vstSpleeter
. on Windows, also dogit checkout feature/windows
bash configure.sh $SPLEETERPP_INSTALL_DIR
- open the .jucer file in projucer and click on the VS2017 or xcode icon to open in your IDE.
- build the targets in your IDE, making sure that the scheme is set to Release.
- on windows, copy
extras/tensorflow.dll
to%SystemRoot%\system32
(you may need to open File Explorer as administrator to do this), then run postbuild.sh to package the vst3.