A collection of spatial audio related VST plug-ins (loudspeaker/binaural panners, Ambisonics encoders/decoders/visualisers, etc.)
This repository contains the following VST plug-ins:
* AmbiBIN - A binaural Ambisonic decoder (up to 7th order) with a built-in SOFA loader and head-tracking support via OSC messages. Includes: Least-Squares (LS), spatial re-sampling (SPR), time-alignment (TA), and magnitude least-squares (Mag-LS) decoding options.
* AmbiDEC - A frequency-dependent loudspeaker Ambisonic decoder (up to 7th order) with user specifiable loudspeaker directions (up to 64), which may be optionally imported via JSON configuration files. Includes: All-Round (AllRAD), Energy-Preserving (EPAD), Spatial (SAD), and Mode-Matching (MMD) Ambisonic decoding options. The loudspeaker signals may also be binauralised for headphone playback.
* AmbiDRC - A frequency-dependent dynamic range compressor for ambisonic signals (up to 7th order).
* AmbiENC - An Ambisonic encoder/panner (up to 7th order), with support for up to 64 input channels; the directions for which may also be imported via JSON configuration files.
* Array2SH - A microphone array spatial encoder (up to 7th order), with presets for several commercially available A-format and higher-order microphone arrays. The plug-in can also present objective evaluation metrics for the currently selected configuration.
* Beamformer - A spherical harmonic domain beamforming plug-in with multiple beamforming strategies (up to 64 output beams).
* Binauraliser - A binaural panner (up to 64 input channels) with a built-in SOFA loader and head-tracking support via OSC messages. * DirASS - A sound-field visualiser based on re-assigning the energy of beamformers. This re-assignment is based on DoA estimates extracted from "spatially-constrained" regions, which are centred around each beamformer look-direction. * MatrixConv - A basic matrix convolver with an optional partitioned convolution mode. The user need only specify the number of inputs and load the filters via a wav file. * MultiConv - A basic multi-channel convolver with an optional partitioned convolution mode. Unlike "MatrixConv", this plug-in does not perform any matrixing. Instead, each input channel is convolved with the respective filter; i.e. numInputs = numFilters = numOutputs. * Panner - A frequency-dependent 3-D panner using the VBAP method (up to 64 inputs and outputs). * PitchShifter - A very basic multi-channel pitch shifter, based on the phase-vocoder approach. * PowerMap - A sound-field visualisation plug-in based on Ambisonic signals as input (up to 7th order), with PWD/MVDR/MUSIC/Min-Norm options. * Rotator - A flexible Ambisonic rotator (up to 7th order) with head-tracking support via OSC messages. * SLDoA - A frequency-dependent sound-field visualiser (up to 7th order), based on depicting the direction-of-arrival (DoA) estimates derived from spatially localised active-intensity vectors. The low frequency estimates are shown with blue icons, mid-frequencies with green, and high-frequencies with red.
The plug-in suite may be downloaded from here [Mac OSX (10.10 or higher), Linux (x86_64), and Windows (64-bit)].
First clone the repository (including submodules) with:
git clone --recursive https://github.com/leomccormack/SPARTA # or if you have already cloned the repository, update/init with: git submodule update --init --recursive
The VST2_SDK should be placed in the 'SDKs' folder like so:
MacOSX, Linux and Windows (x86_64/amd64) users must install a custom Intel MKL library. Detailed instructions on how to do this can be found here.
Raspberry Pi (ARM) users instead require OpenBLAS and LAPACKE libraries:
sudo apt-get install liblapack3 liblapack-dev libopenblas-base libopenblas-dev liblapacke-dev
Linux (x86_64/amd64 and ARM) users must also install the following libraries (the former line for JUCE, and the latter line for the SpatialAudioFramework):
sudo apt-get install x11proto-xinerama-dev libwebkit2gtk-4.0-dev libgtk-3-dev x11proto-xext-dev libcurl4-openssl-dev libasound2-dev sudo apt-get install libhdf5-dev libnetcdf-dev libnetcdff-dev
The plug-ins may be built with CMake (version 3.15 or higher):
mkdir build cmake -S . -B build -DSAF_ENABLE_SOFA_READER_MODULE=1 cd build make
Or for Visual Studio users (using x64 Native Tools Command Prompt as administrator):
cmake -S . -B build -G "Visual Studio 15 Win64" -DSAF_ENABLE_SOFA_READER_MODULE=1 cd build msbuild ALL_BUILD.vcxproj /p:Configuration=Release /mNote: when installing CMake on Windows, make sure to allow the intaller to add CMake to the system PATH list or it won't be found.
MacOSX/Linux users may run the following bash script via the Terminal to build all of the plugins:
./build-plugins.sh all # Note: MacOSX users may need to first install and enable Xcode Command Line Tools: xcode-select --install sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Windows users may instead run the following batch script via the "x64 Developer Command Prompt for VS.exe":
The repository also includes the following install scripts:
./install-juce.sh # builds a GPLv3 version of the Projucer App and copies it into "SDKs" ./install-vst2_sdk.sh # downloads, unzips, and places the VST2_SDK into "SDKs"
The build.plugins.sh script also supports many additional options:
./build-plugins.sh --help # help information ./build-plugins.sh projuce # generates Linux makefiles and IDE project files for all plugins ./build-plugins.sh clean # cleans all plugins ./build-plugins.sh build # builds all plugins ./build-plugins.sh all # projuces, cleans, and then builds all plugins ./build-plugins.sh _SPARTA_ambiBIN_ all # projuces+cleans+builds sparta_ambiBIN.vst ./build-plugins.sh _SPARTA_ambiENC_ build # builds "sparta_ambiENC.vst" ./build-plugins.sh _SPARTA_array2sh_ projucer # opens "sparta_array2sh.jucer" with Projucer
You may also manually open each .jucer file with the Projucer App and click "Save Project". This will generate Visual Studio (2015/2017) solution files, Xcode project files, Linux Makefiles (amd64), and Raspberry Pi Linux Makefiles (ARM), which are placed in:
To generate project files for other IDEs, you may open and configure the included .jucer files accordingly.
Suggestions and contributions to the code are both welcomed and encouraged. Feel free to branch off and submit pull requests. Note, however, that if the changes/additions are major, then maybe consider first discussing it via a github "issue" or by contacting the developers directly via email. We may also be able to help with the implementation if needed :-)
This project is licensed under the GPLv3 License - see the LICENSE file for details.