mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Compare commits
35 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0399fa39dc | ||
|
|
3001ed8271 | ||
|
|
5797f8b8b7 | ||
|
|
ba6e7b59ca | ||
|
|
e34c58fc8f | ||
|
|
62f2788c8a | ||
|
|
8292f10db2 | ||
|
|
afa366e9e1 | ||
|
|
a681b2e332 | ||
|
|
539fd80370 | ||
|
|
05992e760f | ||
|
|
98d290770b | ||
|
|
155c933711 | ||
|
|
e4f7246f45 | ||
|
|
8c45136be6 | ||
|
|
f822ff7659 | ||
|
|
be05233662 | ||
|
|
e2f3f5fc0f | ||
|
|
c991e57693 | ||
|
|
d8df411f1e | ||
|
|
098a5f3303 | ||
|
|
fd15bbf0c2 | ||
|
|
41322f65cd | ||
|
|
1572b876de | ||
|
|
8e068f7104 | ||
|
|
130e626ea6 | ||
|
|
7a62457617 | ||
|
|
c5c4cb1fdc | ||
|
|
26f572a019 | ||
|
|
b34be3502b | ||
|
|
6d98a82eec | ||
|
|
9ca21d1a7a | ||
|
|
602ae9fe02 | ||
|
|
5ab4013605 | ||
|
|
9371e75baf |
36 changed files with 2856 additions and 254 deletions
51
.github/workflows/build.yaml
vendored
51
.github/workflows/build.yaml
vendored
|
|
@ -3,7 +3,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: build-${{ github.ref || github.run_id }}
|
group: build-${{ github.ref || github.run_id }}
|
||||||
|
|
||||||
|
|
@ -11,33 +11,58 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 60
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- name: Windows
|
- name: Windows
|
||||||
os: [windows-latest]
|
os: windows-latest
|
||||||
- name: Linux
|
- name: Linux
|
||||||
os: [ubuntu-latest]
|
os: ubuntu-latest
|
||||||
- name: macOS
|
- name: macOS
|
||||||
os: [macos-latest]
|
os: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: "Run script"
|
|
||||||
|
- name: Install Linux dependencies
|
||||||
|
if: matrix.name == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
./ci/build.sh
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y --no-install-recommends \
|
||||||
|
ninja-build clang g++ \
|
||||||
|
libasound2-dev libjack-jackd2-dev ladspa-sdk libcurl4-openssl-dev \
|
||||||
|
libfreetype-dev libfontconfig1-dev \
|
||||||
|
libx11-dev libxcomposite-dev libxcursor-dev libxext-dev \
|
||||||
|
libxinerama-dev libxrandr-dev libxrender-dev \
|
||||||
|
libwebkit2gtk-4.1-dev libglu1-mesa-dev mesa-common-dev
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Install Inno Setup (Windows)
|
||||||
|
if: matrix.name == 'Windows'
|
||||||
|
run: choco install innosetup --no-progress -y
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Build installer
|
||||||
|
run: ./Installer/build.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
# macOS signing / notarization
|
||||||
APPLICATION: ${{ secrets.APPLICATION }}
|
APPLICATION: ${{ secrets.APPLICATION }}
|
||||||
INSTALLER: ${{ secrets.INSTALLER }}
|
INSTALLER: ${{ secrets.INSTALLER }}
|
||||||
APPLE_PASS: ${{ secrets.APPLE_PASS }}
|
APPLE_USER: ${{ secrets.APPLE_USER }}
|
||||||
APPLE_USER: ${{ secrets.APPLE_USER }}
|
APPLE_PASS: ${{ secrets.APPLE_PASS }}
|
||||||
APIKEY: ${{ secrets.APIKEY }}
|
# Windows Trusted Signing (Azure)
|
||||||
|
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
|
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
|
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: Binaries ${{ matrix.name }}
|
name: Binaries ${{ matrix.name }}
|
||||||
path: ci/bin/*.zip
|
path: bin/*
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
|
||||||
62
.github/workflows/release.yaml
vendored
62
.github/workflows/release.yaml
vendored
|
|
@ -8,45 +8,58 @@ jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 60
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- name: Windows
|
- name: Windows
|
||||||
os: [windows-latest]
|
os: windows-latest
|
||||||
- name: Linux
|
- name: Linux
|
||||||
os: [ubuntu-latest]
|
os: ubuntu-latest
|
||||||
- name: macOS
|
- name: macOS
|
||||||
os: [macos-latest]
|
os: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: "Build"
|
|
||||||
|
- name: Install Linux dependencies
|
||||||
|
if: matrix.name == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
./ci/build.sh
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y --no-install-recommends \
|
||||||
|
ninja-build clang g++ \
|
||||||
|
libasound2-dev libjack-jackd2-dev ladspa-sdk libcurl4-openssl-dev \
|
||||||
|
libfreetype-dev libfontconfig1-dev \
|
||||||
|
libx11-dev libxcomposite-dev libxcursor-dev libxext-dev \
|
||||||
|
libxinerama-dev libxrandr-dev libxrender-dev \
|
||||||
|
libwebkit2gtk-4.1-dev libglu1-mesa-dev mesa-common-dev
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Install Inno Setup (Windows)
|
||||||
|
if: matrix.name == 'Windows'
|
||||||
|
run: choco install innosetup --no-progress -y
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Build installer
|
||||||
|
run: ./Installer/build.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
APPLICATION: ${{ secrets.APPLICATION }}
|
APPLICATION: ${{ secrets.APPLICATION }}
|
||||||
INSTALLER: ${{ secrets.INSTALLER }}
|
INSTALLER: ${{ secrets.INSTALLER }}
|
||||||
APPLE_PASS: ${{ secrets.APPLE_PASS }}
|
APPLE_USER: ${{ secrets.APPLE_USER }}
|
||||||
APPLE_USER: ${{ secrets.APPLE_USER }}
|
APPLE_PASS: ${{ secrets.APPLE_PASS }}
|
||||||
APIKEY: ${{ secrets.APIKEY }}
|
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
- name: "Upload"
|
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
|
||||||
run: |
|
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
|
||||||
./ci/upload.sh
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
APPLICATION: ${{ secrets.APPLICATION }}
|
|
||||||
INSTALLER: ${{ secrets.INSTALLER }}
|
|
||||||
APPLE_PASS: ${{ secrets.APPLE_PASS }}
|
|
||||||
APPLE_USER: ${{ secrets.APPLE_USER }}
|
|
||||||
APIKEY: ${{ secrets.APIKEY }}
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: Binaries ${{ matrix.name }}
|
name: Binaries ${{ matrix.name }}
|
||||||
path: ci/bin/*.zip
|
path: bin/*
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
|
@ -54,7 +67,8 @@ jobs:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Download Artifacts
|
- name: Download Artifacts
|
||||||
|
|
@ -63,4 +77,6 @@ jobs:
|
||||||
run: ./release.sh
|
run: ./release.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
APIKEY: ${{ secrets.APIKEY }}
|
||||||
|
SYMBOL_API_KEY: ${{ secrets.SYMBOL_API_KEY }}
|
||||||
|
|
|
||||||
11
.gitignore
vendored
11
.gitignore
vendored
|
|
@ -33,6 +33,13 @@
|
||||||
xcuserdata
|
xcuserdata
|
||||||
Builds
|
Builds
|
||||||
JuceLibraryCode
|
JuceLibraryCode
|
||||||
ci/bin
|
bin
|
||||||
|
Installer/macOS/bin
|
||||||
|
Installer/win/bin
|
||||||
|
Installer/_flat_presets
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.claude
|
.claude
|
||||||
|
|
||||||
|
# modules
|
||||||
|
modules
|
||||||
|
|
||||||
|
|
|
||||||
14
.gitmodules
vendored
14
.gitmodules
vendored
|
|
@ -1,15 +1,19 @@
|
||||||
[submodule "modules/gin"]
|
[submodule "modules/gin"]
|
||||||
path = modules/gin
|
path = modules/gin
|
||||||
url = git@github.com:FigBug/Gin.git
|
url = https://github.com/FigBug/Gin.git
|
||||||
[submodule "modules/juce"]
|
[submodule "modules/juce"]
|
||||||
path = modules/juce
|
path = modules/juce
|
||||||
url = git@github.com:juce-framework/JUCE.git
|
url = https://github.com/juce-framework/JUCE.git
|
||||||
[submodule "modules/plugin_sdk"]
|
[submodule "modules/plugin_sdk"]
|
||||||
path = modules/plugin_sdk
|
path = modules/plugin_sdk
|
||||||
url = git@github.com:TurnipHat/plugin_sdk.git
|
url = https://github.com/TurnipHat/plugin_sdk.git
|
||||||
[submodule "modules/melatonin_inspector"]
|
[submodule "modules/melatonin_inspector"]
|
||||||
path = modules/melatonin_inspector
|
path = modules/melatonin_inspector
|
||||||
url = git@github.com:sudara/melatonin_inspector.git
|
url = https://github.com/sudara/melatonin_inspector.git
|
||||||
[submodule "modules/MTS-ESP"]
|
[submodule "modules/MTS-ESP"]
|
||||||
path = modules/MTS-ESP
|
path = modules/MTS-ESP
|
||||||
url = git@github.com:ODDSound/MTS-ESP.git
|
url = https://github.com/ODDSound/MTS-ESP.git
|
||||||
|
[submodule "modules/clap-juce-extensions"]
|
||||||
|
path = modules/clap-juce-extensions
|
||||||
|
url = https://github.com/free-audio/clap-juce-extensions.git
|
||||||
|
branch = main
|
||||||
|
|
|
||||||
174
AGENTS.md
Normal file
174
AGENTS.md
Normal file
|
|
@ -0,0 +1,174 @@
|
||||||
|
# AGENTS.md — Wavetable Synth Project Context
|
||||||
|
|
||||||
|
## Project Overview
|
||||||
|
|
||||||
|
Wavetable is a polyphonic wavetable synthesizer audio plugin (VST3, AU, CLAP, LV2, Standalone) built with **JUCE** and the **Gin** framework. It's developed by SocaLabs (Roland Rabien).
|
||||||
|
|
||||||
|
- **Version**: 1.0.34 (tracked in `VERSION` file)
|
||||||
|
- **Language**: C++20
|
||||||
|
- **Build system**: CMake (minimum 3.24)
|
||||||
|
- **Bundle ID**: `com.socalabs.wavetable`
|
||||||
|
|
||||||
|
## Repository Structure
|
||||||
|
|
||||||
|
```
|
||||||
|
Wavetable/
|
||||||
|
├── CMakeLists.txt # Main build config
|
||||||
|
├── CMakePresets.json # Presets: xcode (macOS), vs (Windows), ninja-gcc (Linux)
|
||||||
|
├── VERSION # Current version string
|
||||||
|
├── Changelist.txt # Version history (used by release.sh)
|
||||||
|
├── release.sh # GitHub release script
|
||||||
|
├── tag.sh # Tags current VERSION and pushes
|
||||||
|
├── plugin/
|
||||||
|
│ ├── Source/
|
||||||
|
│ │ ├── PluginProcessor.h/cpp # Main processor (WavetableAudioProcessor)
|
||||||
|
│ │ ├── PluginEditor.h/cpp # Editor (WavetableAudioProcessorEditor)
|
||||||
|
│ │ ├── Editor.h/cpp # Main UI layout component
|
||||||
|
│ │ ├── Panels.h # All section UI boxes (OscillatorBox, FilterBox, etc.)
|
||||||
|
│ │ ├── WavetableVoice.h/cpp # Synth voice
|
||||||
|
│ │ ├── Cfg.h # Compile-time constants
|
||||||
|
│ │ └── FX/ # Custom FX (DeRez2, FireAmp, GrindAmp)
|
||||||
|
│ └── Resources/
|
||||||
|
│ ├── layout.json # UI layout
|
||||||
|
│ ├── Presets/ # Factory presets (XML, per-category subdirs)
|
||||||
|
│ ├── Wavetables/ # Factory wavetables
|
||||||
|
│ └── WavetablesFLAC/ # FLAC-compressed wavetables
|
||||||
|
├── modules/ # Git submodules
|
||||||
|
│ ├── gin/ # Gin framework (core dependency)
|
||||||
|
│ ├── juce/ # JUCE framework
|
||||||
|
│ ├── clap-juce-extensions/ # CLAP format support
|
||||||
|
│ ├── MTS-ESP/ # Microtuning support
|
||||||
|
│ ├── plugin_sdk/ # VST2 SDK (optional)
|
||||||
|
│ └── melatonin_inspector/ # Debug UI inspector
|
||||||
|
├── installer/
|
||||||
|
│ ├── build.sh # Full installer build script (macOS/Linux/Windows)
|
||||||
|
│ ├── macOS/ # macOS pkg installer resources
|
||||||
|
│ └── win/ # Windows Inno Setup installer
|
||||||
|
└── .github/workflows/
|
||||||
|
├── build.yaml # CI build on push
|
||||||
|
└── release.yaml # Release build on tag push
|
||||||
|
```
|
||||||
|
|
||||||
|
## Key Architecture
|
||||||
|
|
||||||
|
### Plugin Core
|
||||||
|
- **`WavetableAudioProcessor`** (`plugin/Source/PluginProcessor.h`) — inherits `gin::Processor` + `gin::Synthesiser`
|
||||||
|
- **`WavetableAudioProcessorEditor`** (`plugin/Source/PluginEditor.h`) — inherits `gin::ProcessorEditor`
|
||||||
|
- **`Editor`** (`plugin/Source/Editor.h`) — the main content component with all section boxes
|
||||||
|
|
||||||
|
### UI Panels (Panels.h)
|
||||||
|
All section UIs are `gin::ParamBox` subclasses:
|
||||||
|
- `OscillatorBox` — wavetable osc with navigation buttons in header
|
||||||
|
- `SubBox`, `NoiseBox` — simple boxes
|
||||||
|
- `FilterBox` — complex with ADSR, routing buttons
|
||||||
|
- `ADSRBox` — envelope display + knobs
|
||||||
|
- `LFOBox`, `ENVBox` — tabbed (addHeader with HeaderButton)
|
||||||
|
- `StepBox` — step sequencer
|
||||||
|
- `ModBox`, `MatrixBox` — modulation source/matrix tabs
|
||||||
|
- `GlobalBox` — global controls
|
||||||
|
- FX boxes: `GateBox`, `ChorusBox`, `DistortBox`, `DelayBox`, `ReverbBox`
|
||||||
|
|
||||||
|
### Gin Framework (submodule)
|
||||||
|
- **`gin::ParamBox`** (`modules/gin/.../gin_parambox.h`) — base for all section boxes
|
||||||
|
- **`gin::ParamHeader`** — header bar with gradient background + label text
|
||||||
|
- **`gin::CopperLookAndFeel`** (`modules/gin/.../gin_copperlookandfeel.cpp`) — default LookAndFeel
|
||||||
|
- **Colors**: title1/title2 (header gradient), matte1/matte2 (body gradient), accent (copper)
|
||||||
|
- **`gradientRect()`** helper — vertical linear gradient fill
|
||||||
|
|
||||||
|
### Custom LookAndFeel
|
||||||
|
The project uses `gin::CopperLookAndFeel` by default (set in `gin_processor.cpp`). Colors can be overridden per-component via `findColour()`.
|
||||||
|
|
||||||
|
**Important**: `ParamHeader::paint()` is **private** and has hardcoded font size and gradient colors. To customize header appearance, you must edit `gin_parambox.h` directly in the submodule. This is a local modification that will be overwritten on `git submodule update`.
|
||||||
|
|
||||||
|
## Build Instructions
|
||||||
|
|
||||||
|
### Quick Build (macOS)
|
||||||
|
```bash
|
||||||
|
git clone --recursive https://github.com/FigBug/Wavetable.git
|
||||||
|
cd Wavetable
|
||||||
|
cmake --preset xcode
|
||||||
|
cmake --build --preset xcode --config Release
|
||||||
|
# Output: Builds/xcode/Wavetable_artefacts/Release/
|
||||||
|
```
|
||||||
|
|
||||||
|
### CMake Presets
|
||||||
|
- **macOS**: `xcode` — generates Xcode project, builds universal (arm64 + x86_64)
|
||||||
|
- **Windows**: `vs` — generates Visual Studio solution
|
||||||
|
- **Linux**: `ninja-gcc` — generates Ninja build files with GCC
|
||||||
|
|
||||||
|
### Build Outputs (macOS)
|
||||||
|
```
|
||||||
|
Builds/xcode/Wavetable_artefacts/Release/
|
||||||
|
├── Standalone/Wavetable.app
|
||||||
|
├── VST/Wavetable.vst
|
||||||
|
├── VST3/Wavetable.vst3
|
||||||
|
├── AU/Wavetable.component
|
||||||
|
└── CLAP/Wavetable.clap
|
||||||
|
```
|
||||||
|
|
||||||
|
### Installer (macOS)
|
||||||
|
```bash
|
||||||
|
./installer/build.sh
|
||||||
|
# Output: installer/macOS/bin/Wavetable.pkg
|
||||||
|
# Requires Xcode CLI tools; signing/notarization optional (needs secrets)
|
||||||
|
```
|
||||||
|
|
||||||
|
The installer pkg installs:
|
||||||
|
- VST → `/Library/Audio/Plug-Ins/VST/`
|
||||||
|
- VST3 → `/Library/Audio/Plug-Ins/VST3/`
|
||||||
|
- AU → `/Library/Audio/Plug-Ins/Components/`
|
||||||
|
- CLAP → `/Library/Audio/Plug-Ins/CLAP/`
|
||||||
|
- Factory wavetables + presets → `/Library/Audio/Presets/SocaLabs/Wavetable/`
|
||||||
|
|
||||||
|
### Manual Plugin Install (macOS, no installer)
|
||||||
|
Copy built bundles manually:
|
||||||
|
```bash
|
||||||
|
cp -R Builds/xcode/Wavetable_artefacts/Release/AU/Wavetable.component ~/Library/Audio/Plug-Ins/Components/
|
||||||
|
cp -R Builds/xcode/Wavetable_artefacts/Release/VST3/Wavetable.vst3 ~/Library/Audio/Plug-Ins/VST3/
|
||||||
|
cp -R Builds/xcode/Wavetable_artefacts/Release/CLAP/Wavetable.clap ~/Library/Audio/Plug-Ins/CLAP/
|
||||||
|
```
|
||||||
|
Factory resources:
|
||||||
|
```bash
|
||||||
|
mkdir -p ~/Library/Audio/Presets/SocaLabs/Wavetable
|
||||||
|
cp -R plugin/Resources/WavetablesFLAC ~/Library/Audio/Presets/SocaLabs/Wavetable/Wavetables
|
||||||
|
# Presets (flatten subdirs):
|
||||||
|
find plugin/Resources/Presets -name "*.xml" -exec cp {} ~/Library/Audio/Presets/SocaLabs/Wavetable/ \;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Release Process
|
||||||
|
|
||||||
|
1. Update `VERSION` file
|
||||||
|
2. Add changelog entry in `Changelist.txt` under the version
|
||||||
|
3. Commit and push
|
||||||
|
4. Run `./tag.sh` — tags `v{VERSION}` and pushes the tag
|
||||||
|
5. GitHub Actions (`release.yaml`) builds installers for all platforms
|
||||||
|
6. `release.sh` creates a GitHub release and uploads to socalabs.com
|
||||||
|
|
||||||
|
## Submodule Notes
|
||||||
|
|
||||||
|
The Gin submodule is pinned at commit `414fecf`. Local modifications to Gin files (e.g., `gin_parambox.h`, `gin_copperlookandfeel.cpp`) are intentional and should not be committed to the submodule. Be aware that `git submodule update` will overwrite these changes.
|
||||||
|
|
||||||
|
## Coding Conventions
|
||||||
|
|
||||||
|
- Standard JUCE/Gin code style (camelCase methods, PascalCase classes)
|
||||||
|
- `gin::Parameter::Ptr` for all synth parameters
|
||||||
|
- `gin::ParamBox` subclassed for each UI section
|
||||||
|
- Parameters defined as nested structs in `WavetableAudioProcessor` (e.g., `OSCParams`, `FilterParams`)
|
||||||
|
- No comments unless explicitly requested
|
||||||
|
- Build with `-ffast-math -fno-finite-math-only` on macOS/Release
|
||||||
|
|
||||||
|
## Common Tasks
|
||||||
|
|
||||||
|
### Changing header label appearance
|
||||||
|
Edit `modules/gin/modules/gin_plugin/components/gin_parambox.h` → `ParamHeader::paint()`. The font and gradient are hardcoded there.
|
||||||
|
|
||||||
|
### Changing header gradient colors
|
||||||
|
Edit `modules/gin/modules/gin_plugin/lookandfeel/gin_copperlookandfeel.cpp` → `title1ColourId` / `title2ColourId` in constructor.
|
||||||
|
|
||||||
|
### Adding new parameters
|
||||||
|
1. Add to the relevant Params struct in `PluginProcessor.h`
|
||||||
|
2. Initialize in `PluginProcessor.cpp` (`setup()` method)
|
||||||
|
3. Add UI control in the appropriate Box class in `Panels.h`
|
||||||
|
|
||||||
|
### Changing UI layout
|
||||||
|
Edit `plugin/Resources/layout.json` — positions are grid-based (56px columns, 70px rows, 23px header height).
|
||||||
|
|
@ -4,6 +4,7 @@ cmake_minimum_required (VERSION 3.16.0 FATAL_ERROR)
|
||||||
# Set for each plugin
|
# Set for each plugin
|
||||||
#
|
#
|
||||||
file (READ "${CMAKE_CURRENT_LIST_DIR}/VERSION" PLUGIN_VERSION)
|
file (READ "${CMAKE_CURRENT_LIST_DIR}/VERSION" PLUGIN_VERSION)
|
||||||
|
string (STRIP "${PLUGIN_VERSION}" PLUGIN_VERSION)
|
||||||
set (PLUGIN_NAME Wavetable)
|
set (PLUGIN_NAME Wavetable)
|
||||||
set (BUNDLE_ID com.socalabs.wavetable)
|
set (BUNDLE_ID com.socalabs.wavetable)
|
||||||
set (AU_ID WavetableAU)
|
set (AU_ID WavetableAU)
|
||||||
|
|
@ -13,7 +14,10 @@ set (PLUGIN_CODE Wave)
|
||||||
set (CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
set (CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
||||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
set (CMAKE_SUPPRESS_REGENERATION true)
|
set (CMAKE_SUPPRESS_REGENERATION true)
|
||||||
set (CMAKE_SKIP_INSTALL_RULES YES)
|
# Skip install rules everywhere except Linux, where CPack/DEB needs them.
|
||||||
|
if (NOT (UNIX AND NOT APPLE))
|
||||||
|
set (CMAKE_SKIP_INSTALL_RULES YES)
|
||||||
|
endif()
|
||||||
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
|
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
set_property (GLOBAL PROPERTY DEBUG_CONFIGURATIONS "Debug")
|
set_property (GLOBAL PROPERTY DEBUG_CONFIGURATIONS "Debug")
|
||||||
|
|
||||||
|
|
@ -71,6 +75,7 @@ set (JUCE_BUILD_EXTRAS OFF)
|
||||||
set (JUCE_BUILD_EXAMPLES OFF)
|
set (JUCE_BUILD_EXAMPLES OFF)
|
||||||
|
|
||||||
add_subdirectory (modules/juce)
|
add_subdirectory (modules/juce)
|
||||||
|
add_subdirectory (modules/clap-juce-extensions EXCLUDE_FROM_ALL)
|
||||||
|
|
||||||
set_property (DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/modules/juce" APPEND PROPERTY LABELS JUCE)
|
set_property (DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/modules/juce" APPEND PROPERTY LABELS JUCE)
|
||||||
|
|
||||||
|
|
@ -95,9 +100,7 @@ set_property (TARGET melatonin_inspector APPEND PROPERTY LABELS melatonin)
|
||||||
set_property (DIRECTORY APPEND PROPERTY LABELS Assets)
|
set_property (DIRECTORY APPEND PROPERTY LABELS Assets)
|
||||||
|
|
||||||
file (GLOB_RECURSE binary_files CONFIGURE_DEPENDS
|
file (GLOB_RECURSE binary_files CONFIGURE_DEPENDS
|
||||||
"./plugin/Resources/layout.json"
|
"./plugin/Resources/layout.json")
|
||||||
"./plugin/Resources/WavetablesFLAC/*.wt2048"
|
|
||||||
"./plugin/Resources/Presets/*.xml")
|
|
||||||
|
|
||||||
juce_add_binary_data (${PLUGIN_NAME}_Assets SOURCES ${binary_files})
|
juce_add_binary_data (${PLUGIN_NAME}_Assets SOURCES ${binary_files})
|
||||||
|
|
||||||
|
|
@ -126,6 +129,10 @@ juce_add_plugin (${PLUGIN_NAME}
|
||||||
AU_SANDBOX_SAFE FALSE
|
AU_SANDBOX_SAFE FALSE
|
||||||
LV2URI ${LV2_URI})
|
LV2URI ${LV2_URI})
|
||||||
|
|
||||||
|
clap_juce_extensions_plugin (TARGET ${PLUGIN_NAME}
|
||||||
|
CLAP_ID "${BUNDLE_ID}"
|
||||||
|
CLAP_FEATURES instrument synthesizer)
|
||||||
|
|
||||||
file (GLOB_RECURSE source_files CONFIGURE_DEPENDS
|
file (GLOB_RECURSE source_files CONFIGURE_DEPENDS
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/plugin/*.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/plugin/*.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/plugin/*.c
|
${CMAKE_CURRENT_SOURCE_DIR}/plugin/*.c
|
||||||
|
|
@ -206,6 +213,7 @@ if (APPLE)
|
||||||
XCODE_ATTRIBUTE_CLANG_LINK_OBJC_RUNTIME NO
|
XCODE_ATTRIBUTE_CLANG_LINK_OBJC_RUNTIME NO
|
||||||
#XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=Release] YES
|
#XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=Release] YES
|
||||||
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Debug] "YES"
|
XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Debug] "YES"
|
||||||
|
XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT[variant=Release] "dwarf-with-dsym"
|
||||||
)
|
)
|
||||||
if (NOT t STREQUAL "All")
|
if (NOT t STREQUAL "All")
|
||||||
target_compile_options(${tgt} PRIVATE
|
target_compile_options(${tgt} PRIVATE
|
||||||
|
|
@ -230,6 +238,22 @@ if (WIN32)
|
||||||
set_target_properties(${tgt} PROPERTIES LINK_FLAGS "/ignore:4099")
|
set_target_properties(${tgt} PROPERTIES LINK_FLAGS "/ignore:4099")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
# Generate debug symbols (PDBs) for Release builds so crashes can be symbolicated.
|
||||||
|
# /Zi emits full debug info; /DEBUG produces the .pdb; /OPT:REF and /OPT:ICF
|
||||||
|
# restore the size optimisations that /DEBUG otherwise disables.
|
||||||
|
foreach(t ${FORMATS} "CLAP" "")
|
||||||
|
set(tgt ${CMAKE_PROJECT_NAME})
|
||||||
|
if (NOT t STREQUAL "")
|
||||||
|
set(tgt ${tgt}_${t})
|
||||||
|
endif()
|
||||||
|
if (TARGET ${tgt})
|
||||||
|
target_compile_options(${tgt} PRIVATE "$<$<CONFIG:Release>:/Zi>")
|
||||||
|
target_link_options(${tgt} PRIVATE "$<$<CONFIG:Release>:/DEBUG>")
|
||||||
|
target_link_options(${tgt} PRIVATE "$<$<CONFIG:Release>:/OPT:REF>")
|
||||||
|
target_link_options(${tgt} PRIVATE "$<$<CONFIG:Release>:/OPT:ICF>")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
|
|
@ -237,10 +261,59 @@ if(UNIX AND NOT APPLE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if(WIN32)
|
#
|
||||||
set (dest "Program Files")
|
# Install + CPack (Linux only — macOS uses pkgbuild/productbuild, Windows uses Inno Setup)
|
||||||
else()
|
#
|
||||||
set (dest "Applications")
|
if (UNIX AND NOT APPLE)
|
||||||
endif()
|
set (_artefact_dir "${CMAKE_BINARY_DIR}/${PLUGIN_NAME}_artefacts/$<CONFIG>")
|
||||||
|
|
||||||
install (TARGETS ${PLUGIN_NAME} DESTINATION "${dest}")
|
install (FILES "${_artefact_dir}/VST/lib${PLUGIN_NAME}.so"
|
||||||
|
DESTINATION lib/vst
|
||||||
|
RENAME "${PLUGIN_NAME}.so"
|
||||||
|
COMPONENT VST)
|
||||||
|
|
||||||
|
install (DIRECTORY "${_artefact_dir}/VST3/${PLUGIN_NAME}.vst3"
|
||||||
|
DESTINATION lib/vst3
|
||||||
|
COMPONENT VST3
|
||||||
|
USE_SOURCE_PERMISSIONS)
|
||||||
|
|
||||||
|
install (DIRECTORY "${_artefact_dir}/LV2/${PLUGIN_NAME}.lv2"
|
||||||
|
DESTINATION lib/lv2
|
||||||
|
COMPONENT LV2
|
||||||
|
USE_SOURCE_PERMISSIONS)
|
||||||
|
|
||||||
|
install (FILES "${_artefact_dir}/CLAP/${PLUGIN_NAME}.clap"
|
||||||
|
DESTINATION lib/clap
|
||||||
|
COMPONENT CLAP)
|
||||||
|
|
||||||
|
# Presets ship flat — gin's loadDirectory doesn't recurse, and the pre-installer
|
||||||
|
# BinaryData flow stored them flat in the user dir.
|
||||||
|
file (GLOB_RECURSE _preset_xmls "${CMAKE_CURRENT_SOURCE_DIR}/plugin/Resources/Presets/*.xml")
|
||||||
|
install (FILES ${_preset_xmls}
|
||||||
|
DESTINATION share/SocaLabs/${PLUGIN_NAME}/Presets
|
||||||
|
COMPONENT Resources)
|
||||||
|
|
||||||
|
install (DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/plugin/Resources/WavetablesFLAC/"
|
||||||
|
DESTINATION share/SocaLabs/${PLUGIN_NAME}/Wavetables
|
||||||
|
COMPONENT Resources
|
||||||
|
FILES_MATCHING PATTERN "*.wt2048")
|
||||||
|
|
||||||
|
set (CPACK_PACKAGE_NAME "wavetable")
|
||||||
|
set (CPACK_PACKAGE_VERSION "${PLUGIN_VERSION}")
|
||||||
|
set (CPACK_PACKAGE_VENDOR "SocaLabs")
|
||||||
|
set (CPACK_PACKAGE_HOMEPAGE_URL "https://socalabs.com/")
|
||||||
|
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Wavetable synthesizer plugin")
|
||||||
|
set (CPACK_PACKAGE_CONTACT "support@socalabs.com")
|
||||||
|
set (CPACK_PACKAGING_INSTALL_PREFIX "/usr")
|
||||||
|
set (CPACK_GENERATOR "DEB")
|
||||||
|
set (CPACK_DEB_COMPONENT_INSTALL OFF)
|
||||||
|
set (CPACK_COMPONENTS_ALL VST VST3 LV2 CLAP Resources)
|
||||||
|
set (CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)
|
||||||
|
set (CPACK_DEBIAN_PACKAGE_MAINTAINER "Roland Rabien <support@socalabs.com>")
|
||||||
|
set (CPACK_DEBIAN_PACKAGE_SECTION "sound")
|
||||||
|
set (CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
|
||||||
|
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
||||||
|
set (CPACK_DEBIAN_FILE_NAME "Wavetable.deb")
|
||||||
|
|
||||||
|
include (CPack)
|
||||||
|
endif()
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,31 @@
|
||||||
|
1.0.34:
|
||||||
|
- Crash reporting improvements
|
||||||
|
|
||||||
|
1.0.33:
|
||||||
|
- Added crash reporting
|
||||||
|
|
||||||
|
1.0.32:
|
||||||
|
- Fixed fix wavetable menus
|
||||||
|
- Fixed deadlock
|
||||||
|
|
||||||
|
1.0.31:
|
||||||
|
- Fixed ADSR attack when time is 0
|
||||||
|
|
||||||
|
1.0.30:
|
||||||
|
- VST2 install path
|
||||||
|
|
||||||
|
1.0.29:
|
||||||
|
- AGPL license
|
||||||
|
|
||||||
|
1.0.28:
|
||||||
|
- Created installers
|
||||||
|
|
||||||
|
1.0.27:
|
||||||
|
- Zip file updated
|
||||||
|
|
||||||
|
1.0.26:
|
||||||
|
- Fixed crash with midi learn
|
||||||
|
|
||||||
1.0.25:
|
1.0.25:
|
||||||
- Added manual
|
- Added manual
|
||||||
- Added cable when dragging mod sources
|
- Added cable when dragging mod sources
|
||||||
|
|
|
||||||
668
Installer/EULA.rtf
Normal file
668
Installer/EULA.rtf
Normal file
|
|
@ -0,0 +1,668 @@
|
||||||
|
{\rtf1\ansi\ansicpg1252\cocoartf2868
|
||||||
|
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica-Light;}
|
||||||
|
{\colortbl;\red255\green255\blue255;}
|
||||||
|
{\*\expandedcolortbl;;}
|
||||||
|
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\pardirnatural\partightenfactor0
|
||||||
|
|
||||||
|
\f0\fs24 \cf0 GNU AFFERO GENERAL PUBLIC LICENSE\
|
||||||
|
Version 3, 19 November 2007\
|
||||||
|
\
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies\
|
||||||
|
of this license document, but changing it is not allowed.\
|
||||||
|
\
|
||||||
|
Preamble\
|
||||||
|
\
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for\
|
||||||
|
software and other kinds of works, specifically designed to ensure\
|
||||||
|
cooperation with the community in the case of network server software.\
|
||||||
|
\
|
||||||
|
The licenses for most software and other practical works are designed\
|
||||||
|
to take away your freedom to share and change the works. By contrast,\
|
||||||
|
our General Public Licenses are intended to guarantee your freedom to\
|
||||||
|
share and change all versions of a program--to make sure it remains free\
|
||||||
|
software for all its users.\
|
||||||
|
\
|
||||||
|
When we speak of free software, we are referring to freedom, not\
|
||||||
|
price. Our General Public Licenses are designed to make sure that you\
|
||||||
|
have the freedom to distribute copies of free software (and charge for\
|
||||||
|
them if you wish), that you receive source code or can get it if you\
|
||||||
|
want it, that you can change the software or use pieces of it in new\
|
||||||
|
free programs, and that you know you can do these things.\
|
||||||
|
\
|
||||||
|
Developers that use our General Public Licenses protect your rights\
|
||||||
|
with two steps: (1) assert copyright on the software, and (2) offer\
|
||||||
|
you this License which gives you legal permission to copy, distribute\
|
||||||
|
and/or modify the software.\
|
||||||
|
\
|
||||||
|
A secondary benefit of defending all users' freedom is that\
|
||||||
|
improvements made in alternate versions of the program, if they\
|
||||||
|
receive widespread use, become available for other developers to\
|
||||||
|
incorporate. Many developers of free software are heartened and\
|
||||||
|
encouraged by the resulting cooperation. However, in the case of\
|
||||||
|
software used on network servers, this result may fail to come about.\
|
||||||
|
The GNU General Public License permits making a modified version and\
|
||||||
|
letting the public access it on a server without ever releasing its\
|
||||||
|
source code to the public.\
|
||||||
|
\
|
||||||
|
The GNU Affero General Public License is designed specifically to\
|
||||||
|
ensure that, in such cases, the modified source code becomes available\
|
||||||
|
to the community. It requires the operator of a network server to\
|
||||||
|
provide the source code of the modified version running there to the\
|
||||||
|
users of that server. Therefore, public use of a modified version, on\
|
||||||
|
a publicly accessible server, gives the public access to the source\
|
||||||
|
code of the modified version.\
|
||||||
|
\
|
||||||
|
An older license, called the Affero General Public License and\
|
||||||
|
published by Affero, was designed to accomplish similar goals. This is\
|
||||||
|
a different license, not a version of the Affero GPL, but Affero has\
|
||||||
|
released a new version of the Affero GPL which permits relicensing under\
|
||||||
|
this license.\
|
||||||
|
\
|
||||||
|
The precise terms and conditions for copying, distribution and\
|
||||||
|
modification follow.\
|
||||||
|
\
|
||||||
|
TERMS AND CONDITIONS\
|
||||||
|
\
|
||||||
|
0. Definitions.\
|
||||||
|
\
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.\
|
||||||
|
\
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of\
|
||||||
|
works, such as semiconductor masks.\
|
||||||
|
\
|
||||||
|
"The Program" refers to any copyrightable work licensed under this\
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and\
|
||||||
|
"recipients" may be individuals or organizations.\
|
||||||
|
\
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work\
|
||||||
|
in a fashion requiring copyright permission, other than the making of an\
|
||||||
|
exact copy. The resulting work is called a "modified version" of the\
|
||||||
|
earlier work or a work "based on" the earlier work.\
|
||||||
|
\
|
||||||
|
A "covered work" means either the unmodified Program or a work based\
|
||||||
|
on the Program.\
|
||||||
|
\
|
||||||
|
To "propagate" a work means to do anything with it that, without\
|
||||||
|
permission, would make you directly or secondarily liable for\
|
||||||
|
infringement under applicable copyright law, except executing it on a\
|
||||||
|
computer or modifying a private copy. Propagation includes copying,\
|
||||||
|
distribution (with or without modification), making available to the\
|
||||||
|
public, and in some countries other activities as well.\
|
||||||
|
\
|
||||||
|
To "convey" a work means any kind of propagation that enables other\
|
||||||
|
parties to make or receive copies. Mere interaction with a user through\
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.\
|
||||||
|
\
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"\
|
||||||
|
to the extent that it includes a convenient and prominently visible\
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)\
|
||||||
|
tells the user that there is no warranty for the work (except to the\
|
||||||
|
extent that warranties are provided), that licensees may convey the\
|
||||||
|
work under this License, and how to view a copy of this License. If\
|
||||||
|
the interface presents a list of user commands or options, such as a\
|
||||||
|
menu, a prominent item in the list meets this criterion.\
|
||||||
|
\
|
||||||
|
1. Source Code.\
|
||||||
|
\
|
||||||
|
The "source code" for a work means the preferred form of the work\
|
||||||
|
for making modifications to it. "Object code" means any non-source\
|
||||||
|
form of a work.\
|
||||||
|
\
|
||||||
|
A "Standard Interface" means an interface that either is an official\
|
||||||
|
standard defined by a recognized standards body, or, in the case of\
|
||||||
|
interfaces specified for a particular programming language, one that\
|
||||||
|
is widely used among developers working in that language.\
|
||||||
|
\
|
||||||
|
The "System Libraries" of an executable work include anything, other\
|
||||||
|
than the work as a whole, that (a) is included in the normal form of\
|
||||||
|
packaging a Major Component, but which is not part of that Major\
|
||||||
|
Component, and (b) serves only to enable use of the work with that\
|
||||||
|
Major Component, or to implement a Standard Interface for which an\
|
||||||
|
implementation is available to the public in source code form. A\
|
||||||
|
"Major Component", in this context, means a major essential component\
|
||||||
|
(kernel, window system, and so on) of the specific operating system\
|
||||||
|
(if any) on which the executable work runs, or a compiler used to\
|
||||||
|
produce the work, or an object code interpreter used to run it.\
|
||||||
|
\
|
||||||
|
The "Corresponding Source" for a work in object code form means all\
|
||||||
|
the source code needed to generate, install, and (for an executable\
|
||||||
|
work) run the object code and to modify the work, including scripts to\
|
||||||
|
control those activities. However, it does not include the work's\
|
||||||
|
System Libraries, or general-purpose tools or generally available free\
|
||||||
|
programs which are used unmodified in performing those activities but\
|
||||||
|
which are not part of the work. For example, Corresponding Source\
|
||||||
|
includes interface definition files associated with source files for\
|
||||||
|
the work, and the source code for shared libraries and dynamically\
|
||||||
|
linked subprograms that the work is specifically designed to require,\
|
||||||
|
such as by intimate data communication or control flow between those\
|
||||||
|
subprograms and other parts of the work.\
|
||||||
|
\
|
||||||
|
The Corresponding Source need not include anything that users\
|
||||||
|
can regenerate automatically from other parts of the Corresponding\
|
||||||
|
Source.\
|
||||||
|
\
|
||||||
|
The Corresponding Source for a work in source code form is that\
|
||||||
|
same work.\
|
||||||
|
\
|
||||||
|
2. Basic Permissions.\
|
||||||
|
\
|
||||||
|
All rights granted under this License are granted for the term of\
|
||||||
|
copyright on the Program, and are irrevocable provided the stated\
|
||||||
|
conditions are met. This License explicitly affirms your unlimited\
|
||||||
|
permission to run the unmodified Program. The output from running a\
|
||||||
|
covered work is covered by this License only if the output, given its\
|
||||||
|
content, constitutes a covered work. This License acknowledges your\
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.\
|
||||||
|
\
|
||||||
|
You may make, run and propagate covered works that you do not\
|
||||||
|
convey, without conditions so long as your license otherwise remains\
|
||||||
|
in force. You may convey covered works to others for the sole purpose\
|
||||||
|
of having them make modifications exclusively for you, or provide you\
|
||||||
|
with facilities for running those works, provided that you comply with\
|
||||||
|
the terms of this License in conveying all material for which you do\
|
||||||
|
not control copyright. Those thus making or running the covered works\
|
||||||
|
for you must do so exclusively on your behalf, under your direction\
|
||||||
|
and control, on terms that prohibit them from making any copies of\
|
||||||
|
your copyrighted material outside their relationship with you.\
|
||||||
|
\
|
||||||
|
Conveying under any other circumstances is permitted solely under\
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10\
|
||||||
|
makes it unnecessary.\
|
||||||
|
\
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.\
|
||||||
|
\
|
||||||
|
No covered work shall be deemed part of an effective technological\
|
||||||
|
measure under any applicable law fulfilling obligations under article\
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or\
|
||||||
|
similar laws prohibiting or restricting circumvention of such\
|
||||||
|
measures.\
|
||||||
|
\
|
||||||
|
When you convey a covered work, you waive any legal power to forbid\
|
||||||
|
circumvention of technological measures to the extent such circumvention\
|
||||||
|
is effected by exercising rights under this License with respect to\
|
||||||
|
the covered work, and you disclaim any intention to limit operation or\
|
||||||
|
modification of the work as a means of enforcing, against the work's\
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of\
|
||||||
|
technological measures.\
|
||||||
|
\
|
||||||
|
4. Conveying Verbatim Copies.\
|
||||||
|
\
|
||||||
|
You may convey verbatim copies of the Program's source code as you\
|
||||||
|
receive it, in any medium, provided that you conspicuously and\
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;\
|
||||||
|
keep intact all notices stating that this License and any\
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;\
|
||||||
|
keep intact all notices of the absence of any warranty; and give all\
|
||||||
|
recipients a copy of this License along with the Program.\
|
||||||
|
\
|
||||||
|
You may charge any price or no price for each copy that you convey,\
|
||||||
|
and you may offer support or warranty protection for a fee.\
|
||||||
|
\
|
||||||
|
5. Conveying Modified Source Versions.\
|
||||||
|
\
|
||||||
|
You may convey a work based on the Program, or the modifications to\
|
||||||
|
produce it from the Program, in the form of source code under the\
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:\
|
||||||
|
\
|
||||||
|
a) The work must carry prominent notices stating that you modified\
|
||||||
|
it, and giving a relevant date.\
|
||||||
|
\
|
||||||
|
b) The work must carry prominent notices stating that it is\
|
||||||
|
released under this License and any conditions added under section\
|
||||||
|
7. This requirement modifies the requirement in section 4 to\
|
||||||
|
"keep intact all notices".\
|
||||||
|
\
|
||||||
|
c) You must license the entire work, as a whole, under this\
|
||||||
|
License to anyone who comes into possession of a copy. This\
|
||||||
|
License will therefore apply, along with any applicable section 7\
|
||||||
|
additional terms, to the whole of the work, and all its parts,\
|
||||||
|
regardless of how they are packaged. This License gives no\
|
||||||
|
permission to license the work in any other way, but it does not\
|
||||||
|
invalidate such permission if you have separately received it.\
|
||||||
|
\
|
||||||
|
d) If the work has interactive user interfaces, each must display\
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive\
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your\
|
||||||
|
work need not make them do so.\
|
||||||
|
\
|
||||||
|
A compilation of a covered work with other separate and independent\
|
||||||
|
works, which are not by their nature extensions of the covered work,\
|
||||||
|
and which are not combined with it such as to form a larger program,\
|
||||||
|
in or on a volume of a storage or distribution medium, is called an\
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not\
|
||||||
|
used to limit the access or legal rights of the compilation's users\
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work\
|
||||||
|
in an aggregate does not cause this License to apply to the other\
|
||||||
|
parts of the aggregate.\
|
||||||
|
\
|
||||||
|
6. Conveying Non-Source Forms.\
|
||||||
|
\
|
||||||
|
You may convey a covered work in object code form under the terms\
|
||||||
|
of sections 4 and 5, provided that you also convey the\
|
||||||
|
machine-readable Corresponding Source under the terms of this License,\
|
||||||
|
in one of these ways:\
|
||||||
|
\
|
||||||
|
a) Convey the object code in, or embodied in, a physical product\
|
||||||
|
(including a physical distribution medium), accompanied by the\
|
||||||
|
Corresponding Source fixed on a durable physical medium\
|
||||||
|
customarily used for software interchange.\
|
||||||
|
\
|
||||||
|
b) Convey the object code in, or embodied in, a physical product\
|
||||||
|
(including a physical distribution medium), accompanied by a\
|
||||||
|
written offer, valid for at least three years and valid for as\
|
||||||
|
long as you offer spare parts or customer support for that product\
|
||||||
|
model, to give anyone who possesses the object code either (1) a\
|
||||||
|
copy of the Corresponding Source for all the software in the\
|
||||||
|
product that is covered by this License, on a durable physical\
|
||||||
|
medium customarily used for software interchange, for a price no\
|
||||||
|
more than your reasonable cost of physically performing this\
|
||||||
|
conveying of source, or (2) access to copy the\
|
||||||
|
Corresponding Source from a network server at no charge.\
|
||||||
|
\
|
||||||
|
c) Convey individual copies of the object code with a copy of the\
|
||||||
|
written offer to provide the Corresponding Source. This\
|
||||||
|
alternative is allowed only occasionally and noncommercially, and\
|
||||||
|
only if you received the object code with such an offer, in accord\
|
||||||
|
with subsection 6b.\
|
||||||
|
\
|
||||||
|
d) Convey the object code by offering access from a designated\
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the\
|
||||||
|
Corresponding Source in the same way through the same place at no\
|
||||||
|
further charge. You need not require recipients to copy the\
|
||||||
|
Corresponding Source along with the object code. If the place to\
|
||||||
|
copy the object code is a network server, the Corresponding Source\
|
||||||
|
may be on a different server (operated by you or a third party)\
|
||||||
|
that supports equivalent copying facilities, provided you maintain\
|
||||||
|
clear directions next to the object code saying where to find the\
|
||||||
|
Corresponding Source. Regardless of what server hosts the\
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is\
|
||||||
|
available for as long as needed to satisfy these requirements.\
|
||||||
|
\
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided\
|
||||||
|
you inform other peers where the object code and Corresponding\
|
||||||
|
Source of the work are being offered to the general public at no\
|
||||||
|
charge under subsection 6d.\
|
||||||
|
\
|
||||||
|
A separable portion of the object code, whose source code is excluded\
|
||||||
|
from the Corresponding Source as a System Library, need not be\
|
||||||
|
included in conveying the object code work.\
|
||||||
|
\
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any\
|
||||||
|
tangible personal property which is normally used for personal, family,\
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation\
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,\
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular\
|
||||||
|
product received by a particular user, "normally used" refers to a\
|
||||||
|
typical or common use of that class of product, regardless of the status\
|
||||||
|
of the particular user or of the way in which the particular user\
|
||||||
|
actually uses, or expects or is expected to use, the product. A product\
|
||||||
|
is a consumer product regardless of whether the product has substantial\
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent\
|
||||||
|
the only significant mode of use of the product.\
|
||||||
|
\
|
||||||
|
"Installation Information" for a User Product means any methods,\
|
||||||
|
procedures, authorization keys, or other information required to install\
|
||||||
|
and execute modified versions of a covered work in that User Product from\
|
||||||
|
a modified version of its Corresponding Source. The information must\
|
||||||
|
suffice to ensure that the continued functioning of the modified object\
|
||||||
|
code is in no case prevented or interfered with solely because\
|
||||||
|
modification has been made.\
|
||||||
|
\
|
||||||
|
If you convey an object code work under this section in, or with, or\
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as\
|
||||||
|
part of a transaction in which the right of possession and use of the\
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a\
|
||||||
|
fixed term (regardless of how the transaction is characterized), the\
|
||||||
|
Corresponding Source conveyed under this section must be accompanied\
|
||||||
|
by the Installation Information. But this requirement does not apply\
|
||||||
|
if neither you nor any third party retains the ability to install\
|
||||||
|
modified object code on the User Product (for example, the work has\
|
||||||
|
been installed in ROM).\
|
||||||
|
\
|
||||||
|
The requirement to provide Installation Information does not include a\
|
||||||
|
requirement to continue to provide support service, warranty, or updates\
|
||||||
|
for a work that has been modified or installed by the recipient, or for\
|
||||||
|
the User Product in which it has been modified or installed. Access to a\
|
||||||
|
network may be denied when the modification itself materially and\
|
||||||
|
adversely affects the operation of the network or violates the rules and\
|
||||||
|
protocols for communication across the network.\
|
||||||
|
\
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,\
|
||||||
|
in accord with this section must be in a format that is publicly\
|
||||||
|
documented (and with an implementation available to the public in\
|
||||||
|
source code form), and must require no special password or key for\
|
||||||
|
unpacking, reading or copying.\
|
||||||
|
\
|
||||||
|
7. Additional Terms.\
|
||||||
|
\
|
||||||
|
"Additional permissions" are terms that supplement the terms of this\
|
||||||
|
License by making exceptions from one or more of its conditions.\
|
||||||
|
Additional permissions that are applicable to the entire Program shall\
|
||||||
|
be treated as though they were included in this License, to the extent\
|
||||||
|
that they are valid under applicable law. If additional permissions\
|
||||||
|
apply only to part of the Program, that part may be used separately\
|
||||||
|
under those permissions, but the entire Program remains governed by\
|
||||||
|
this License without regard to the additional permissions.\
|
||||||
|
\
|
||||||
|
When you convey a copy of a covered work, you may at your option\
|
||||||
|
remove any additional permissions from that copy, or from any part of\
|
||||||
|
it. (Additional permissions may be written to require their own\
|
||||||
|
removal in certain cases when you modify the work.) You may place\
|
||||||
|
additional permissions on material, added by you to a covered work,\
|
||||||
|
for which you have or can give appropriate copyright permission.\
|
||||||
|
\
|
||||||
|
Notwithstanding any other provision of this License, for material you\
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of\
|
||||||
|
that material) supplement the terms of this License with terms:\
|
||||||
|
\
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the\
|
||||||
|
terms of sections 15 and 16 of this License; or\
|
||||||
|
\
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or\
|
||||||
|
author attributions in that material or in the Appropriate Legal\
|
||||||
|
Notices displayed by works containing it; or\
|
||||||
|
\
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or\
|
||||||
|
requiring that modified versions of such material be marked in\
|
||||||
|
reasonable ways as different from the original version; or\
|
||||||
|
\
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or\
|
||||||
|
authors of the material; or\
|
||||||
|
\
|
||||||
|
e) Declining to grant rights under trademark law for use of some\
|
||||||
|
trade names, trademarks, or service marks; or\
|
||||||
|
\
|
||||||
|
f) Requiring indemnification of licensors and authors of that\
|
||||||
|
material by anyone who conveys the material (or modified versions of\
|
||||||
|
it) with contractual assumptions of liability to the recipient, for\
|
||||||
|
any liability that these contractual assumptions directly impose on\
|
||||||
|
those licensors and authors.\
|
||||||
|
\
|
||||||
|
All other non-permissive additional terms are considered "further\
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you\
|
||||||
|
received it, or any part of it, contains a notice stating that it is\
|
||||||
|
governed by this License along with a term that is a further\
|
||||||
|
restriction, you may remove that term. If a license document contains\
|
||||||
|
a further restriction but permits relicensing or conveying under this\
|
||||||
|
License, you may add to a covered work material governed by the terms\
|
||||||
|
of that license document, provided that the further restriction does\
|
||||||
|
not survive such relicensing or conveying.\
|
||||||
|
\
|
||||||
|
If you add terms to a covered work in accord with this section, you\
|
||||||
|
must place, in the relevant source files, a statement of the\
|
||||||
|
additional terms that apply to those files, or a notice indicating\
|
||||||
|
where to find the applicable terms.\
|
||||||
|
\
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the\
|
||||||
|
form of a separately written license, or stated as exceptions;\
|
||||||
|
the above requirements apply either way.\
|
||||||
|
\
|
||||||
|
8. Termination.\
|
||||||
|
\
|
||||||
|
You may not propagate or modify a covered work except as expressly\
|
||||||
|
provided under this License. Any attempt otherwise to propagate or\
|
||||||
|
modify it is void, and will automatically terminate your rights under\
|
||||||
|
this License (including any patent licenses granted under the third\
|
||||||
|
paragraph of section 11).\
|
||||||
|
\
|
||||||
|
However, if you cease all violation of this License, then your\
|
||||||
|
license from a particular copyright holder is reinstated (a)\
|
||||||
|
provisionally, unless and until the copyright holder explicitly and\
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright\
|
||||||
|
holder fails to notify you of the violation by some reasonable means\
|
||||||
|
prior to 60 days after the cessation.\
|
||||||
|
\
|
||||||
|
Moreover, your license from a particular copyright holder is\
|
||||||
|
reinstated permanently if the copyright holder notifies you of the\
|
||||||
|
violation by some reasonable means, this is the first time you have\
|
||||||
|
received notice of violation of this License (for any work) from that\
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after\
|
||||||
|
your receipt of the notice.\
|
||||||
|
\
|
||||||
|
Termination of your rights under this section does not terminate the\
|
||||||
|
licenses of parties who have received copies or rights from you under\
|
||||||
|
this License. If your rights have been terminated and not permanently\
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same\
|
||||||
|
material under section 10.\
|
||||||
|
\
|
||||||
|
9. Acceptance Not Required for Having Copies.\
|
||||||
|
\
|
||||||
|
You are not required to accept this License in order to receive or\
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work\
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission\
|
||||||
|
to receive a copy likewise does not require acceptance. However,\
|
||||||
|
nothing other than this License grants you permission to propagate or\
|
||||||
|
modify any covered work. These actions infringe copyright if you do\
|
||||||
|
not accept this License. Therefore, by modifying or propagating a\
|
||||||
|
covered work, you indicate your acceptance of this License to do so.\
|
||||||
|
\
|
||||||
|
10. Automatic Licensing of Downstream Recipients.\
|
||||||
|
\
|
||||||
|
Each time you convey a covered work, the recipient automatically\
|
||||||
|
receives a license from the original licensors, to run, modify and\
|
||||||
|
propagate that work, subject to this License. You are not responsible\
|
||||||
|
for enforcing compliance by third parties with this License.\
|
||||||
|
\
|
||||||
|
An "entity transaction" is a transaction transferring control of an\
|
||||||
|
organization, or substantially all assets of one, or subdividing an\
|
||||||
|
organization, or merging organizations. If propagation of a covered\
|
||||||
|
work results from an entity transaction, each party to that\
|
||||||
|
transaction who receives a copy of the work also receives whatever\
|
||||||
|
licenses to the work the party's predecessor in interest had or could\
|
||||||
|
give under the previous paragraph, plus a right to possession of the\
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if\
|
||||||
|
the predecessor has it or can get it with reasonable efforts.\
|
||||||
|
\
|
||||||
|
You may not impose any further restrictions on the exercise of the\
|
||||||
|
rights granted or affirmed under this License. For example, you may\
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of\
|
||||||
|
rights granted under this License, and you may not initiate litigation\
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that\
|
||||||
|
any patent claim is infringed by making, using, selling, offering for\
|
||||||
|
sale, or importing the Program or any portion of it.\
|
||||||
|
\
|
||||||
|
11. Patents.\
|
||||||
|
\
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this\
|
||||||
|
License of the Program or a work on which the Program is based. The\
|
||||||
|
work thus licensed is called the contributor's "contributor version".\
|
||||||
|
\
|
||||||
|
A contributor's "essential patent claims" are all patent claims\
|
||||||
|
owned or controlled by the contributor, whether already acquired or\
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted\
|
||||||
|
by this License, of making, using, or selling its contributor version,\
|
||||||
|
but do not include claims that would be infringed only as a\
|
||||||
|
consequence of further modification of the contributor version. For\
|
||||||
|
purposes of this definition, "control" includes the right to grant\
|
||||||
|
patent sublicenses in a manner consistent with the requirements of\
|
||||||
|
this License.\
|
||||||
|
\
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free\
|
||||||
|
patent license under the contributor's essential patent claims, to\
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and\
|
||||||
|
propagate the contents of its contributor version.\
|
||||||
|
\
|
||||||
|
In the following three paragraphs, a "patent license" is any express\
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent\
|
||||||
|
(such as an express permission to practice a patent or covenant not to\
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a\
|
||||||
|
party means to make such an agreement or commitment not to enforce a\
|
||||||
|
patent against the party.\
|
||||||
|
\
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,\
|
||||||
|
and the Corresponding Source of the work is not available for anyone\
|
||||||
|
to copy, free of charge and under the terms of this License, through a\
|
||||||
|
publicly available network server or other readily accessible means,\
|
||||||
|
then you must either (1) cause the Corresponding Source to be so\
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the\
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner\
|
||||||
|
consistent with the requirements of this License, to extend the patent\
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have\
|
||||||
|
actual knowledge that, but for the patent license, your conveying the\
|
||||||
|
covered work in a country, or your recipient's use of the covered work\
|
||||||
|
in a country, would infringe one or more identifiable patents in that\
|
||||||
|
country that you have reason to believe are valid.\
|
||||||
|
\
|
||||||
|
If, pursuant to or in connection with a single transaction or\
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a\
|
||||||
|
covered work, and grant a patent license to some of the parties\
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify\
|
||||||
|
or convey a specific copy of the covered work, then the patent license\
|
||||||
|
you grant is automatically extended to all recipients of the covered\
|
||||||
|
work and works based on it.\
|
||||||
|
\
|
||||||
|
A patent license is "discriminatory" if it does not include within\
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is\
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are\
|
||||||
|
specifically granted under this License. You may not convey a covered\
|
||||||
|
work if you are a party to an arrangement with a third party that is\
|
||||||
|
in the business of distributing software, under which you make payment\
|
||||||
|
to the third party based on the extent of your activity of conveying\
|
||||||
|
the work, and under which the third party grants, to any of the\
|
||||||
|
parties who would receive the covered work from you, a discriminatory\
|
||||||
|
patent license (a) in connection with copies of the covered work\
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily\
|
||||||
|
for and in connection with specific products or compilations that\
|
||||||
|
contain the covered work, unless you entered into that arrangement,\
|
||||||
|
or that patent license was granted, prior to 28 March 2007.\
|
||||||
|
\
|
||||||
|
Nothing in this License shall be construed as excluding or limiting\
|
||||||
|
any implied license or other defenses to infringement that may\
|
||||||
|
otherwise be available to you under applicable patent law.\
|
||||||
|
\
|
||||||
|
12. No Surrender of Others' Freedom.\
|
||||||
|
\
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or\
|
||||||
|
otherwise) that contradict the conditions of this License, they do not\
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a\
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this\
|
||||||
|
License and any other pertinent obligations, then as a consequence you may\
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you\
|
||||||
|
to collect a royalty for further conveying from those to whom you convey\
|
||||||
|
the Program, the only way you could satisfy both those terms and this\
|
||||||
|
License would be to refrain entirely from conveying the Program.\
|
||||||
|
\
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.\
|
||||||
|
\
|
||||||
|
Notwithstanding any other provision of this License, if you modify the\
|
||||||
|
Program, your modified version must prominently offer all users\
|
||||||
|
interacting with it remotely through a computer network (if your version\
|
||||||
|
supports such interaction) an opportunity to receive the Corresponding\
|
||||||
|
Source of your version by providing access to the Corresponding Source\
|
||||||
|
from a network server at no charge, through some standard or customary\
|
||||||
|
means of facilitating copying of software. This Corresponding Source\
|
||||||
|
shall include the Corresponding Source for any work covered by version 3\
|
||||||
|
of the GNU General Public License that is incorporated pursuant to the\
|
||||||
|
following paragraph.\
|
||||||
|
\
|
||||||
|
Notwithstanding any other provision of this License, you have\
|
||||||
|
permission to link or combine any covered work with a work licensed\
|
||||||
|
under version 3 of the GNU General Public License into a single\
|
||||||
|
combined work, and to convey the resulting work. The terms of this\
|
||||||
|
License will continue to apply to the part which is the covered work,\
|
||||||
|
but the work with which it is combined will remain governed by version\
|
||||||
|
3 of the GNU General Public License.\
|
||||||
|
\
|
||||||
|
14. Revised Versions of this License.\
|
||||||
|
\
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of\
|
||||||
|
the GNU Affero General Public License from time to time. Such new versions\
|
||||||
|
will be similar in spirit to the present version, but may differ in detail to\
|
||||||
|
address new problems or concerns.\
|
||||||
|
\
|
||||||
|
Each version is given a distinguishing version number. If the\
|
||||||
|
Program specifies that a certain numbered version of the GNU Affero General\
|
||||||
|
Public License "or any later version" applies to it, you have the\
|
||||||
|
option of following the terms and conditions either of that numbered\
|
||||||
|
version or of any later version published by the Free Software\
|
||||||
|
Foundation. If the Program does not specify a version number of the\
|
||||||
|
GNU Affero General Public License, you may choose any version ever published\
|
||||||
|
by the Free Software Foundation.\
|
||||||
|
\
|
||||||
|
If the Program specifies that a proxy can decide which future\
|
||||||
|
versions of the GNU Affero General Public License can be used, that proxy's\
|
||||||
|
public statement of acceptance of a version permanently authorizes you\
|
||||||
|
to choose that version for the Program.\
|
||||||
|
\
|
||||||
|
Later license versions may give you additional or different\
|
||||||
|
permissions. However, no additional obligations are imposed on any\
|
||||||
|
author or copyright holder as a result of your choosing to follow a\
|
||||||
|
later version.\
|
||||||
|
\
|
||||||
|
15. Disclaimer of Warranty.\
|
||||||
|
\
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY\
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\
|
||||||
|
\
|
||||||
|
16. Limitation of Liability.\
|
||||||
|
\
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\
|
||||||
|
SUCH DAMAGES.\
|
||||||
|
\
|
||||||
|
17. Interpretation of Sections 15 and 16.\
|
||||||
|
\
|
||||||
|
If the disclaimer of warranty and limitation of liability provided\
|
||||||
|
above cannot be given local legal effect according to their terms,\
|
||||||
|
reviewing courts shall apply local law that most closely approximates\
|
||||||
|
an absolute waiver of all civil liability in connection with the\
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a\
|
||||||
|
copy of the Program in return for a fee.\
|
||||||
|
\
|
||||||
|
END OF TERMS AND CONDITIONS\
|
||||||
|
\
|
||||||
|
How to Apply These Terms to Your New Programs\
|
||||||
|
\
|
||||||
|
If you develop a new program, and you want it to be of the greatest\
|
||||||
|
possible use to the public, the best way to achieve this is to make it\
|
||||||
|
free software which everyone can redistribute and change under these terms.\
|
||||||
|
\
|
||||||
|
To do so, attach the following notices to the program. It is safest\
|
||||||
|
to attach them to the start of each source file to most effectively\
|
||||||
|
state the exclusion of warranty; and each file should have at least\
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.\
|
||||||
|
\
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>\
|
||||||
|
Copyright (C) <year> <name of author>\
|
||||||
|
\
|
||||||
|
This program is free software: you can redistribute it and/or modify\
|
||||||
|
it under the terms of the GNU Affero General Public License as published by\
|
||||||
|
the Free Software Foundation, either version 3 of the License, or\
|
||||||
|
(at your option) any later version.\
|
||||||
|
\
|
||||||
|
This program is distributed in the hope that it will be useful,\
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of\
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\
|
||||||
|
GNU Affero General Public License for more details.\
|
||||||
|
\
|
||||||
|
You should have received a copy of the GNU Affero General Public License\
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.\
|
||||||
|
\
|
||||||
|
Also add information on how to contact you by electronic and paper mail.\
|
||||||
|
\
|
||||||
|
If your software can interact with users remotely through a computer\
|
||||||
|
network, you should also make sure that it provides a way for users to\
|
||||||
|
get its source. For example, if your program is a web application, its\
|
||||||
|
interface could display a "Source" link that leads users to an archive\
|
||||||
|
of the code. There are many ways you could offer source, and different\
|
||||||
|
solutions will be better for different programs; see section 13 for the\
|
||||||
|
specific requirements.\
|
||||||
|
\
|
||||||
|
You should also get your employer (if you work as a programmer) or school,\
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.\
|
||||||
|
For more information on this, and how to apply and follow the GNU AGPL, see\
|
||||||
|
<https://www.gnu.org/licenses/>.\
|
||||||
|
}
|
||||||
367
Installer/build.sh
Executable file
367
Installer/build.sh
Executable file
|
|
@ -0,0 +1,367 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
#
|
||||||
|
# Resolve repo root
|
||||||
|
#
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
cd ..
|
||||||
|
PROJECT_ROOT=$(pwd)
|
||||||
|
PLUGIN="Wavetable"
|
||||||
|
VENDOR="SocaLabs"
|
||||||
|
BUNDLE_BASE="com.socalabs.wavetable"
|
||||||
|
|
||||||
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
|
PLATFORM="macOS"
|
||||||
|
elif [ "$(expr substr "$(uname -s)" 1 5)" = "Linux" ]; then
|
||||||
|
PLATFORM="linux"
|
||||||
|
else
|
||||||
|
PLATFORM="win"
|
||||||
|
fi
|
||||||
|
|
||||||
|
VERSION=$(cat "$PROJECT_ROOT/VERSION")
|
||||||
|
|
||||||
|
#
|
||||||
|
# Crash reporting: bundle the latest CrashReporter app + this plugin's
|
||||||
|
# registration JSON. Debug symbols are zipped into bin/ and uploaded later by
|
||||||
|
# the release job (release.sh), never from this build.
|
||||||
|
# The CrashReporter download is a public distribution channel (no key needed).
|
||||||
|
#
|
||||||
|
CRASH_BASE="https://crashreports.rabiensoftware.com"
|
||||||
|
|
||||||
|
# Native (non-MSYS) curl on Windows can't read Git-Bash paths like /d/a/...,
|
||||||
|
# so translate to a Windows path there. No-op on macOS/Linux.
|
||||||
|
curl_path () {
|
||||||
|
if command -v cygpath >/dev/null 2>&1; then cygpath -m "$1"; else printf '%s' "$1"; fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Download the latest CrashReporter build for a platform. Non-fatal: if none is
|
||||||
|
# published yet we still ship the registration JSON so crashes register.
|
||||||
|
fetch_reporter () { # $1 platform, $2 output file
|
||||||
|
if curl -fsSL "$CRASH_BASE/reporter/latest/?platform=$1" -o "$(curl_path "$2")"; then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
echo "WARNING: could not fetch CrashReporter for $1 (none published yet?)"
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Reset staging
|
||||||
|
#
|
||||||
|
rm -Rf "$PROJECT_ROOT/installer/$PLATFORM/bin"
|
||||||
|
mkdir -p "$PROJECT_ROOT/installer/$PLATFORM/bin"
|
||||||
|
rm -Rf "$PROJECT_ROOT/bin"
|
||||||
|
mkdir -p "$PROJECT_ROOT/bin"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Flatten the nested Presets/<category>/*.xml tree into a single flat directory.
|
||||||
|
# gin's loadDirectory() doesn't recurse, and the legacy BinaryData flow stored
|
||||||
|
# presets flat in the user directory — keeping flat matches what users see.
|
||||||
|
#
|
||||||
|
FLAT_PRESETS="$PROJECT_ROOT/installer/_flat_presets"
|
||||||
|
rm -Rf "$FLAT_PRESETS"
|
||||||
|
mkdir -p "$FLAT_PRESETS"
|
||||||
|
find "$PROJECT_ROOT/plugin/Resources/Presets" -name "*.xml" -type f -exec cp {} "$FLAT_PRESETS/" \;
|
||||||
|
|
||||||
|
############################################################
|
||||||
|
# macOS — pkgbuild + productbuild
|
||||||
|
############################################################
|
||||||
|
if [ "$PLATFORM" = "macOS" ]; then
|
||||||
|
TEAM_ID="${TEAM_ID:-3FS7DJDG38}"
|
||||||
|
DEV_APP_ID="${DEV_APP_ID:-Developer ID Application: Roland Rabien (${TEAM_ID})}"
|
||||||
|
DEV_INST_ID="${DEV_INST_ID:-Developer ID Installer: Roland Rabien (${TEAM_ID})}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bootstrap a temp keychain from base64-encoded p12 secrets when running in CI.
|
||||||
|
# APPLICATION = base64 of Developer ID Application .p12
|
||||||
|
# INSTALLER = base64 of Developer ID Installer .p12
|
||||||
|
#
|
||||||
|
if [ -n "${APPLICATION:-}" ] && [ -n "${INSTALLER:-}" ]; then
|
||||||
|
KC_PASS="${KEYCHAIN_PASSWORD:-nr4aGPyz}"
|
||||||
|
P12_PASS="${P12_PASSWORD:-aym9PKWB}"
|
||||||
|
|
||||||
|
security create-keychain -p "$KC_PASS" Keys.keychain || true
|
||||||
|
|
||||||
|
echo "$APPLICATION" | base64 -D -o /tmp/Application.p12
|
||||||
|
echo "$INSTALLER" | base64 -D -o /tmp/Installer.p12
|
||||||
|
|
||||||
|
security import /tmp/Application.p12 -t agg -k Keys.keychain -P "$P12_PASS" -A -T /usr/bin/codesign
|
||||||
|
security import /tmp/Installer.p12 -t agg -k Keys.keychain -P "$P12_PASS" -A -T /usr/bin/productsign
|
||||||
|
|
||||||
|
security list-keychains -s Keys.keychain
|
||||||
|
security default-keychain -s Keys.keychain
|
||||||
|
security unlock-keychain -p "$KC_PASS" Keys.keychain
|
||||||
|
security set-keychain-settings -l -u -t 13600 Keys.keychain
|
||||||
|
security set-key-partition-list -S apple-tool:,apple: -s -k "$KC_PASS" Keys.keychain
|
||||||
|
fi
|
||||||
|
|
||||||
|
ART_DIR="$PROJECT_ROOT/Builds/xcode/${PLUGIN}_artefacts/Release"
|
||||||
|
|
||||||
|
cd "$PROJECT_ROOT"
|
||||||
|
cmake --preset xcode
|
||||||
|
cmake --build --preset xcode --config Release
|
||||||
|
|
||||||
|
STAGE="$PROJECT_ROOT/installer/macOS/bin/stage"
|
||||||
|
PKG_DIR="$PROJECT_ROOT/installer/macOS/bin/pkgs"
|
||||||
|
rm -Rf "$STAGE" "$PKG_DIR"
|
||||||
|
mkdir -p "$STAGE/vst" "$STAGE/vst3" "$STAGE/au" "$STAGE/clap"
|
||||||
|
mkdir -p "$STAGE/resources/Library/Audio/Presets/$VENDOR/$PLUGIN"
|
||||||
|
mkdir -p "$PKG_DIR"
|
||||||
|
|
||||||
|
cp -RL "$ART_DIR/VST/$PLUGIN.vst" "$STAGE/vst/"
|
||||||
|
cp -RL "$ART_DIR/VST3/$PLUGIN.vst3" "$STAGE/vst3/"
|
||||||
|
cp -RL "$ART_DIR/AU/$PLUGIN.component" "$STAGE/au/"
|
||||||
|
cp -RL "$ART_DIR/CLAP/$PLUGIN.clap" "$STAGE/clap/"
|
||||||
|
|
||||||
|
# Resources component: factory Wavetables and Presets (presets flattened above)
|
||||||
|
mkdir -p "$STAGE/resources/Library/Audio/Presets/$VENDOR/$PLUGIN/Presets"
|
||||||
|
cp "$FLAT_PRESETS/"*.xml "$STAGE/resources/Library/Audio/Presets/$VENDOR/$PLUGIN/Presets/"
|
||||||
|
cp -R "$PROJECT_ROOT/plugin/Resources/WavetablesFLAC" "$STAGE/resources/Library/Audio/Presets/$VENDOR/$PLUGIN/Wavetables"
|
||||||
|
find "$STAGE/resources" -name ".DS_Store" -delete
|
||||||
|
|
||||||
|
# Strip symbols from the shipped binaries so end-user crash logs are NOT
|
||||||
|
# symbolicated locally by macOS — the server symbolicates them from the dSYMs
|
||||||
|
# (built below from the unstripped products in $ART_DIR). strip preserves the
|
||||||
|
# Mach-O UUID, so the dSYM still matches. Before codesign.
|
||||||
|
strip -x "$STAGE/vst/$PLUGIN.vst/Contents/MacOS/$PLUGIN"
|
||||||
|
strip -x "$STAGE/vst3/$PLUGIN.vst3/Contents/MacOS/$PLUGIN"
|
||||||
|
strip -x "$STAGE/au/$PLUGIN.component/Contents/MacOS/$PLUGIN"
|
||||||
|
strip -x "$STAGE/clap/$PLUGIN.clap/Contents/MacOS/$PLUGIN"
|
||||||
|
|
||||||
|
if [ -n "${APPLICATION:-}" ]; then
|
||||||
|
codesign -s "$DEV_APP_ID" --options=runtime --timestamp --force -v "$STAGE/vst/$PLUGIN.vst"
|
||||||
|
codesign -s "$DEV_APP_ID" --options=runtime --timestamp --force -v "$STAGE/vst3/$PLUGIN.vst3"
|
||||||
|
codesign -s "$DEV_APP_ID" --options=runtime --timestamp --force -v "$STAGE/au/$PLUGIN.component"
|
||||||
|
codesign -s "$DEV_APP_ID" --options=runtime --timestamp --force -v "$STAGE/clap/$PLUGIN.clap"
|
||||||
|
else
|
||||||
|
echo "Skipping codesign — APPLICATION secret not set"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Component packages
|
||||||
|
pkgbuild --root "$STAGE/vst" \
|
||||||
|
--install-location "/Library/Audio/Plug-Ins/VST" \
|
||||||
|
--identifier "${BUNDLE_BASE}.vst.pkg" \
|
||||||
|
--version "$VERSION" \
|
||||||
|
"$PKG_DIR/vst.pkg"
|
||||||
|
|
||||||
|
pkgbuild --root "$STAGE/vst3" \
|
||||||
|
--install-location "/Library/Audio/Plug-Ins/VST3" \
|
||||||
|
--identifier "${BUNDLE_BASE}.vst3.pkg" \
|
||||||
|
--version "$VERSION" \
|
||||||
|
"$PKG_DIR/vst3.pkg"
|
||||||
|
|
||||||
|
pkgbuild --root "$STAGE/au" \
|
||||||
|
--install-location "/Library/Audio/Plug-Ins/Components" \
|
||||||
|
--identifier "${BUNDLE_BASE}.au.pkg" \
|
||||||
|
--version "$VERSION" \
|
||||||
|
"$PKG_DIR/au.pkg"
|
||||||
|
|
||||||
|
pkgbuild --root "$STAGE/clap" \
|
||||||
|
--install-location "/Library/Audio/Plug-Ins/CLAP" \
|
||||||
|
--identifier "${BUNDLE_BASE}.clap.pkg" \
|
||||||
|
--version "$VERSION" \
|
||||||
|
"$PKG_DIR/clap.pkg"
|
||||||
|
|
||||||
|
pkgbuild --root "$STAGE/resources" \
|
||||||
|
--install-location "/" \
|
||||||
|
--identifier "${BUNDLE_BASE}.resources.pkg" \
|
||||||
|
--version "$VERSION" \
|
||||||
|
--scripts "$PROJECT_ROOT/installer/macOS/scripts" \
|
||||||
|
"$PKG_DIR/resources.pkg"
|
||||||
|
|
||||||
|
# CrashReporter component: latest signed CrashReporter.app + this plugin's
|
||||||
|
# registration JSON. Staged under .incoming and promoted by the postinstall
|
||||||
|
# only if strictly newer (shared component, never downgraded).
|
||||||
|
REP_STAGE="$PROJECT_ROOT/installer/macOS/bin/reporter"
|
||||||
|
REP_ROOT="$REP_STAGE/Library/Application Support/Rabien Software/Crash Reporter"
|
||||||
|
rm -Rf "$REP_STAGE"
|
||||||
|
mkdir -p "$REP_ROOT/Plugins" "$REP_ROOT/.incoming"
|
||||||
|
if fetch_reporter mac "$REP_STAGE/CrashReporter_Mac.zip"; then
|
||||||
|
( cd "$REP_STAGE" && unzip -qo CrashReporter_Mac.zip && rm CrashReporter_Mac.zip )
|
||||||
|
mv "$REP_STAGE/CrashReporter.app" "$REP_ROOT/.incoming/"
|
||||||
|
fi
|
||||||
|
cp "$PROJECT_ROOT/installer/crashreporter.json" "$REP_ROOT/Plugins/wavetable.json"
|
||||||
|
find "$REP_STAGE" -name ".DS_Store" -delete
|
||||||
|
|
||||||
|
if [ -n "${APPLICATION:-}" ] && [ -d "$REP_ROOT/.incoming/CrashReporter.app" ]; then
|
||||||
|
codesign -s "$DEV_APP_ID" --options=runtime --timestamp --force -v "$REP_ROOT/.incoming/CrashReporter.app"
|
||||||
|
fi
|
||||||
|
|
||||||
|
chmod +x "$PROJECT_ROOT/installer/macOS/reporter-scripts/postinstall"
|
||||||
|
|
||||||
|
# Disable bundle relocation so the installer installs to our staged path
|
||||||
|
# instead of redirecting to a CrashReporter.app found elsewhere via Spotlight.
|
||||||
|
COMP_PLIST="$PROJECT_ROOT/installer/macOS/bin/reporter-component.plist"
|
||||||
|
pkgbuild --analyze --root "$REP_STAGE" "$COMP_PLIST"
|
||||||
|
/usr/libexec/PlistBuddy -c "Set :0:BundleIsRelocatable false" "$COMP_PLIST" 2>/dev/null || true
|
||||||
|
|
||||||
|
pkgbuild --root "$REP_STAGE" --install-location "/" \
|
||||||
|
--identifier "${BUNDLE_BASE}.crashreporter.pkg" --version "$VERSION" \
|
||||||
|
--component-plist "$COMP_PLIST" \
|
||||||
|
--scripts "$PROJECT_ROOT/installer/macOS/reporter-scripts" \
|
||||||
|
"$PKG_DIR/reporter.pkg"
|
||||||
|
|
||||||
|
# productbuild — combine into one signed installer
|
||||||
|
cp "$PROJECT_ROOT/installer/EULA.rtf" "$PKG_DIR/EULA.rtf"
|
||||||
|
cp "$PROJECT_ROOT/installer/macOS/welcome.txt" "$PKG_DIR/welcome.txt"
|
||||||
|
|
||||||
|
PKG_OUT="$PROJECT_ROOT/installer/macOS/bin/${PLUGIN}.pkg"
|
||||||
|
|
||||||
|
productbuild --distribution "$PROJECT_ROOT/installer/macOS/distribution.xml" \
|
||||||
|
--package-path "$PKG_DIR" \
|
||||||
|
--resources "$PKG_DIR" \
|
||||||
|
--version "$VERSION" \
|
||||||
|
"$PKG_OUT.unsigned"
|
||||||
|
|
||||||
|
if [ -n "${INSTALLER:-}" ]; then
|
||||||
|
productsign --sign "$DEV_INST_ID" "$PKG_OUT.unsigned" "$PKG_OUT"
|
||||||
|
rm "$PKG_OUT.unsigned"
|
||||||
|
else
|
||||||
|
echo "Skipping productsign — INSTALLER secret not set"
|
||||||
|
mv "$PKG_OUT.unsigned" "$PKG_OUT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "${APPLE_USER:-}" ] && [ -n "${APPLE_PASS:-}" ]; then
|
||||||
|
SUBMISSION_OUTPUT=$(xcrun notarytool submit --verbose --apple-id "$APPLE_USER" --password "$APPLE_PASS" --team-id "$TEAM_ID" --wait --timeout 30m "$PKG_OUT" 2>&1) || NOTARY_FAILED=1
|
||||||
|
echo "$SUBMISSION_OUTPUT"
|
||||||
|
SUBMISSION_ID=$(echo "$SUBMISSION_OUTPUT" | awk "/^ id:/ { print \$2; exit }")
|
||||||
|
if [ "${NOTARY_FAILED:-0}" = "1" ] && [ -n "$SUBMISSION_ID" ]; then
|
||||||
|
echo "Notarization failed — fetching log for $SUBMISSION_ID"
|
||||||
|
xcrun notarytool log "$SUBMISSION_ID" --apple-id "$APPLE_USER" --password "$APPLE_PASS" --team-id "$TEAM_ID" || true
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
xcrun stapler staple "$PKG_OUT"
|
||||||
|
else
|
||||||
|
echo "Skipping notarization — APPLE_USER / APPLE_PASS not set"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp "$PKG_OUT" "$PROJECT_ROOT/bin/"
|
||||||
|
|
||||||
|
# Symbols zip. Some Xcode/CMake combos don't emit .dSYMs next to the product,
|
||||||
|
# so generate any that are missing straight from the built binaries.
|
||||||
|
for pair in "VST:$PLUGIN.vst" "VST3:$PLUGIN.vst3" "AU:$PLUGIN.component" "CLAP:$PLUGIN.clap"; do
|
||||||
|
d="${pair%%:*}"; b="${pair#*:}"
|
||||||
|
dsym="$ART_DIR/$d/$b.dSYM"
|
||||||
|
bin="$ART_DIR/$d/$b/Contents/MacOS/$PLUGIN"
|
||||||
|
if [ ! -d "$dsym" ] && [ -f "$bin" ]; then
|
||||||
|
echo "Generating dSYM for $d/$b"
|
||||||
|
dsymutil "$bin" -o "$dsym" || true
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
cd "$ART_DIR"
|
||||||
|
zip -r "$PROJECT_ROOT/bin/Symbols_Mac.zip" \
|
||||||
|
AU/$PLUGIN.component.dSYM \
|
||||||
|
VST/$PLUGIN.vst.dSYM \
|
||||||
|
VST3/$PLUGIN.vst3.dSYM \
|
||||||
|
CLAP/$PLUGIN.clap.dSYM 2>/dev/null || true
|
||||||
|
|
||||||
|
############################################################
|
||||||
|
# Linux — cpack DEB (VST + VST3 + LV2 + CLAP + Resources)
|
||||||
|
############################################################
|
||||||
|
elif [ "$PLATFORM" = "linux" ]; then
|
||||||
|
cd "$PROJECT_ROOT"
|
||||||
|
cmake --preset ninja-gcc
|
||||||
|
cmake --build --preset ninja-gcc --config Release
|
||||||
|
|
||||||
|
cd "$PROJECT_ROOT/Builds/ninja-gcc"
|
||||||
|
cpack -G DEB -C Release
|
||||||
|
|
||||||
|
cp "$PROJECT_ROOT/Builds/ninja-gcc/"*.deb "$PROJECT_ROOT/bin/"
|
||||||
|
|
||||||
|
############################################################
|
||||||
|
# Windows — Inno Setup + Azure Trusted Signing
|
||||||
|
############################################################
|
||||||
|
else
|
||||||
|
cd "$PROJECT_ROOT"
|
||||||
|
cmake --preset vs
|
||||||
|
cmake --build --preset vs --config Release
|
||||||
|
|
||||||
|
ART_DIR="$PROJECT_ROOT/Builds/vs/${PLUGIN}_artefacts/Release"
|
||||||
|
STAGE="$PROJECT_ROOT/installer/win/bin"
|
||||||
|
|
||||||
|
rm -Rf "$STAGE"
|
||||||
|
mkdir -p "$STAGE/VST" "$STAGE/VST3" "$STAGE/CLAP"
|
||||||
|
cp -R "$ART_DIR/VST/$PLUGIN.dll" "$STAGE/VST/"
|
||||||
|
cp -R "$ART_DIR/VST3/$PLUGIN.vst3" "$STAGE/VST3/"
|
||||||
|
cp -R "$ART_DIR/CLAP/$PLUGIN.clap" "$STAGE/CLAP/"
|
||||||
|
|
||||||
|
# CrashReporter: latest signed build + this plugin's registration JSON.
|
||||||
|
REP_DIR="$STAGE/CrashReporter"
|
||||||
|
rm -Rf "$REP_DIR"; mkdir -p "$REP_DIR"
|
||||||
|
if fetch_reporter win "$REP_DIR/CrashReporter_Win.zip"; then
|
||||||
|
( cd "$REP_DIR" && 7z x -y CrashReporter_Win.zip >/dev/null && rm CrashReporter_Win.zip )
|
||||||
|
fi
|
||||||
|
cp "$PROJECT_ROOT/installer/crashreporter.json" "$REP_DIR/wavetable.json"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Sign binaries via Microsoft Trusted Signing.
|
||||||
|
# Required env: AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET.
|
||||||
|
# Cert is referenced via installer/win/metadata.json.
|
||||||
|
#
|
||||||
|
uuid_re='^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$'
|
||||||
|
WIN_SIGN=0
|
||||||
|
if [ -n "${AZURE_TENANT_ID:-}" ] || [ -n "${AZURE_CLIENT_ID:-}" ] || [ -n "${AZURE_CLIENT_SECRET:-}" ]; then
|
||||||
|
if [[ ! "${AZURE_TENANT_ID:-}" =~ $uuid_re ]]; then
|
||||||
|
echo "ERROR: AZURE_TENANT_ID is not a valid GUID — set the secret on the repo or unset all three to skip signing."; exit 1
|
||||||
|
elif [[ ! "${AZURE_CLIENT_ID:-}" =~ $uuid_re ]]; then
|
||||||
|
echo "ERROR: AZURE_CLIENT_ID is not a valid GUID — set the secret on the repo or unset all three to skip signing."; exit 1
|
||||||
|
elif [ -z "${AZURE_CLIENT_SECRET:-}" ]; then
|
||||||
|
echo "ERROR: AZURE_CLIENT_SECRET is empty — set the secret on the repo or unset all three to skip signing."; exit 1
|
||||||
|
else
|
||||||
|
WIN_SIGN=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$WIN_SIGN" = "1" ]; then
|
||||||
|
# Locate signtool — the version dir under Windows Kits varies by runner image.
|
||||||
|
SIGNTOOL=$(ls -1 "/c/Program Files (x86)/Windows Kits/10/bin/"*/x64/signtool.exe 2>/dev/null | sort | tail -1)
|
||||||
|
if [ -z "$SIGNTOOL" ]; then
|
||||||
|
echo "signtool.exe not found in Windows Kits"; exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
TOOLS_DIR="$STAGE/_signingtools"
|
||||||
|
mkdir -p "$TOOLS_DIR"
|
||||||
|
nuget install Microsoft.Trusted.Signing.Client -Version 1.0.86 \
|
||||||
|
-OutputDirectory "$TOOLS_DIR" -ExcludeVersion -NonInteractive
|
||||||
|
DLIB="$TOOLS_DIR/Microsoft.Trusted.Signing.Client/bin/x64/Azure.CodeSigning.Dlib.dll"
|
||||||
|
METADATA="$PROJECT_ROOT/installer/win/metadata.json"
|
||||||
|
|
||||||
|
sign_file () {
|
||||||
|
"$SIGNTOOL" sign -v -fd SHA256 \
|
||||||
|
-tr "http://timestamp.acs.microsoft.com" -td SHA256 \
|
||||||
|
-dlib "$DLIB" -dmdf "$METADATA" "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
sign_file "$STAGE/VST/$PLUGIN.dll"
|
||||||
|
sign_file "$STAGE/VST3/$PLUGIN.vst3/Contents/x86_64-win/$PLUGIN.vst3"
|
||||||
|
sign_file "$STAGE/CLAP/$PLUGIN.clap"
|
||||||
|
else
|
||||||
|
echo "Skipping Windows binary signing — Azure secrets not set"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Build installer .exe
|
||||||
|
cd "$PROJECT_ROOT/installer/win"
|
||||||
|
ISCC="/c/Program Files (x86)/Inno Setup 6/ISCC.exe"
|
||||||
|
if [ ! -f "$ISCC" ]; then
|
||||||
|
ISCC="/c/Program Files/Inno Setup 6/ISCC.exe"
|
||||||
|
fi
|
||||||
|
"$ISCC" "$PROJECT_ROOT/installer/win/${PLUGIN}.iss"
|
||||||
|
|
||||||
|
EXE_OUT="$PROJECT_ROOT/installer/win/bin/${PLUGIN}.exe"
|
||||||
|
|
||||||
|
# Sign installer
|
||||||
|
if [ "$WIN_SIGN" = "1" ]; then
|
||||||
|
sign_file "$EXE_OUT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp "$EXE_OUT" "$PROJECT_ROOT/bin/"
|
||||||
|
|
||||||
|
# Symbols zip — PDBs for crash symbolication.
|
||||||
|
SYM_DIR="$STAGE/symbols"
|
||||||
|
rm -Rf "$SYM_DIR"; mkdir -p "$SYM_DIR/VST" "$SYM_DIR/VST3" "$SYM_DIR/CLAP"
|
||||||
|
cp "$ART_DIR/VST/$PLUGIN.pdb" "$SYM_DIR/VST/" 2>/dev/null || true
|
||||||
|
cp "$ART_DIR/VST3/$PLUGIN.pdb" "$SYM_DIR/VST3/" 2>/dev/null || true
|
||||||
|
cp "$ART_DIR/CLAP/$PLUGIN.pdb" "$SYM_DIR/CLAP/" 2>/dev/null || true
|
||||||
|
( cd "$SYM_DIR" && 7z a "$PROJECT_ROOT/bin/Symbols_Win.zip" VST VST3 CLAP )
|
||||||
|
fi
|
||||||
6
Installer/crashreporter.json
Normal file
6
Installer/crashreporter.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"name": "Wavetable",
|
||||||
|
"pluginID": "com.socalabs.wavetable",
|
||||||
|
"crashUrl": "https://crashreports.rabiensoftware.com/post/",
|
||||||
|
"apiKey": "da8b3bc4e5fcb9b5ba8b5960d0ef805b62d4097b956082c87fcf82cab40cc2c8"
|
||||||
|
}
|
||||||
661
Installer/eula.md
Normal file
661
Installer/eula.md
Normal file
|
|
@ -0,0 +1,661 @@
|
||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works, specifically designed to ensure
|
||||||
|
cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
our General Public Licenses are intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
Developers that use our General Public Licenses protect your rights
|
||||||
|
with two steps: (1) assert copyright on the software, and (2) offer
|
||||||
|
you this License which gives you legal permission to copy, distribute
|
||||||
|
and/or modify the software.
|
||||||
|
|
||||||
|
A secondary benefit of defending all users' freedom is that
|
||||||
|
improvements made in alternate versions of the program, if they
|
||||||
|
receive widespread use, become available for other developers to
|
||||||
|
incorporate. Many developers of free software are heartened and
|
||||||
|
encouraged by the resulting cooperation. However, in the case of
|
||||||
|
software used on network servers, this result may fail to come about.
|
||||||
|
The GNU General Public License permits making a modified version and
|
||||||
|
letting the public access it on a server without ever releasing its
|
||||||
|
source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to
|
||||||
|
ensure that, in such cases, the modified source code becomes available
|
||||||
|
to the community. It requires the operator of a network server to
|
||||||
|
provide the source code of the modified version running there to the
|
||||||
|
users of that server. Therefore, public use of a modified version, on
|
||||||
|
a publicly accessible server, gives the public access to the source
|
||||||
|
code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and
|
||||||
|
published by Affero, was designed to accomplish similar goals. This is
|
||||||
|
a different license, not a version of the Affero GPL, but Affero has
|
||||||
|
released a new version of the Affero GPL which permits relicensing under
|
||||||
|
this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the
|
||||||
|
Program, your modified version must prominently offer all users
|
||||||
|
interacting with it remotely through a computer network (if your version
|
||||||
|
supports such interaction) an opportunity to receive the Corresponding
|
||||||
|
Source of your version by providing access to the Corresponding Source
|
||||||
|
from a network server at no charge, through some standard or customary
|
||||||
|
means of facilitating copying of software. This Corresponding Source
|
||||||
|
shall include the Corresponding Source for any work covered by version 3
|
||||||
|
of the GNU General Public License that is incorporated pursuant to the
|
||||||
|
following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the work with which it is combined will remain governed by version
|
||||||
|
3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU Affero General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU Affero General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU Affero General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU Affero General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer
|
||||||
|
network, you should also make sure that it provides a way for users to
|
||||||
|
get its source. For example, if your program is a web application, its
|
||||||
|
interface could display a "Source" link that leads users to an archive
|
||||||
|
of the code. There are many ways you could offer source, and different
|
||||||
|
solutions will be better for different programs; see section 13 for the
|
||||||
|
specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||||
|
<https://www.gnu.org/licenses/>.
|
||||||
71
Installer/macOS/distribution.xml
Normal file
71
Installer/macOS/distribution.xml
Normal file
|
|
@ -0,0 +1,71 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<installer-gui-script minSpecVersion="2">
|
||||||
|
<title>Wavetable</title>
|
||||||
|
<organization>com.socalabs</organization>
|
||||||
|
<domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
|
||||||
|
<options customize="always" require-scripts="false" rootVolumeOnly="true"/>
|
||||||
|
<license file="EULA.rtf"/>
|
||||||
|
<welcome file="welcome.txt" mime-type="text/plain"/>
|
||||||
|
|
||||||
|
<choices-outline>
|
||||||
|
<line choice="com.socalabs.wavetable.vst"/>
|
||||||
|
<line choice="com.socalabs.wavetable.vst3"/>
|
||||||
|
<line choice="com.socalabs.wavetable.au"/>
|
||||||
|
<line choice="com.socalabs.wavetable.clap"/>
|
||||||
|
<line choice="com.socalabs.wavetable.resources"/>
|
||||||
|
<line choice="com.socalabs.wavetable.crashreporter"/>
|
||||||
|
</choices-outline>
|
||||||
|
|
||||||
|
<choice id="com.socalabs.wavetable.vst"
|
||||||
|
title="VST"
|
||||||
|
description="Install the VST plug-in to /Library/Audio/Plug-Ins/VST"
|
||||||
|
visible="true">
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.vst.pkg"/>
|
||||||
|
</choice>
|
||||||
|
|
||||||
|
<choice id="com.socalabs.wavetable.vst3"
|
||||||
|
title="VST3"
|
||||||
|
description="Install the VST3 plug-in to /Library/Audio/Plug-Ins/VST3"
|
||||||
|
visible="true">
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.vst3.pkg"/>
|
||||||
|
</choice>
|
||||||
|
|
||||||
|
<choice id="com.socalabs.wavetable.au"
|
||||||
|
title="Audio Unit"
|
||||||
|
description="Install the Audio Unit plug-in to /Library/Audio/Plug-Ins/Components"
|
||||||
|
visible="true">
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.au.pkg"/>
|
||||||
|
</choice>
|
||||||
|
|
||||||
|
<choice id="com.socalabs.wavetable.clap"
|
||||||
|
title="CLAP"
|
||||||
|
description="Install the CLAP plug-in to /Library/Audio/Plug-Ins/CLAP"
|
||||||
|
visible="true">
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.clap.pkg"/>
|
||||||
|
</choice>
|
||||||
|
|
||||||
|
<choice id="com.socalabs.wavetable.resources"
|
||||||
|
title="Factory Wavetables & Presets"
|
||||||
|
description="Install factory content to /Library/Audio/Presets/SocaLabs/Wavetable"
|
||||||
|
visible="true"
|
||||||
|
enabled="false"
|
||||||
|
selected="true">
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.resources.pkg"/>
|
||||||
|
</choice>
|
||||||
|
|
||||||
|
<choice id="com.socalabs.wavetable.crashreporter"
|
||||||
|
title="Crash Reporter"
|
||||||
|
description="Install the shared crash reporter that sends crash reports to SocaLabs. Recommended; only updated if newer."
|
||||||
|
visible="true"
|
||||||
|
enabled="true"
|
||||||
|
selected="true">
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.crashreporter.pkg"/>
|
||||||
|
</choice>
|
||||||
|
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.vst.pkg" version="0">vst.pkg</pkg-ref>
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.vst3.pkg" version="0">vst3.pkg</pkg-ref>
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.au.pkg" version="0">au.pkg</pkg-ref>
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.clap.pkg" version="0">clap.pkg</pkg-ref>
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.resources.pkg" version="0">resources.pkg</pkg-ref>
|
||||||
|
<pkg-ref id="com.socalabs.wavetable.crashreporter.pkg" version="0">reporter.pkg</pkg-ref>
|
||||||
|
</installer-gui-script>
|
||||||
38
Installer/macOS/reporter-scripts/postinstall
Executable file
38
Installer/macOS/reporter-scripts/postinstall
Executable file
|
|
@ -0,0 +1,38 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# CrashReporter is a SHARED component across all SocaLabs/Rabien plugins, so we
|
||||||
|
# never downgrade it and never remove it. The pkg payload stages the incoming
|
||||||
|
# app under .incoming; here we promote it to the live location only if it is
|
||||||
|
# strictly newer than what's already installed (or nothing is installed yet).
|
||||||
|
#
|
||||||
|
set -e
|
||||||
|
|
||||||
|
BASE="/Library/Application Support/Rabien Software/Crash Reporter"
|
||||||
|
NEW="$BASE/.incoming/CrashReporter.app"
|
||||||
|
LIVE="$BASE/CrashReporter.app"
|
||||||
|
PB="/usr/libexec/PlistBuddy"
|
||||||
|
|
||||||
|
version_of () { # $1 = .app path -> prints CFBundleShortVersionString or 0
|
||||||
|
if [ -d "$1" ]; then
|
||||||
|
"$PB" -c "Print :CFBundleShortVersionString" "$1/Contents/Info.plist" 2>/dev/null || echo 0
|
||||||
|
else
|
||||||
|
echo 0
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -d "$NEW" ]; then
|
||||||
|
newver="$(version_of "$NEW")"
|
||||||
|
livever="$(version_of "$LIVE")"
|
||||||
|
|
||||||
|
# Promote if nothing installed, or the incoming build is strictly newer.
|
||||||
|
highest="$(printf '%s\n%s\n' "$livever" "$newver" | sort -V | tail -1)"
|
||||||
|
if [ ! -d "$LIVE" ] || { [ "$highest" = "$newver" ] && [ "$newver" != "$livever" ]; }; then
|
||||||
|
rm -rf "$LIVE"
|
||||||
|
mv "$NEW" "$LIVE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Always clear the staging area.
|
||||||
|
rm -rf "$BASE/.incoming"
|
||||||
|
|
||||||
|
exit 0
|
||||||
6
Installer/macOS/scripts/postinstall
Executable file
6
Installer/macOS/scripts/postinstall
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Force the AU host registrar to rescan so the freshly installed Component is
|
||||||
|
# visible without a logout/reboot.
|
||||||
|
killall -9 AudioComponentRegistrar >/dev/null 2>&1
|
||||||
|
|
||||||
|
exit 0
|
||||||
14
Installer/macOS/scripts/preinstall
Executable file
14
Installer/macOS/scripts/preinstall
Executable file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Remove any prior install of Wavetable so the new bundle takes its place cleanly.
|
||||||
|
|
||||||
|
rm -Rf "/Library/Audio/Plug-Ins/VST/Wavetable.vst"
|
||||||
|
rm -Rf "/Library/Audio/Plug-Ins/VST3/Wavetable.vst3"
|
||||||
|
rm -Rf "/Library/Audio/Plug-Ins/Components/Wavetable.component"
|
||||||
|
rm -Rf "/Library/Audio/Plug-Ins/CLAP/Wavetable.clap"
|
||||||
|
|
||||||
|
# Wipe the previous shipped factory content so removed wavetables/presets from
|
||||||
|
# the old version don't linger. User content lives under ~/Library and is left alone.
|
||||||
|
rm -Rf "/Library/Audio/Presets/SocaLabs/Wavetable/Presets"
|
||||||
|
rm -Rf "/Library/Audio/Presets/SocaLabs/Wavetable/Wavetables"
|
||||||
|
|
||||||
|
exit 0
|
||||||
17
Installer/macOS/welcome.txt
Normal file
17
Installer/macOS/welcome.txt
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
Wavetable by SocaLabs
|
||||||
|
=====================
|
||||||
|
|
||||||
|
This installer places the Wavetable plug-in in your system audio plug-in
|
||||||
|
folders along with the factory wavetable bank and factory presets.
|
||||||
|
|
||||||
|
Components:
|
||||||
|
• VST /Library/Audio/Plug-Ins/VST
|
||||||
|
• VST3 /Library/Audio/Plug-Ins/VST3
|
||||||
|
• Audio Unit /Library/Audio/Plug-Ins/Components
|
||||||
|
• CLAP /Library/Audio/Plug-Ins/CLAP
|
||||||
|
• Factory content /Library/Audio/Presets/SocaLabs/Wavetable
|
||||||
|
|
||||||
|
User-saved presets live under
|
||||||
|
~/Library/Audio/Presets/SocaLabs/Wavetable
|
||||||
|
|
||||||
|
and are not touched by this installer.
|
||||||
84
Installer/win/Wavetable.iss
Normal file
84
Installer/win/Wavetable.iss
Normal file
|
|
@ -0,0 +1,84 @@
|
||||||
|
; Wavetable installer (Inno Setup)
|
||||||
|
|
||||||
|
#define MyAppName "Wavetable"
|
||||||
|
#define MyAppCompany "SocaLabs"
|
||||||
|
#define MyAppPublisher "SocaLabs"
|
||||||
|
#define MyAppCopyright "2026 SocaLabs"
|
||||||
|
#define MyAppURL "https://socalabs.com/"
|
||||||
|
#define MyAppVersion GetStringFileInfo("bin\VST3\Wavetable.vst3\Contents\x86_64-win\Wavetable.vst3", "ProductVersion")
|
||||||
|
#define MyDefaultDirName "{commoncf64}\VST3"
|
||||||
|
|
||||||
|
[Setup]
|
||||||
|
AppID={{FB36B27A-9328-4438-8612-3B4E73021845}
|
||||||
|
AppName={#MyAppCompany} {#MyAppName} {#MyAppVersion}
|
||||||
|
AppVerName={#MyAppCompany} {#MyAppName} {#MyAppVersion}
|
||||||
|
AppVersion={#MyAppVersion}
|
||||||
|
AppCopyright={#MyAppCopyright}
|
||||||
|
AppPublisher={#MyAppPublisher}
|
||||||
|
AppPublisherURL={#MyAppURL}
|
||||||
|
AppSupportURL={#MyAppURL}
|
||||||
|
AppUpdatesURL={#MyAppURL}
|
||||||
|
DefaultDirName={#MyDefaultDirName}
|
||||||
|
DisableProgramGroupPage=yes
|
||||||
|
OutputDir=.\bin
|
||||||
|
OutputBaseFilename=Wavetable
|
||||||
|
Compression=lzma/ultra
|
||||||
|
SolidCompression=true
|
||||||
|
ShowLanguageDialog=auto
|
||||||
|
LicenseFile=..\EULA.rtf
|
||||||
|
InternalCompressLevel=ultra
|
||||||
|
MinVersion=0,6.1.7600
|
||||||
|
FlatComponentsList=false
|
||||||
|
AppendDefaultDirName=false
|
||||||
|
AlwaysShowDirOnReadyPage=yes
|
||||||
|
DirExistsWarning=no
|
||||||
|
DisableDirPage=yes
|
||||||
|
DisableWelcomePage=no
|
||||||
|
DisableReadyPage=no
|
||||||
|
DisableReadyMemo=no
|
||||||
|
ArchitecturesAllowed=x64compatible
|
||||||
|
ArchitecturesInstallIn64BitMode=x64compatible
|
||||||
|
VersionInfoVersion={#MyAppVersion}
|
||||||
|
VersionInfoCompany={#MyAppPublisher}
|
||||||
|
VersionInfoCopyright={#MyAppCopyright}
|
||||||
|
VersionInfoProductName={#MyAppCompany} {#MyAppName} {#MyAppVersion} (64-bit)
|
||||||
|
VersionInfoProductVersion={#MyAppVersion}
|
||||||
|
VersionInfoProductTextVersion={#MyAppVersion}
|
||||||
|
UsePreviousGroup=False
|
||||||
|
Uninstallable=no
|
||||||
|
PrivilegesRequired=admin
|
||||||
|
|
||||||
|
[Languages]
|
||||||
|
Name: english; MessagesFile: compiler:Default.isl
|
||||||
|
|
||||||
|
[Components]
|
||||||
|
Name: "vst"; Description: "VST plug-in"; Types: full custom; Flags: checkablealone
|
||||||
|
Name: "vst3"; Description: "VST3 plug-in"; Types: full custom; Flags: checkablealone
|
||||||
|
Name: "clap"; Description: "CLAP plug-in"; Types: full custom; Flags: checkablealone
|
||||||
|
Name: "resources"; Description: "Factory wavetables and presets"; Types: full custom; Flags: fixed
|
||||||
|
Name: "crashreporter"; Description: "Crash reporter (shared component, only updated if newer)"; Types: full custom; Flags: checkablealone
|
||||||
|
|
||||||
|
[InstallDelete]
|
||||||
|
Type: files; Name: "{commoncf64}\VST2\Wavetable.dll"; Components: vst
|
||||||
|
Type: filesandordirs; Name: "{commoncf64}\VST3\Wavetable.vst3"; Components: vst3
|
||||||
|
Type: files; Name: "{commoncf64}\CLAP\Wavetable.clap"; Components: clap
|
||||||
|
Type: filesandordirs; Name: "{commonappdata}\SocaLabs\Wavetable\Presets"; Components: resources
|
||||||
|
Type: filesandordirs; Name: "{commonappdata}\SocaLabs\Wavetable\Wavetables"; Components: resources
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
; Plug-in formats
|
||||||
|
Source: "bin\VST\Wavetable.dll"; DestDir: "{commoncf64}\VST2"; Flags: ignoreversion overwritereadonly; Components: vst
|
||||||
|
Source: "bin\VST3\Wavetable.vst3\*"; DestDir: "{commoncf64}\VST3\Wavetable.vst3\"; Flags: ignoreversion overwritereadonly recursesubdirs; Components: vst3
|
||||||
|
Source: "bin\CLAP\Wavetable.clap"; DestDir: "{commoncf64}\CLAP"; Flags: ignoreversion overwritereadonly; Components: clap
|
||||||
|
|
||||||
|
; Factory content (Wavetables, Presets) → C:\ProgramData\SocaLabs\Wavetable\
|
||||||
|
; Presets are flattened by installer/build.sh into installer/_flat_presets/.
|
||||||
|
Source: "..\_flat_presets\*.xml"; DestDir: "{commonappdata}\SocaLabs\Wavetable\Presets\"; Flags: ignoreversion; Components: resources
|
||||||
|
Source: "..\..\plugin\Resources\WavetablesFLAC\*.wt2048"; DestDir: "{commonappdata}\SocaLabs\Wavetable\Wavetables\"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: resources
|
||||||
|
|
||||||
|
; CrashReporter app → C:\Program Files\Rabien Software\Crash Reporter, plus this
|
||||||
|
; plugin's registration JSON → C:\ProgramData\Rabien Software\Crash Reporter\Plugins.
|
||||||
|
; Shared across plugins: the app is only updated if newer and never removed on
|
||||||
|
; uninstall; the registration JSON is always installed and never removed.
|
||||||
|
Source: "bin\CrashReporter\CrashReporter.exe"; DestDir: "{commonpf}\Rabien Software\Crash Reporter"; Flags: skipifsourcedoesntexist uninsneveruninstall; Components: crashreporter
|
||||||
|
Source: "bin\CrashReporter\wavetable.json"; DestDir: "{commonappdata}\Rabien Software\Crash Reporter\Plugins"; Flags: ignoreversion uninsneveruninstall
|
||||||
5
Installer/win/metadata.json
Normal file
5
Installer/win/metadata.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"Endpoint": "https://wus.codesigning.azure.net/",
|
||||||
|
"CodeSigningAccountName": "Signing2025",
|
||||||
|
"CertificateProfileName": "rabien"
|
||||||
|
}
|
||||||
1
LICENSE
1
LICENSE
|
|
@ -27,3 +27,4 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
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
|
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.
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
|
||||||
346
README.md
346
README.md
|
|
@ -1,16 +1,344 @@
|
||||||
# Wavetable
|
# Wavetable - personal fork with some modifications
|
||||||
Wavetable VST3 / AU / LV2 plugin
|
|
||||||
|
|
||||||

|
A 2 oscillator wavetable synthesizer with flexible modulation options. See https://github.com/FigBug/Wavetable for the upstream code project and https://socalabs.com/synths/Wavetable/ for the product page.
|
||||||
|
|
||||||
A 2 oscillator wavetable synth with flexible modulation options.
|

|
||||||
|
|
||||||

|
## Features
|
||||||
|
|
||||||
[Download](https://github.com/FigBug/Wavetable/releases)
|
### Oscillators
|
||||||
|
- 2 wavetable oscillators with position, tune, fine tune, level, and pan controls
|
||||||
|
- Unison with up to 8 voices per oscillator, detune, and stereo spread
|
||||||
|
- Formant and bend controls for wavetable manipulation
|
||||||
|
- Load custom wavetables from WAV files (supports 256, 512, 1024, 2048 sample sizes)
|
||||||
|
- Sub oscillator with selectable waveforms
|
||||||
|
- Noise generator with multiple noise types
|
||||||
|
|
||||||
[Product page](https://socalabs.com/synths/Wavetable/)
|
### Filter
|
||||||
|
- Multi-mode filter (LP, HP, BP, Notch, etc.)
|
||||||
|
- Dedicated filter ADSR envelope
|
||||||
|
- Key tracking and velocity tracking
|
||||||
|
- Per-source routing (OSC1, OSC2, Sub, Noise)
|
||||||
|
|
||||||
My synth is BSD licensed, however it depends on JUCE. To use in a commercial application, you must have a JUCE license. Wavetables have their own license.
|
### Modulation
|
||||||
|
- 3 LFOs with sync-to-tempo option
|
||||||
|
- 3 modulation envelopes
|
||||||
|
- 32-step sequencer
|
||||||
|
- Comprehensive modulation matrix
|
||||||
|
- MPE support
|
||||||
|
|
||||||
|
### Effects
|
||||||
|
- Gate (16-step pattern sequencer)
|
||||||
|
- Chorus
|
||||||
|
- Distortion (Simple, Bitcrusher, Fire Amp, Grind Amp modes)
|
||||||
|
- Delay (free or tempo-synced)
|
||||||
|
- Reverb
|
||||||
|
|
||||||
|
### Global
|
||||||
|
- Mono/Poly modes
|
||||||
|
- Glide with legato option
|
||||||
|
- MTS-ESP microtuning support
|
||||||
|
|
||||||
|
## Formats
|
||||||
|
|
||||||
|
- VST3
|
||||||
|
- VST2 (requires VST2 SDK)
|
||||||
|
- AU (macOS)
|
||||||
|
- CLAP
|
||||||
|
- LV2
|
||||||
|
- Standalone
|
||||||
|
|
||||||
|
## System Requirements
|
||||||
|
|
||||||
|
- macOS 10.13 or later
|
||||||
|
- Windows 10 or later
|
||||||
|
- Linux (Ubuntu 20.04 or compatible)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Building on macOS (ARM64 / Apple Silicon)
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
- Xcode (with Command Line Tools)
|
||||||
|
- CMake 3.24+ (`brew install cmake`)
|
||||||
|
- Git
|
||||||
|
|
||||||
|
### Clone & Build
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone --recursive https://github.com/FigBug/Wavetable.git
|
||||||
|
cd Wavetable
|
||||||
|
|
||||||
|
# Configure (generates Xcode project, universal arm64 + x86_64)
|
||||||
|
cmake --preset xcode
|
||||||
|
|
||||||
|
# Build Release
|
||||||
|
cmake --build --preset xcode --config Release
|
||||||
|
```
|
||||||
|
|
||||||
|
Build products are in `Builds/xcode/Wavetable_artefacts/Release/`:
|
||||||
|
|
||||||
|
| Format | Path |
|
||||||
|
|--------|------|
|
||||||
|
| Standalone | `Standalone/Wavetable.app` |
|
||||||
|
| VST | `VST/Wavetable.vst` |
|
||||||
|
| VST3 | `VST3/Wavetable.vst3` |
|
||||||
|
| AU | `AU/Wavetable.component` |
|
||||||
|
| CLAP | `CLAP/Wavetable.clap` |
|
||||||
|
|
||||||
|
### Install via Installer (.pkg)
|
||||||
|
|
||||||
|
Build the signed/notarized installer (or unsigned for local use):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./installer/build.sh
|
||||||
|
# Output: installer/macOS/bin/Wavetable.pkg
|
||||||
|
```
|
||||||
|
|
||||||
|
Open `Wavetable.pkg` and follow the installer. It installs:
|
||||||
|
|
||||||
|
| Component | Install Location |
|
||||||
|
|-----------|-----------------|
|
||||||
|
| VST | `/Library/Audio/Plug-Ins/VST/` |
|
||||||
|
| VST3 | `/Library/Audio/Plug-Ins/VST3/` |
|
||||||
|
| AU | `/Library/Audio/Plug-Ins/Components/` |
|
||||||
|
| CLAP | `/Library/Audio/Plug-Ins/CLAP/` |
|
||||||
|
| Factory wavetables & presets | `/Library/Audio/Presets/SocaLabs/Wavetable/` |
|
||||||
|
|
||||||
|
### Install Manually (no installer)
|
||||||
|
|
||||||
|
Copy the built bundles to the system plugin directories:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# AU (Logic Pro, GarageBand)
|
||||||
|
cp -R Builds/xcode/Wavetable_artefacts/Release/AU/Wavetable.component \
|
||||||
|
~/Library/Audio/Plug-Ins/Components/
|
||||||
|
|
||||||
|
# VST3 (Ableton Live, Reaper, Bitwig, etc.)
|
||||||
|
cp -R Builds/xcode/Wavetable_artefacts/Release/VST3/Wavetable.vst3 \
|
||||||
|
~/Library/Audio/Plug-Ins/VST3/
|
||||||
|
|
||||||
|
# CLAP (Ableton Live 12+, Bitwig, Reaper)
|
||||||
|
cp -R Builds/xcode/Wavetable_artefacts/Release/CLAP/Wavetable.clap \
|
||||||
|
~/Library/Audio/Plug-Ins/CLAP/
|
||||||
|
|
||||||
|
# VST (legacy)
|
||||||
|
cp -R Builds/xcode/Wavetable_artefacts/Release/VST/Wavetable.vst \
|
||||||
|
~/Library/Audio/Plug-Ins/VST/
|
||||||
|
```
|
||||||
|
|
||||||
|
Install factory wavetables and presets:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir -p ~/Library/Audio/Presets/SocaLabs/Wavetable
|
||||||
|
cp -R plugin/Resources/WavetablesFLAC \
|
||||||
|
~/Library/Audio/Presets/SocaLabs/Wavetable/Wavetables
|
||||||
|
|
||||||
|
# Presets must be flattened (subdirectories are not scanned by the plugin)
|
||||||
|
find plugin/Resources/Presets -name "*.xml" -exec \
|
||||||
|
cp {} ~/Library/Audio/Presets/SocaLabs/Wavetable/ \;
|
||||||
|
```
|
||||||
|
|
||||||
|
After copying, rescan plugins in your DAW. For AU, you may need to log out and back in, or run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
killall -9 AudioComponentRegistrar
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Parameter Reference
|
||||||
|
|
||||||
|
### Oscillators
|
||||||
|
|
||||||
|
Two identical wavetable oscillators provide the main sound source.
|
||||||
|
|
||||||
|
| Parameter | Range | Description |
|
||||||
|
|-----------|-------|-------------|
|
||||||
|
| Enable | On/Off | Enable or disable the oscillator |
|
||||||
|
| Wavetable | - | Select from built-in wavetables or load custom WAV files |
|
||||||
|
| Tune | -36 to +36 semitones | Coarse pitch adjustment |
|
||||||
|
| Fine | -100 to +100 cents | Fine pitch adjustment |
|
||||||
|
| Level | -100 to 0 dB | Oscillator volume |
|
||||||
|
| Pos | 0-100% | Wavetable position - morphs through the wavetable frames |
|
||||||
|
| Pan | -100% to +100% | Stereo panning |
|
||||||
|
| Formant | -1.0 to +1.0 | Formant shifting for tonal variation |
|
||||||
|
| Bend | -1.0 to +1.0 | Pitch bend modulation amount |
|
||||||
|
| Voices | 1-8 | Number of unison voices |
|
||||||
|
| Detune | 0-0.5 | Pitch spread between unison voices (enabled when Voices > 1) |
|
||||||
|
| Spread | -100% to +100% | Stereo spread of unison voices (enabled when Voices > 1) |
|
||||||
|
| Retrig | On/Off | Retrigger oscillator phase on each new note |
|
||||||
|
|
||||||
|
**Tip:** Drag on the wavetable display to adjust the position in real-time.
|
||||||
|
|
||||||
|
### Sub-Oscillator
|
||||||
|
|
||||||
|
| Parameter | Range | Description |
|
||||||
|
|-----------|-------|-------------|
|
||||||
|
| Enable | On/Off | Enable or disable the sub-oscillator |
|
||||||
|
| Wave | Sine, Triangle, Saw Up, Pulse 50%, Pulse 25%, Pulse 12% | Waveform selection |
|
||||||
|
| Tune | -36 to +36 semitones | Pitch adjustment |
|
||||||
|
| Level | -100 to 0 dB | Volume |
|
||||||
|
| Pan | -100% to +100% | Stereo panning |
|
||||||
|
| Retrig | On/Off | Retrigger phase on new notes |
|
||||||
|
|
||||||
|
### Noise Generator
|
||||||
|
|
||||||
|
| Parameter | Range | Description |
|
||||||
|
|-----------|-------|-------------|
|
||||||
|
| Enable | On/Off | Enable or disable noise |
|
||||||
|
| Type | White, Pink | Noise color |
|
||||||
|
| Level | -100 to 0 dB | Volume |
|
||||||
|
| Pan | -100% to +100% | Stereo panning |
|
||||||
|
|
||||||
|
### Filter
|
||||||
|
|
||||||
|
Multi-mode filter with envelope control and key/velocity tracking.
|
||||||
|
|
||||||
|
**Filter Types:** LP 12, LP 24, HP 12, HP 24, BP 12, BP 24, NT 12, NT 24
|
||||||
|
|
||||||
|
| Parameter | Range | Description |
|
||||||
|
|-----------|-------|-------------|
|
||||||
|
| Enable | On/Off | Enable or disable the filter |
|
||||||
|
| Type | See above | Filter type selection |
|
||||||
|
| Frequency | 20 Hz - 20 kHz | Cutoff frequency |
|
||||||
|
| Resonance | 0-100% | Filter resonance/Q |
|
||||||
|
| Key | 0-100% | Keyboard tracking amount |
|
||||||
|
| Velocity | 0-100% | Velocity to filter frequency modulation |
|
||||||
|
| Amount | -1.0 to +1.0 | Filter envelope modulation depth |
|
||||||
|
|
||||||
|
**Filter Envelope:**
|
||||||
|
|
||||||
|
| Parameter | Range | Description |
|
||||||
|
|-----------|-------|-------------|
|
||||||
|
| Attack | 0-60 seconds | Attack time |
|
||||||
|
| Decay | 0-60 seconds | Decay time |
|
||||||
|
| Sustain | 0-100% | Sustain level |
|
||||||
|
| Release | 0-60 seconds | Release time |
|
||||||
|
| Retrig | On/Off | Retrigger envelope on new notes |
|
||||||
|
|
||||||
|
**Filter Routing:** Use the routing buttons (WT1, WT2, Sub, Noise) to select which sound sources are processed by the filter.
|
||||||
|
|
||||||
|
### Amplitude Envelope
|
||||||
|
|
||||||
|
| Parameter | Range | Description |
|
||||||
|
|-----------|-------|-------------|
|
||||||
|
| Attack | 0-60 seconds | Attack time |
|
||||||
|
| Decay | 0-60 seconds | Decay time |
|
||||||
|
| Sustain | 0-100% | Sustain level |
|
||||||
|
| Release | 0-60 seconds | Release time |
|
||||||
|
| Velocity | 0-100% | Velocity sensitivity |
|
||||||
|
| Retrig | On/Off | Retrigger on new notes (mono mode with glide only) |
|
||||||
|
|
||||||
|
### LFOs
|
||||||
|
|
||||||
|
Three independent LFOs with multiple waveforms.
|
||||||
|
|
||||||
|
**Waveforms:** None, Sine, Triangle, Saw Up, Saw Down, Square, Square+, Sample & Hold, Noise, Step Up (3/4/8 steps), Step Down (3/4/8 steps), Pyramid (3/5/9 steps)
|
||||||
|
|
||||||
|
| Parameter | Range | Description |
|
||||||
|
|-----------|-------|-------------|
|
||||||
|
| Enable | On/Off | Enable or disable the LFO |
|
||||||
|
| Wave | See above | Waveform selection |
|
||||||
|
| Sync | On/Off | Sync to host tempo |
|
||||||
|
| Rate | 0-50 Hz | LFO speed (when Sync is off) |
|
||||||
|
| Beat | Note values | LFO speed (when Sync is on) |
|
||||||
|
| Depth | -1.0 to +1.0 | Modulation amount |
|
||||||
|
| Phase | -1.0 to +1.0 | Starting phase offset |
|
||||||
|
| Offset | -1.0 to +1.0 | DC offset/center bias |
|
||||||
|
| Fade | -60 to +60 seconds | Fade in (positive) or fade out (negative) time |
|
||||||
|
| Delay | 0-60 seconds | Delay before LFO starts |
|
||||||
|
| Retrig | On/Off | Retrigger phase on new notes |
|
||||||
|
|
||||||
|
### Modulation Envelopes
|
||||||
|
|
||||||
|
Three independent ADSR envelopes for modulation.
|
||||||
|
|
||||||
|
| Parameter | Range | Description |
|
||||||
|
|-----------|-------|-------------|
|
||||||
|
| Enable | On/Off | Enable or disable the envelope |
|
||||||
|
| Attack | 0-60 seconds | Attack time |
|
||||||
|
| Decay | 0-60 seconds | Decay time |
|
||||||
|
| Sustain | 0-100% | Sustain level |
|
||||||
|
| Release | 0-60 seconds | Release time |
|
||||||
|
| Retrig | On/Off | Retrigger on new notes |
|
||||||
|
|
||||||
|
### Step LFO
|
||||||
|
|
||||||
|
A 32-step sequencer for rhythmic modulation.
|
||||||
|
|
||||||
|
| Parameter | Range | Description |
|
||||||
|
|-----------|-------|-------------|
|
||||||
|
| Enable | On/Off | Enable or disable |
|
||||||
|
| Beat | Note values | Step clock speed (tempo-synced) |
|
||||||
|
| Length | 2-32 steps | Number of active steps |
|
||||||
|
| Retrig | On/Off | Retrigger sequence on new notes |
|
||||||
|
| Steps 1-32 | -1.0 to +1.0 | Individual step values |
|
||||||
|
|
||||||
|
### Modulation Matrix
|
||||||
|
|
||||||
|
The mod matrix routes any modulation source to any parameter with flexible depth, curve shaping, and polarity controls.
|
||||||
|
|
||||||
|
**Source types:** Single ring = mono (global), double ring = poly (per-voice).
|
||||||
|
|
||||||
|
**MIDI sources:** Pitch Bend (mono), Note Number (poly), Velocity (poly), CC 1-120 (mono)
|
||||||
|
|
||||||
|
**MPE sources (when enabled):** Pressure (poly), Timbre (poly), Pitch Bend (poly)
|
||||||
|
|
||||||
|
**Internal sources:** LFO 1-3 poly/mono, Step LFO poly/mono, Filter Envelope, Mod Envelopes 1-3
|
||||||
|
|
||||||
|
**Assigning modulation:**
|
||||||
|
1. **Drag and Drop** - Drag a source icon from the mod source list onto any knob
|
||||||
|
2. **Learn Mode** - Click a source icon, then click a knob to assign
|
||||||
|
|
||||||
|
**Matrix panel controls:** Enable toggle, depth slider, bipolar button, curve button, delete button.
|
||||||
|
|
||||||
|
**Polarity:** Unipolar (0 to 1) or Bipolar (-1 to +1).
|
||||||
|
|
||||||
|
**Curves:** Linear, Quadratic (In/Out/In-Out), Sine (In/Out/In-Out), Exponential (In/Out/In-Out), plus inverted versions of all.
|
||||||
|
|
||||||
|
### Effects
|
||||||
|
|
||||||
|
Effects can be reordered by dragging.
|
||||||
|
|
||||||
|
**Gate:** Beat, Length (2-16 steps), Attack, Release, L/R step pattern
|
||||||
|
|
||||||
|
**Chorus:** Delay (0.1-30 ms), Rate (0.1-10 Hz), Depth (0.1-20 ms), Width, Mix
|
||||||
|
|
||||||
|
**Distortion:** Simple (Amount), Bitcrusher (Rate/Rez/Hard/Mix), Fire Amp (Gain/Tone/Output/Mix), Grind Amp (Gain/Tone/Output/Mix)
|
||||||
|
|
||||||
|
**Delay:** Sync, Time/Beat, Feedback, Crossfeed, Mix
|
||||||
|
|
||||||
|
**Reverb:** Size, Decay, Lowpass, Damping, Predelay, Mix
|
||||||
|
|
||||||
|
### Global Settings
|
||||||
|
|
||||||
|
| Parameter | Range | Description |
|
||||||
|
|-----------|-------|-------------|
|
||||||
|
| Level | -100 to 0 dB | Master output volume |
|
||||||
|
| Voices | 2-40 | Maximum polyphony |
|
||||||
|
| Mono | On/Off | Monophonic mode |
|
||||||
|
| Glide | Off, Glissando, Portamento | Pitch glide mode |
|
||||||
|
| Glide Time | 0.001-20 seconds | Glide duration |
|
||||||
|
| Legato | On/Off | Legato mode (mono only) |
|
||||||
|
| Pitch Bend | 0-48 semitones | MIDI pitch bend range |
|
||||||
|
| MPE | On/Off | Enable MPE support |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Tips & Tricks
|
||||||
|
|
||||||
|
1. **Rich Pads:** Use both oscillators with different wavetables, slight detune, and long filter envelope
|
||||||
|
2. **Punchy Basses:** Enable the sub-oscillator, use LP24 filter with short decay envelope
|
||||||
|
3. **Movement:** Modulate wavetable position with an LFO for evolving textures
|
||||||
|
4. **Rhythmic Effects:** Use the Step LFO or Gate effect for pulsing sounds
|
||||||
|
5. **Expression:** Enable MPE and map pressure/timbre to filter cutoff and wavetable position
|
||||||
|
6. **Layering:** Route oscillators differently through the filter for complex timbres
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
See the LICENSE file for license information.
|
||||||
|
|
||||||
Need additional features or help integrating, contact me for consulting services: https://rabiensoftware.com/
|
|
||||||
|
|
|
||||||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
||||||
1.0.25
|
1.0.34
|
||||||
|
|
|
||||||
124
ci/build.sh
124
ci/build.sh
|
|
@ -1,124 +0,0 @@
|
||||||
#!/bin/bash -e
|
|
||||||
set +x
|
|
||||||
|
|
||||||
PLUGIN="Wavetable"
|
|
||||||
|
|
||||||
# linux specific stiff
|
|
||||||
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install clang git ninja-build ladspa-sdk freeglut3-dev g++ libasound2-dev libcurl4-openssl-dev libfreetype6-dev libjack-jackd2-dev libx11-dev libxcomposite-dev libxcursor-dev libxinerama-dev libxrandr-dev mesa-common-dev webkit2gtk-4.0 juce-tools xvfb
|
|
||||||
fi
|
|
||||||
|
|
||||||
# mac specific stuff
|
|
||||||
if [ "$(uname)" == "Darwin" ]; then
|
|
||||||
# Create a temp keychain
|
|
||||||
if [ -n "$GITHUB_ACTIONS" ]; then
|
|
||||||
if [ -n "$APPLICATION" ]; then
|
|
||||||
echo "Create a keychain"
|
|
||||||
security create-keychain -p nr4aGPyz Keys.keychain
|
|
||||||
|
|
||||||
echo $APPLICATION | base64 -D -o /tmp/Application.p12
|
|
||||||
echo $INSTALLER | base64 -D -o /tmp/Installer.p12
|
|
||||||
|
|
||||||
security import /tmp/Application.p12 -t agg -k Keys.keychain -P aym9PKWB -A -T /usr/bin/codesign
|
|
||||||
security import /tmp/Installer.p12 -t agg -k Keys.keychain -P aym9PKWB -A -T /usr/bin/codesign
|
|
||||||
|
|
||||||
security list-keychains -s Keys.keychain
|
|
||||||
security default-keychain -s Keys.keychain
|
|
||||||
security unlock-keychain -p nr4aGPyz Keys.keychain
|
|
||||||
security set-keychain-settings -l -u -t 13600 Keys.keychain
|
|
||||||
security set-key-partition-list -S apple-tool:,apple: -s -k nr4aGPyz Keys.keychain
|
|
||||||
fi
|
|
||||||
DEV_APP_ID="Developer ID Application: Roland Rabien (3FS7DJDG38)"
|
|
||||||
DEV_INST_ID="Developer ID Installer: Roland Rabien (3FS7DJDG38)"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
ROOT=$(cd "$(dirname "$0")/.."; pwd)
|
|
||||||
cd "$ROOT"
|
|
||||||
echo "$ROOT"
|
|
||||||
|
|
||||||
BRANCH=${GITHUB_REF##*/}
|
|
||||||
echo "$BRANCH"
|
|
||||||
|
|
||||||
cd "$ROOT/ci"
|
|
||||||
rm -Rf bin
|
|
||||||
mkdir bin
|
|
||||||
|
|
||||||
# Build mac version
|
|
||||||
if [ "$(uname)" == "Darwin" ]; then
|
|
||||||
cd "$ROOT"
|
|
||||||
cmake --preset xcode
|
|
||||||
cmake --build --preset xcode --config Release
|
|
||||||
|
|
||||||
cp -R "$ROOT/Builds/xcode/${PLUGIN}_artefacts/Release/AU/$PLUGIN.component" "$ROOT/ci/bin"
|
|
||||||
cp -R "$ROOT/Builds/xcode/${PLUGIN}_artefacts/Release/VST/$PLUGIN.vst" "$ROOT/ci/bin"
|
|
||||||
cp -R "$ROOT/Builds/xcode/${PLUGIN}_artefacts/Release/VST3/$PLUGIN.vst3" "$ROOT/ci/bin"
|
|
||||||
|
|
||||||
cd "$ROOT/ci/bin"
|
|
||||||
if [ -n "$APPLICATION" ]; then
|
|
||||||
codesign -s "$DEV_APP_ID" -v $PLUGIN.vst --options=runtime --timestamp --force
|
|
||||||
codesign -s "$DEV_APP_ID" -v $PLUGIN.vst3 --options=runtime --timestamp --force
|
|
||||||
codesign -s "$DEV_APP_ID" -v $PLUGIN.component --options=runtime --timestamp --force
|
|
||||||
else
|
|
||||||
echo "Not signing"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Notarize
|
|
||||||
cd "$ROOT/ci/bin"
|
|
||||||
|
|
||||||
if [[ -n "$APPLE_USER" ]]; then
|
|
||||||
zip -r ${PLUGIN}_Mac.zip $PLUGIN.vst $PLUGIN.vst3 $PLUGIN.component
|
|
||||||
xcrun notarytool submit --verbose --apple-id "$APPLE_USER" --password "$APPLE_PASS" --team-id "3FS7DJDG38" --wait --timeout 30m ${PLUGIN}_Mac.zip
|
|
||||||
|
|
||||||
rm ${PLUGIN}_Mac.zip
|
|
||||||
xcrun stapler staple $PLUGIN.vst
|
|
||||||
xcrun stapler staple $PLUGIN.vst3
|
|
||||||
xcrun stapler staple $PLUGIN.component
|
|
||||||
else
|
|
||||||
echo "Not notarizing"
|
|
||||||
fi
|
|
||||||
|
|
||||||
zip -r ${PLUGIN}_Mac.zip $PLUGIN.vst $PLUGIN.vst3 $PLUGIN.component
|
|
||||||
|
|
||||||
if [ "$BRANCH" = "release" ]; then
|
|
||||||
curl -F "files=@${PLUGIN}_Mac.zip" "https://socalabs.com/files/set.php?key=$APIKEY"
|
|
||||||
fi
|
|
||||||
# Build linux version
|
|
||||||
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
|
||||||
cd "$ROOT"
|
|
||||||
|
|
||||||
cmake --preset ninja-gcc
|
|
||||||
cmake --build --preset ninja-gcc --config Release
|
|
||||||
|
|
||||||
cp -R "$ROOT/Builds/ninja-gcc/${PLUGIN}_artefacts/Release/LV2/$PLUGIN.lv2" "$ROOT/ci/bin"
|
|
||||||
cp -R "$ROOT/Builds/ninja-gcc/${PLUGIN}_artefacts/Release/VST/lib$PLUGIN.so" "$ROOT/ci/bin/$PLUGIN.so"
|
|
||||||
cp -R "$ROOT/Builds/ninja-gcc/${PLUGIN}_artefacts/Release/VST3/$PLUGIN.vst3" "$ROOT/ci/bin"
|
|
||||||
|
|
||||||
cd "$ROOT/ci/bin"
|
|
||||||
|
|
||||||
# Upload
|
|
||||||
cd "$ROOT/ci/bin"
|
|
||||||
zip -r ${PLUGIN}_Linux.zip $PLUGIN.so $PLUGIN.vst3 $PLUGIN.lv2
|
|
||||||
|
|
||||||
if [ "$BRANCH" = "release" ]; then
|
|
||||||
curl -F "files=@${PLUGIN}_Linux.zip" "https://socalabs.com/files/set.php?key=$APIKEY"
|
|
||||||
fi
|
|
||||||
# Build Win version
|
|
||||||
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
|
|
||||||
cd "$ROOT"
|
|
||||||
|
|
||||||
cmake --preset vs
|
|
||||||
cmake --build --preset vs --config Release
|
|
||||||
|
|
||||||
cd "$ROOT/ci/bin"
|
|
||||||
|
|
||||||
cp -R "$ROOT/Builds/vs/${PLUGIN}_artefacts/Release/VST/$PLUGIN.dll" "$ROOT/ci/bin"
|
|
||||||
cp -R "$ROOT/Builds/vs/${PLUGIN}_artefacts/Release/VST3/$PLUGIN.vst3" "$ROOT/ci/bin"
|
|
||||||
|
|
||||||
7z a ${PLUGIN}_Win.zip $PLUGIN.dll $PLUGIN.vst3
|
|
||||||
|
|
||||||
if [ "$BRANCH" = "release" ]; then
|
|
||||||
curl -F "files=@${PLUGIN}_Win.zip" "https://socalabs.com/files/set.php?key=$APIKEY"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
26
ci/upload.sh
26
ci/upload.sh
|
|
@ -1,26 +0,0 @@
|
||||||
#!/bin/bash -e
|
|
||||||
set +x
|
|
||||||
|
|
||||||
PLUGIN="Wavetable"
|
|
||||||
|
|
||||||
ROOT=$(cd "$(dirname "$0")/.."; pwd)
|
|
||||||
cd "$ROOT"
|
|
||||||
echo "$ROOT"
|
|
||||||
|
|
||||||
# Upload mac version
|
|
||||||
if [ "$(uname)" == "Darwin" ]; then
|
|
||||||
cd "$ROOT/ci/bin"
|
|
||||||
curl -F "files=@${PLUGIN}_Mac.zip" "https://socalabs.com/files/set.php?key=$APIKEY"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Upload linux version
|
|
||||||
if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
|
||||||
cd "$ROOT/ci/bin"
|
|
||||||
curl -F "files=@${PLUGIN}_Linux.zip" "https://socalabs.com/files/set.php?key=$APIKEY"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Upload Win version
|
|
||||||
if [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
|
|
||||||
cd "$ROOT/ci/bin"
|
|
||||||
curl -F "files=@${PLUGIN}_Win.zip" "https://socalabs.com/files/set.php?key=$APIKEY"
|
|
||||||
fi
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 2d7c013ebf4a076c35811e62293e8f819d053a91
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 9eb75b5bad2525a387bcf1c1d773f897c35ef372
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit bc7339fe07ca1ef7d4708cb6a124932de4af3719
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit d0e42b81bb7b747b0b7b51a993366a1f46ea3a55
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit bcbef199f4dd78b883aebd6477cc104dad850e1b
|
|
||||||
|
|
@ -143,21 +143,16 @@ public:
|
||||||
}
|
}
|
||||||
else if (e.originalComponent == &h && e.mouseWasClicked() && e.x >= prevButton.getRight() && e.x <= nextButton.getX())
|
else if (e.originalComponent == &h && e.mouseWasClicked() && e.x >= prevButton.getRight() && e.x <= nextButton.getX())
|
||||||
{
|
{
|
||||||
juce::StringArray tables;
|
auto files = proc.getWavetableFiles();
|
||||||
for (auto i = 0; i < BinaryData::namedResourceListSize; i++)
|
|
||||||
if (juce::String (BinaryData::originalFilenames[i]).endsWith (".wt2048"))
|
|
||||||
tables.add (juce::String (BinaryData::originalFilenames[i]).upToLastOccurrenceOf (".wt2048", false, false));
|
|
||||||
|
|
||||||
tables.sortNatural();
|
|
||||||
|
|
||||||
std::map<juce::String, juce::PopupMenu> menus;
|
std::map<juce::String, juce::PopupMenu> menus;
|
||||||
|
|
||||||
for (auto t : tables)
|
for (auto& f : files)
|
||||||
{
|
{
|
||||||
auto prefix = t.upToFirstOccurrenceOf (" ", false, false);
|
auto t = f.getFileNameWithoutExtension();
|
||||||
auto suffix = t.fromFirstOccurrenceOf (" ", false, false);
|
auto category = f.getParentDirectory().getFileName();
|
||||||
|
|
||||||
menus[prefix].addItem (t, [this, t]
|
menus[category].addItem (t, [this, t]
|
||||||
{
|
{
|
||||||
if (idx == 0)
|
if (idx == 0)
|
||||||
{
|
{
|
||||||
|
|
@ -176,7 +171,7 @@ public:
|
||||||
|
|
||||||
juce::PopupMenu m;
|
juce::PopupMenu m;
|
||||||
m.setLookAndFeel (&getLookAndFeel());
|
m.setLookAndFeel (&getLookAndFeel());
|
||||||
|
|
||||||
for (auto itr : menus)
|
for (auto itr : menus)
|
||||||
m.addSubMenu (itr.first, itr.second);
|
m.addSubMenu (itr.first, itr.second);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -102,5 +102,5 @@ void WavetableAudioProcessorEditor::addMenuItems (juce::PopupMenu& m)
|
||||||
|
|
||||||
m.addSeparator();
|
m.addSeparator();
|
||||||
|
|
||||||
m.addItem ("Manual", [] { juce::URL ("https://github.com/FigBug/Wavetable/blob/master/Manual.md").launchInDefaultBrowser(); });
|
m.addItem ("Manual", [] { juce::URL ("https://github.com/FigBug/Wavetable/blob/master/README.md").launchInDefaultBrowser(); });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ private:
|
||||||
gin::TriggeredScope scope { wtProc.scopeFifo };
|
gin::TriggeredScope scope { wtProc.scopeFifo };
|
||||||
gin::SynthesiserUsage usage { wtProc };
|
gin::SynthesiserUsage usage { wtProc };
|
||||||
gin::ModulationOverview modOverview { wtProc.modMatrix };
|
gin::ModulationOverview modOverview { wtProc.modMatrix };
|
||||||
gin::ModOverlay modOverlay { wtProc.modMatrix };
|
gin::ModOverlay modOverlay;
|
||||||
|
|
||||||
Editor editor { wtProc };
|
Editor editor { wtProc };
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,29 @@
|
||||||
#include "PluginEditor.h"
|
#include "PluginEditor.h"
|
||||||
#include "WavetableVoice.h"
|
#include "WavetableVoice.h"
|
||||||
|
|
||||||
|
#include <mutex>
|
||||||
|
|
||||||
|
// If the shared CrashReporter is installed, launch it once per process (on the
|
||||||
|
// first plugin instance) so it can scan and upload any crash from last session.
|
||||||
|
static void launchCrashReporterOnce()
|
||||||
|
{
|
||||||
|
static std::once_flag flag;
|
||||||
|
std::call_once (flag, []
|
||||||
|
{
|
||||||
|
#if JUCE_MAC
|
||||||
|
juce::File app ("/Library/Application Support/Rabien Software/Crash Reporter/CrashReporter.app");
|
||||||
|
#elif JUCE_WINDOWS
|
||||||
|
auto app = juce::File::getSpecialLocation (juce::File::globalApplicationsDirectory)
|
||||||
|
.getChildFile ("Rabien Software").getChildFile ("Crash Reporter").getChildFile ("CrashReporter.exe");
|
||||||
|
#else
|
||||||
|
juce::File app;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (app.exists())
|
||||||
|
juce::Process::openDocument (app.getFullPathName(), {});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
static juce::String subTextFunction (const gin::Parameter&, float v)
|
static juce::String subTextFunction (const gin::Parameter&, float v)
|
||||||
{
|
{
|
||||||
switch (int (v))
|
switch (int (v))
|
||||||
|
|
@ -507,6 +530,49 @@ void extractWavetables()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//==============================================================================
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
juce::File userResourceRoot()
|
||||||
|
{
|
||||||
|
#if JUCE_MAC
|
||||||
|
return juce::File::getSpecialLocation (juce::File::userHomeDirectory)
|
||||||
|
.getChildFile ("Library/Audio/Presets/SocaLabs/Wavetable");
|
||||||
|
#elif JUCE_WINDOWS
|
||||||
|
return juce::File::getSpecialLocation (juce::File::userApplicationDataDirectory)
|
||||||
|
.getChildFile ("SocaLabs/Wavetable");
|
||||||
|
#else
|
||||||
|
return juce::File::getSpecialLocation (juce::File::userApplicationDataDirectory)
|
||||||
|
.getChildFile ("SocaLabs/Wavetable");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
juce::File systemResourceRoot()
|
||||||
|
{
|
||||||
|
#if JUCE_MAC
|
||||||
|
return juce::File ("/Library/Audio/Presets/SocaLabs/Wavetable");
|
||||||
|
#elif JUCE_WINDOWS
|
||||||
|
return juce::File::getSpecialLocation (juce::File::commonApplicationDataDirectory)
|
||||||
|
.getChildFile ("SocaLabs/Wavetable");
|
||||||
|
#else
|
||||||
|
return juce::File ("/usr/share/SocaLabs/Wavetable");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pre-installer location used when factory presets were embedded and gin's
|
||||||
|
// default getProgramDirectory() chose a "programs" folder under devId.
|
||||||
|
juce::File legacyUserProgramDirectory()
|
||||||
|
{
|
||||||
|
#if JUCE_MAC
|
||||||
|
return juce::File::getSpecialLocation (juce::File::userApplicationDataDirectory)
|
||||||
|
.getChildFile ("Application Support/com.socalabs/Wavetable/programs");
|
||||||
|
#else
|
||||||
|
return juce::File::getSpecialLocation (juce::File::userApplicationDataDirectory)
|
||||||
|
.getChildFile ("com.socalabs/Wavetable/programs");
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
static gin::ProcessorOptions createProcessorOptions()
|
static gin::ProcessorOptions createProcessorOptions()
|
||||||
{
|
{
|
||||||
|
|
@ -520,12 +586,22 @@ WavetableAudioProcessor::WavetableAudioProcessor()
|
||||||
fireAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); })),
|
fireAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); })),
|
||||||
grindAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); }))
|
grindAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); }))
|
||||||
{
|
{
|
||||||
{
|
launchCrashReporterOnce();
|
||||||
auto sz = 0;
|
|
||||||
for (auto i = 0; i < BinaryData::namedResourceListSize; i++)
|
// One-time migration of any user presets from the pre-installer location.
|
||||||
if (juce::String (BinaryData::originalFilenames[i]).endsWith (".xml"))
|
// Factory presets now live in systemResourceRoot()/Presets and are surfaced
|
||||||
if (auto data = BinaryData::getNamedResource (BinaryData::namedResourceList[i], sz))
|
// via getFactoryProgramDirectories(). User saves go to userResourceRoot()/Presets.
|
||||||
extractProgram (BinaryData::originalFilenames[i], data, sz);
|
{
|
||||||
|
auto oldDir = legacyUserProgramDirectory();
|
||||||
|
auto newDir = userResourceRoot().getChildFile ("Presets");
|
||||||
|
if (oldDir.isDirectory()
|
||||||
|
&& newDir.findChildFiles (juce::File::findFiles, false, "*.xml").isEmpty())
|
||||||
|
{
|
||||||
|
if (! newDir.isDirectory())
|
||||||
|
newDir.createDirectory();
|
||||||
|
for (auto f : oldDir.findChildFiles (juce::File::findFiles, false, "*.xml"))
|
||||||
|
f.copyFileTo (newDir.getChildFile (f.getFileName()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mtsClient = MTS_RegisterClient();
|
mtsClient = MTS_RegisterClient();
|
||||||
|
|
@ -592,13 +668,14 @@ void WavetableAudioProcessor::reloadWavetables()
|
||||||
{
|
{
|
||||||
auto loadMemory = [&] (const juce::String& name) -> juce::MemoryBlock
|
auto loadMemory = [&] (const juce::String& name) -> juce::MemoryBlock
|
||||||
{
|
{
|
||||||
for (auto i = 0; i < BinaryData::namedResourceListSize; i++)
|
auto wtDir = systemResourceRoot().getChildFile ("Wavetables");
|
||||||
|
if (wtDir.isDirectory())
|
||||||
{
|
{
|
||||||
if ((name + ".wt2048").equalsIgnoreCase (BinaryData::originalFilenames[i]))
|
for (auto& file : wtDir.findChildFiles (juce::File::findFiles, true, name + ".wt2048"))
|
||||||
{
|
{
|
||||||
int sz = 0;
|
juce::MemoryBlock mb;
|
||||||
if (auto data = BinaryData::getNamedResource (BinaryData::namedResourceList[i], sz))
|
if (file.loadFileAsData (mb))
|
||||||
return juce::MemoryBlock (data, sz);
|
return mb;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
|
|
@ -651,12 +728,7 @@ void WavetableAudioProcessor::incWavetable (int osc, int delta)
|
||||||
else
|
else
|
||||||
userTable2.reset();
|
userTable2.reset();
|
||||||
|
|
||||||
juce::StringArray tables;
|
auto tables = getWavetableNames();
|
||||||
for (auto i = 0; i < BinaryData::namedResourceListSize; i++)
|
|
||||||
if (juce::String (BinaryData::originalFilenames[i]).endsWith (".wt2048"))
|
|
||||||
tables.add (juce::String (BinaryData::originalFilenames[i]).upToLastOccurrenceOf (".wt2048", false, false));
|
|
||||||
|
|
||||||
tables.sortNatural();
|
|
||||||
|
|
||||||
auto idx = tables.indexOf (table.toString());
|
auto idx = tables.indexOf (table.toString());
|
||||||
|
|
||||||
|
|
@ -725,6 +797,57 @@ void WavetableAudioProcessor::updateState()
|
||||||
state.setProperty ("wt2Data", userTable2.toBase64Encoding(), nullptr);
|
state.setProperty ("wt2Data", userTable2.toBase64Encoding(), nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//==============================================================================
|
||||||
|
juce::File WavetableAudioProcessor::getProgramDirectory()
|
||||||
|
{
|
||||||
|
auto dir = userResourceRoot().getChildFile ("Presets");
|
||||||
|
|
||||||
|
if (! dir.isDirectory())
|
||||||
|
dir.createDirectory();
|
||||||
|
|
||||||
|
return dir;
|
||||||
|
}
|
||||||
|
|
||||||
|
juce::Array<juce::File> WavetableAudioProcessor::getFactoryProgramDirectories()
|
||||||
|
{
|
||||||
|
return { systemResourceRoot().getChildFile ("Presets") };
|
||||||
|
}
|
||||||
|
|
||||||
|
juce::StringArray WavetableAudioProcessor::getWavetableNames() const
|
||||||
|
{
|
||||||
|
juce::StringArray tables;
|
||||||
|
for (auto& f : getWavetableFiles())
|
||||||
|
tables.add (f.getFileNameWithoutExtension());
|
||||||
|
|
||||||
|
tables.sortNatural();
|
||||||
|
return tables;
|
||||||
|
}
|
||||||
|
|
||||||
|
juce::Array<juce::File> WavetableAudioProcessor::getWavetableFiles() const
|
||||||
|
{
|
||||||
|
juce::Array<juce::File> files;
|
||||||
|
auto wtDir = systemResourceRoot().getChildFile ("Wavetables");
|
||||||
|
if (wtDir.isDirectory())
|
||||||
|
files = wtDir.findChildFiles (juce::File::findFiles, true, "*.wt2048");
|
||||||
|
|
||||||
|
struct Sorter
|
||||||
|
{
|
||||||
|
static int compareElements (const juce::File& a, const juce::File& b)
|
||||||
|
{
|
||||||
|
auto categoryCmp = a.getParentDirectory().getFileName()
|
||||||
|
.compareNatural (b.getParentDirectory().getFileName());
|
||||||
|
if (categoryCmp != 0)
|
||||||
|
return categoryCmp;
|
||||||
|
return a.getFileNameWithoutExtension()
|
||||||
|
.compareNatural (b.getFileNameWithoutExtension());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
Sorter sorter;
|
||||||
|
files.sort (sorter);
|
||||||
|
|
||||||
|
return files;
|
||||||
|
}
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void WavetableAudioProcessor::setupModMatrix()
|
void WavetableAudioProcessor::setupModMatrix()
|
||||||
{
|
{
|
||||||
|
|
@ -844,14 +967,15 @@ bool WavetableAudioProcessor::isBusesLayoutSupported (const BusesLayout& layout)
|
||||||
void WavetableAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, juce::MidiBuffer& midi)
|
void WavetableAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, juce::MidiBuffer& midi)
|
||||||
{
|
{
|
||||||
juce::ScopedNoDenormals noDenormals;
|
juce::ScopedNoDenormals noDenormals;
|
||||||
|
|
||||||
|
if (buffer.getNumChannels() != 2)
|
||||||
|
return;
|
||||||
|
|
||||||
if (! dspLock.tryEnter())
|
if (! dspLock.tryEnter())
|
||||||
{
|
{
|
||||||
blockMissed = true;
|
blockMissed = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buffer.getNumChannels() != 2)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (midiLearn)
|
if (midiLearn)
|
||||||
midiLearn->processBlock (midi, buffer.getNumSamples());
|
midiLearn->processBlock (midi, buffer.getNumSamples());
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@ public:
|
||||||
|
|
||||||
bool supportsMPE() const override { return true; }
|
bool supportsMPE() const override { return true; }
|
||||||
|
|
||||||
|
juce::File getProgramDirectory() override;
|
||||||
|
juce::Array<juce::File> getFactoryProgramDirectories() override;
|
||||||
|
|
||||||
void stateUpdated() override;
|
void stateUpdated() override;
|
||||||
void updateState() override;
|
void updateState() override;
|
||||||
|
|
||||||
|
|
@ -52,6 +55,8 @@ public:
|
||||||
void reloadWavetables();
|
void reloadWavetables();
|
||||||
void incWavetable (int osc, int delta);
|
void incWavetable (int osc, int delta);
|
||||||
bool loadUserWavetable (int osc, const juce::File& f, int sz);
|
bool loadUserWavetable (int osc, const juce::File& f, int sz);
|
||||||
|
juce::StringArray getWavetableNames() const;
|
||||||
|
juce::Array<juce::File> getWavetableFiles() const;
|
||||||
|
|
||||||
void applyEffects (juce::AudioSampleBuffer& buffer);
|
void applyEffects (juce::AudioSampleBuffer& buffer);
|
||||||
void applyEffect (juce::AudioSampleBuffer& buffer, int fxId);
|
void applyEffect (juce::AudioSampleBuffer& buffer, int fxId);
|
||||||
|
|
|
||||||
44
release.sh
44
release.sh
|
|
@ -4,7 +4,10 @@ set -x
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
ROOT=$(pwd)
|
ROOT=$(pwd)
|
||||||
|
|
||||||
VER="$GITHUB_REF_NAME"
|
TAG="$GITHUB_REF_NAME"
|
||||||
|
# Tags are pushed with a leading "v" (see tag.sh); strip for the changelog
|
||||||
|
# lookup and the upload.php version field, but use TAG for gh release create.
|
||||||
|
VER="${TAG#v}"
|
||||||
|
|
||||||
# Extract the changelog section for the current version
|
# Extract the changelog section for the current version
|
||||||
# Matches version with optional colon, captures until the next version line or EOF
|
# Matches version with optional colon, captures until the next version line or EOF
|
||||||
|
|
@ -23,4 +26,41 @@ fi
|
||||||
|
|
||||||
echo "$NOTES" > /tmp/release_notes.txt
|
echo "$NOTES" > /tmp/release_notes.txt
|
||||||
|
|
||||||
gh release create "$VER" --title "$VER" -F /tmp/release_notes.txt ./Binaries\ Linux/*.zip ./Binaries\ Windows/*.zip ./Binaries\ macOS/*.zip
|
# --- Debug symbols -> crash server -------------------------------------------
|
||||||
|
# Uploaded here (not the build job) so a failed upload fails the release. The
|
||||||
|
# server stores symbols write-once per (plugin, platform, version): a re-tagged
|
||||||
|
# or rebuilt version whose symbols already exist returns 409 and fails the
|
||||||
|
# release loudly — delete the stale symbols in the crash site, then re-run.
|
||||||
|
CRASH_BASE="https://crashreports.rabiensoftware.com"
|
||||||
|
upload_symbols () { # $1 platform, $2 zip
|
||||||
|
if [ ! -f "$2" ]; then echo "Error: expected symbols $2 not found"; exit 1; fi
|
||||||
|
echo "Uploading $1 symbols for $VER"
|
||||||
|
curl -sS --fail-with-body -H "X-API-Key: $SYMBOL_API_KEY" \
|
||||||
|
-F "platform=$1" -F "version=$VER" -F "files[]=@$2" \
|
||||||
|
"$CRASH_BASE/symbols/"
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
upload_symbols mac "./Binaries macOS/Symbols_Mac.zip"
|
||||||
|
upload_symbols win "./Binaries Windows/Symbols_Win.zip"
|
||||||
|
|
||||||
|
ASSETS=(
|
||||||
|
"./Binaries Linux"/*.deb
|
||||||
|
"./Binaries Windows"/*.exe
|
||||||
|
"./Binaries macOS"/*.pkg
|
||||||
|
)
|
||||||
|
if [ -f "./Binaries macOS/Symbols_Mac.zip" ]; then
|
||||||
|
ASSETS+=("./Binaries macOS/Symbols_Mac.zip")
|
||||||
|
fi
|
||||||
|
|
||||||
|
gh release create "$TAG" --title "$TAG" -F /tmp/release_notes.txt "${ASSETS[@]}"
|
||||||
|
|
||||||
|
PLUGIN=wavetable
|
||||||
|
for f in "./Binaries Linux"/*.deb \
|
||||||
|
"./Binaries Windows"/*.exe \
|
||||||
|
"./Binaries macOS"/*.pkg; do
|
||||||
|
curl -sS --fail-with-body -F "files=@${f}" \
|
||||||
|
-F "plugin=${PLUGIN}" \
|
||||||
|
-F "version=${VER}" \
|
||||||
|
-F "changelog=${NOTES}" \
|
||||||
|
"https://socalabs.com/files/upload.php?key=$APIKEY"
|
||||||
|
done
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 1 MiB After Width: | Height: | Size: 1 MiB |
4
tag.sh
4
tag.sh
|
|
@ -13,5 +13,5 @@ if ! grep -q "^${VER}:*$" Changelist.txt; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Tagging [$VER]"
|
echo "Tagging [v$VER]"
|
||||||
git tag "$VER" && git push origin "$VER"
|
git tag "v$VER" && git push origin "v$VER"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue