Compare commits
43 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 87b3e2bcfc | |||
| 9dd8de817f | |||
| 41a24b0f07 | |||
| 0049af4720 | |||
| 35125a732b | |||
| 21998dbbc0 | |||
| fa02ffef09 | |||
| ce354e3824 | |||
| 5e65ee89ca | |||
| 3c7322c90d | |||
| 3beabeef6d | |||
| 6a1e5be101 | |||
| f5779515c2 | |||
| 4b0f52863f | |||
| b49fb7872d | |||
| 06245409e8 | |||
| adc0352d59 | |||
| 86838d1e67 | |||
| 1c13d4b88a | |||
| 31fde8b4c8 | |||
| ddcca1549b | |||
| b7c86d3766 | |||
| 33b3f9c9b6 | |||
| 7e5da0b551 | |||
| c8a0a3b129 | |||
| 1371dd8233 | |||
| 9ec0cc6d39 | |||
| 9d44f308dc | |||
| 519bb9d4a2 | |||
| 48d5070d63 | |||
| 0e09d69e63 | |||
| f79cab72c5 | |||
| 21a22b8dcb | |||
| 1e6b6e51ed | |||
| 57b38a074d | |||
| 89664f5ab7 | |||
| 7340510ac4 | |||
| 432e312022 | |||
| 5b74f31ec4 | |||
| 40a5fb8ff4 | |||
| c5d209d605 | |||
| f676cd8883 | |||
| 6c17021d2f |
@@ -0,0 +1,86 @@
|
||||
name: Generate Documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'root'
|
||||
- '!documentation'
|
||||
paths:
|
||||
- '.github/workflows/documentation.yml'
|
||||
- 'vst.h'
|
||||
- 'vst.hpp'
|
||||
- 'Doxyfile'
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
name: "Generate Documentation"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Set up Git"
|
||||
shell: bash
|
||||
run: |
|
||||
git config --global user.name 'GitHub Actions'
|
||||
git config --global user.email 'xaymar@users.noreply.github.com'
|
||||
git config --global pull.ff only
|
||||
git config --global pull.rebase true
|
||||
|
||||
- name: "Clone"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
fetch-depth: 0
|
||||
|
||||
- name: "Clone Documentation Cache"
|
||||
id: doc_cache
|
||||
continue-on-error: true
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: 'documentation'
|
||||
path: 'build/docs/html'
|
||||
submodules: 'recursive'
|
||||
fetch-depth: 0
|
||||
|
||||
- name: "Initialize Documentation Cache"
|
||||
if: steps.doc_cache.outcome == 'failure'
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p build/docs/html
|
||||
pushd build/docs/html
|
||||
git init
|
||||
git switch --orphan documentation
|
||||
git remote remove origin
|
||||
git remote add -t documentation origin ${{ github.repositoryUrl }}
|
||||
popd
|
||||
|
||||
- name: "Install Prerequisites"
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get install -y clang-19 clang-tools-19 doxygen graphviz
|
||||
|
||||
- name: "Generate Documentation"
|
||||
shell: bash
|
||||
run: |
|
||||
doxygen Doxyfile
|
||||
|
||||
- name: "Update Documentation"
|
||||
shell: bash
|
||||
run: |
|
||||
pushd build/docs/html
|
||||
git add .
|
||||
git --no-pager diff --patch --minimal HEAD -- || true
|
||||
git update-index --refresh
|
||||
if ! git diff-index --quiet HEAD -- &> /dev/null; then
|
||||
git commit -a -m "${{ github.sha }}"
|
||||
|
||||
# Only push from master branch.
|
||||
if [[ "${{ github.ref }}" == "refs/heads/root" ]]; then
|
||||
git push --set-upstream origin documentation
|
||||
echo "Documentation has been updated!"
|
||||
else
|
||||
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
|
||||
fi
|
||||
else
|
||||
echo "Documentation is still up to date."
|
||||
fi
|
||||
popd
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
/docs
|
||||
/build
|
||||
@@ -1,9 +1,14 @@
|
||||
# About the Project
|
||||
This is a completely "clean room" untainted reverse engineered "SDK" for the VST 2.x interface. It was reverse engineered from binaries where no license restricting the reverse engineering was attached, or where the legal system explicitly allowed reverse engineering for the purpose of interoperability.
|
||||
|
||||
## As seen in
|
||||
[DISTRHO Plugin Framework](https://github.com/DISTRHO/DPF), [StompTuner](https://github.com/brummer10/StompTuner), [DF Zita Rev1](https://github.com/SpotlightKid/dfzitarev1), [TonPlugIns](https://github.com/Vhonowslend/TonPlugIns), [ToneTwistPlugs](https://github.com/brummer10/ToneTwistPlugs), [DF JPverb](https://github.com/SpotlightKid/dfjpverb), [CChorus](https://github.com/SpotlightKid/cchorus), [Dynation](https://github.com/vertver/Dynation) and likely more.
|
||||
|
||||
*(Want to be listed here? Open an Issue or Pull Request!)*
|
||||
|
||||
# Frequently Asked Questions
|
||||
## Is this legal? Can I use this in my own product?
|
||||
**Disclaimer:** I am not a lawyer. The information presented below is purely from available copyright laws that I could find about this topic. You should always consult with a lawyer first before including this in your product.
|
||||
**Disclaimer:** I am not a lawyer. Consult a real lawyer before including this in a paid product. The information presented below is purely from available copyright laws that I could find about this topic. You should always consult with a lawyer first before including this in your product.
|
||||
|
||||
As this only enables interoperability with existing VST 2.x programs and addons, it is considered to be reverse engineering in the name of interoperability. In most of the developed world, this is considered completely legal and is fine to be used by anyone, as long as it is not the only function of the product.
|
||||
|
||||
@@ -12,10 +17,13 @@ Note that this does not grant any patent licenses, nor does it grant you any rig
|
||||
## Why recreate an SDK for something officially abandoned by the creators?
|
||||
There is a ton of software that is only capable of loading VST2.x audio effects, and Steinberg has made no effort to create a VST3-to-VST2-adapter for that software. Notable software includes Audacity and OBS Studio, which both likely felt restricted by the license additions Steinberg added to the GPL license.
|
||||
|
||||
## How did you reverse engineer this?
|
||||
The reverse engineering was done with various tools (mostly disassemblers to x86 assembly code), hooking into system APIs, attempting to mimic functionality through observation and testing, and other methods. Primarily Visual Studio Code was used to write the header files, and Visual Studio 2019 Express was used to create fake VST plugins/hosts to figure out actual behavior.
|
||||
## What was used to create this clean room project?
|
||||
**Disclaimer:** I am not a lawyer. Consult a real lawyer before including this in a paid product.
|
||||
|
||||
### Which binaries were disassembled?
|
||||
* A fake VST2 host (using this header) was created to verify against existing plugins.
|
||||
* A fake VST2 plugin (using this header) was created to verify against existing hosts.
|
||||
* OBS Studio and Audacity were used to verify compatability between closed source and open source VST hosts.
|
||||
The initial version was created through the best available legal clean room reverse engineering method available. The whole process went through several rounds of the "telephone" game involving external developers and lawyers before the final document arrived on my desk. This initial version was barely functional as a lot of context ended up missing resulting in quite basic functionality.
|
||||
|
||||
This version went through several development cycles before settling on what I've now labelled as `v0.1.1`. It was stable and worked for the most part but lacked a lot of features. I've used it as a base for my own plug-ins and had quite a bit of success with it but the incompleteness of the recreated SDK was noticable. Eventually I recreated VST 3.x SDK compatible headers using the VST 3.x SDK which caused the license to upgrade from BSD 2-clause to BSD 3-clause - now known as `v0.2.0`.
|
||||
|
||||
As of late July/early August 2025, I had a found a bit of interest in this SDK again and didn't want to leave it in the incomplete state it was. I've recreated the fake plug-in and host that I used before and decided to automate behavior scanning: What do hosts or plug-ins expect us to do? What do they call? Etc. This was then let loose on several thousand available plug-ins and has resulted in the `v0.3.0` update to the SDK. As far as I can tell the SDK now has almost all functionality that VST 2.x plug-ins and hosts could want.
|
||||
|
||||
There's still a bit of work to do but it won't be easy as almost all of it involves structured data for which I can only guess. Progress is being made, but it's so much slower compared to when I had pages of telephone game documentation to work off of. Still better than nothing!
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* An attempt at an untained clean room reimplementation of the widely popular VST 2.x SDK.
|
||||
* Copyright (c) 2020 Xaymar Dirks <info@xaymar.com> (previously known as Michael Fabian Dirks)
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||
* following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
||||
* disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
|
||||
* following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
// Please refer to README.md and LICENSE for further information.
|
||||
|
||||
// Protect against double inclusion in practically every compiler available.
|
||||
#pragma once
|
||||
#ifndef VST2SDK_VST_HPP
|
||||
#define VST2SDK_VST_HPP
|
||||
|
||||
#include "vst.h"
|
||||
|
||||
// Variable size variant of vst_speaker_arrangement.
|
||||
template<size_t T>
|
||||
struct vst_speaker_arrangement_dynamic_t {
|
||||
VST_SPEAKER_ARRANGEMENT_TYPE type; // See VST_SPEAKER_ARRANGEMENT_TYPE
|
||||
int32_t channels; // Number of channels in speakers.
|
||||
vst_speaker_properties_t speakers[T]; // Array of speaker properties, actual size defined by channels.
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user