diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1d2a36b..78b9f32 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,58 +11,43 @@ jobs: build: name: Build runs-on: ${{ matrix.os }} - timeout-minutes: 60 + timeout-minutes: 30 strategy: - fail-fast: false matrix: include: - name: Windows - os: windows-latest + os: [windows-latest] - name: Linux - os: ubuntu-latest + os: [ubuntu-latest] - name: macOS - os: macos-latest + os: [macos-latest] steps: - uses: actions/checkout@v4 with: submodules: recursive - - name: Install Linux dependencies - if: matrix.name == 'Linux' - run: | - 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 + if: runner.os == 'Windows' + run: choco install innosetup -y - - name: Build installer - run: ./Installer/build.sh + - name: "Run script" + run: | + ./ci/build.sh shell: bash env: - # macOS signing / notarization APPLICATION: ${{ secrets.APPLICATION }} - INSTALLER: ${{ secrets.INSTALLER }} - APPLE_USER: ${{ secrets.APPLE_USER }} - APPLE_PASS: ${{ secrets.APPLE_PASS }} - # 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 }} + INSTALLER: ${{ secrets.INSTALLER }} + APPLE_PASS: ${{ secrets.APPLE_PASS }} + APPLE_USER: ${{ secrets.APPLE_USER }} + APIKEY: ${{ secrets.APIKEY }} - name: Upload Artifact uses: actions/upload-artifact@v4 - if: always() with: name: Binaries ${{ matrix.name }} - path: bin/* + path: | + ci/bin/*.zip + ci/bin/*.pkg + ci/bin/*.deb + ci/bin/*.exe retention-days: 30 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b651fb4..201c6ea 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,58 +8,56 @@ jobs: build: name: Build runs-on: ${{ matrix.os }} - timeout-minutes: 60 + timeout-minutes: 30 strategy: - fail-fast: false matrix: include: - name: Windows - os: windows-latest + os: [windows-latest] - name: Linux - os: ubuntu-latest + os: [ubuntu-latest] - name: macOS - os: macos-latest + os: [macos-latest] steps: - uses: actions/checkout@v4 with: submodules: recursive - - name: Install Linux dependencies - if: matrix.name == 'Linux' - run: | - 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 + if: runner.os == 'Windows' + run: choco install innosetup -y - - name: Build installer - run: ./Installer/build.sh + - name: "Build" + run: | + ./ci/build.sh shell: bash env: APPLICATION: ${{ secrets.APPLICATION }} - INSTALLER: ${{ secrets.INSTALLER }} - APPLE_USER: ${{ secrets.APPLE_USER }} - APPLE_PASS: ${{ secrets.APPLE_PASS }} - AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} - AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} - AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} + INSTALLER: ${{ secrets.INSTALLER }} + APPLE_PASS: ${{ secrets.APPLE_PASS }} + APPLE_USER: ${{ secrets.APPLE_USER }} + APIKEY: ${{ secrets.APIKEY }} + + - name: "Upload" + run: | + ./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 uses: actions/upload-artifact@v4 - if: always() with: name: Binaries ${{ matrix.name }} - path: bin/* + path: | + ci/bin/*.zip + ci/bin/*.pkg + ci/bin/*.deb + ci/bin/*.exe retention-days: 30 release: @@ -67,8 +65,7 @@ jobs: needs: build runs-on: ubuntu-latest timeout-minutes: 30 - permissions: - contents: write + steps: - uses: actions/checkout@v4 - name: Download Artifacts @@ -77,6 +74,4 @@ jobs: run: ./release.sh shell: bash env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - APIKEY: ${{ secrets.APIKEY }} - SYMBOL_API_KEY: ${{ secrets.SYMBOL_API_KEY }} + GH_TOKEN: ${{ secrets.ACCESS_TOKEN }} diff --git a/.gitignore b/.gitignore index 792c923..3cdcb84 100644 --- a/.gitignore +++ b/.gitignore @@ -33,13 +33,6 @@ xcuserdata Builds JuceLibraryCode -bin -Installer/macOS/bin -Installer/win/bin -Installer/_flat_presets +ci/bin .DS_Store -.claude - -# modules -modules - +.claude \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 965f7d0..2342664 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,7 +13,3 @@ [submodule "modules/MTS-ESP"] path = modules/MTS-ESP 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 diff --git a/AGENTS.md b/AGENTS.md deleted file mode 100644 index 6814a83..0000000 --- a/AGENTS.md +++ /dev/null @@ -1,174 +0,0 @@ -# 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). diff --git a/CMakeLists.txt b/CMakeLists.txt index 7504482..28c74a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,6 @@ cmake_minimum_required (VERSION 3.16.0 FATAL_ERROR) # Set for each plugin # file (READ "${CMAKE_CURRENT_LIST_DIR}/VERSION" PLUGIN_VERSION) -string (STRIP "${PLUGIN_VERSION}" PLUGIN_VERSION) set (PLUGIN_NAME Wavetable) set (BUNDLE_ID com.socalabs.wavetable) set (AU_ID WavetableAU) @@ -14,10 +13,7 @@ set (PLUGIN_CODE Wave) set (CMAKE_POLICY_DEFAULT_CMP0077 NEW) set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") set (CMAKE_SUPPRESS_REGENERATION true) -# 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_SKIP_INSTALL_RULES YES) set (CMAKE_POSITION_INDEPENDENT_CODE ON) set_property (GLOBAL PROPERTY DEBUG_CONFIGURATIONS "Debug") @@ -75,7 +71,6 @@ set (JUCE_BUILD_EXTRAS OFF) set (JUCE_BUILD_EXAMPLES OFF) 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) @@ -95,7 +90,7 @@ endforeach() juce_add_module ("${CMAKE_CURRENT_LIST_DIR}/modules/melatonin_inspector") set_property (TARGET melatonin_inspector APPEND PROPERTY LABELS melatonin) -# Binary Data +# Binary Data (only layout.json - wavetables and presets are loaded from disk) set_property (DIRECTORY APPEND PROPERTY LABELS Assets) @@ -104,8 +99,6 @@ file (GLOB_RECURSE binary_files CONFIGURE_DEPENDS juce_add_binary_data (${PLUGIN_NAME}_Assets SOURCES ${binary_files}) -set_target_properties(${PLUGIN_NAME}_Assets PROPERTIES UNITY_BUILD ON UNITY_BUILD_MODE BATCH UNITY_BUILD_BATCH_SIZE 10) - set_property(GLOBAL PROPERTY USE_FOLDERS ON) juce_set_vst2_sdk_path (${CMAKE_SOURCE_DIR}/modules/plugin_sdk/vstsdk2.4) @@ -129,10 +122,6 @@ juce_add_plugin (${PLUGIN_NAME} AU_SANDBOX_SAFE FALSE 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 ${CMAKE_CURRENT_SOURCE_DIR}/plugin/*.cpp ${CMAKE_CURRENT_SOURCE_DIR}/plugin/*.c @@ -213,7 +202,6 @@ if (APPLE) XCODE_ATTRIBUTE_CLANG_LINK_OBJC_RUNTIME NO #XCODE_ATTRIBUTE_DEPLOYMENT_POSTPROCESSING[variant=Release] YES XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Debug] "YES" - XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT[variant=Release] "dwarf-with-dsym" ) if (NOT t STREQUAL "All") target_compile_options(${tgt} PRIVATE @@ -238,22 +226,6 @@ if (WIN32) set_target_properties(${tgt} PROPERTIES LINK_FLAGS "/ignore:4099") endif() 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 "$<$:/Zi>") - target_link_options(${tgt} PRIVATE "$<$:/DEBUG>") - target_link_options(${tgt} PRIVATE "$<$:/OPT:REF>") - target_link_options(${tgt} PRIVATE "$<$:/OPT:ICF>") - endif() - endforeach() endif() if(UNIX AND NOT APPLE) @@ -261,59 +233,10 @@ if(UNIX AND NOT APPLE) endif() -# -# Install + CPack (Linux only — macOS uses pkgbuild/productbuild, Windows uses Inno Setup) -# -if (UNIX AND NOT APPLE) - set (_artefact_dir "${CMAKE_BINARY_DIR}/${PLUGIN_NAME}_artefacts/$") - - 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 ") - 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) +if(WIN32) + set (dest "Program Files") +else() + set (dest "Applications") endif() + +install (TARGETS ${PLUGIN_NAME} DESTINATION "${dest}") diff --git a/Changelist.txt b/Changelist.txt index d3f543d..5136859 100644 --- a/Changelist.txt +++ b/Changelist.txt @@ -1,25 +1,3 @@ -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 diff --git a/Installer/EULA.rtf b/Installer/EULA.rtf deleted file mode 100644 index bfb3f36..0000000 --- a/Installer/EULA.rtf +++ /dev/null @@ -1,668 +0,0 @@ -{\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. \ - 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.\ -\ - \ - Copyright (C) \ -\ - 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 .\ -\ -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\ -.\ -} \ No newline at end of file diff --git a/Installer/build.sh b/Installer/build.sh deleted file mode 100755 index 43dca8b..0000000 --- a/Installer/build.sh +++ /dev/null @@ -1,367 +0,0 @@ -#!/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//*.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 diff --git a/Installer/crashreporter.json b/Installer/crashreporter.json deleted file mode 100644 index cc52a9c..0000000 --- a/Installer/crashreporter.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Wavetable", - "pluginID": "com.socalabs.wavetable", - "crashUrl": "https://crashreports.rabiensoftware.com/post/", - "apiKey": "da8b3bc4e5fcb9b5ba8b5960d0ef805b62d4097b956082c87fcf82cab40cc2c8" -} diff --git a/Installer/eula.md b/Installer/eula.md deleted file mode 100644 index be3f7b2..0000000 --- a/Installer/eula.md +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - 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. - - - Copyright (C) - - 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 . - -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 -. diff --git a/Installer/linux/build_deb.sh b/Installer/linux/build_deb.sh new file mode 100755 index 0000000..d3f98bb --- /dev/null +++ b/Installer/linux/build_deb.sh @@ -0,0 +1,97 @@ +#!/bin/bash +# Build Linux .deb package for Wavetable + +set -e + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)" +VERSION="${VERSION:-1.0.0}" +PLUGIN_NAME="Wavetable" +PACKAGE_NAME="wavetable" +ARCH="amd64" + +# Paths +BIN_DIR="$ROOT_DIR/ci/bin" +DEB_ROOT="$SCRIPT_DIR/deb_root" +OUTPUT_DIR="$SCRIPT_DIR/output" + +echo "Building Wavetable $VERSION .deb package..." + +# Clean and create directories +rm -rf "$DEB_ROOT" "$OUTPUT_DIR" +mkdir -p "$DEB_ROOT" +mkdir -p "$OUTPUT_DIR" + +# Create package structure +mkdir -p "$DEB_ROOT/DEBIAN" +mkdir -p "$DEB_ROOT/usr/lib/vst" +mkdir -p "$DEB_ROOT/usr/lib/vst3" +mkdir -p "$DEB_ROOT/usr/lib/lv2" +mkdir -p "$DEB_ROOT/usr/share/SocaLabs/Wavetable/Wavetables" +mkdir -p "$DEB_ROOT/usr/share/SocaLabs/Wavetable/Presets" + +# Copy plugins +if [ -f "$BIN_DIR/vst/$PLUGIN_NAME.so" ]; then + cp "$BIN_DIR/vst/$PLUGIN_NAME.so" "$DEB_ROOT/usr/lib/vst/" +fi + +if [ -d "$BIN_DIR/vst3/$PLUGIN_NAME.vst3" ]; then + cp -R "$BIN_DIR/vst3/$PLUGIN_NAME.vst3" "$DEB_ROOT/usr/lib/vst3/" +fi + +if [ -d "$BIN_DIR/lv2/$PLUGIN_NAME.lv2" ]; then + cp -R "$BIN_DIR/lv2/$PLUGIN_NAME.lv2" "$DEB_ROOT/usr/lib/lv2/" +fi + +# Copy wavetables and presets +cp -R "$ROOT_DIR/plugin/Resources/WavetablesFLAC/"* "$DEB_ROOT/usr/share/SocaLabs/Wavetable/Wavetables/" +cp -R "$ROOT_DIR/plugin/Resources/Presets/"* "$DEB_ROOT/usr/share/SocaLabs/Wavetable/Presets/" + +# Calculate installed size (in KB) +INSTALLED_SIZE=$(du -sk "$DEB_ROOT" | cut -f1) + +# Create control file +cat > "$DEB_ROOT/DEBIAN/control" << EOF +Package: $PACKAGE_NAME +Version: $VERSION +Section: sound +Priority: optional +Architecture: $ARCH +Installed-Size: $INSTALLED_SIZE +Maintainer: SocaLabs +Homepage: https://socalabs.com +Description: Wavetable Synthesizer Plugin + Wavetable is a powerful wavetable synthesizer available as + VST2, VST3, and LV2 plugins for Linux. + . + Features: + - Dual wavetable oscillators + - Multiple filter types + - Extensive modulation matrix + - Built-in effects +EOF + +# Create postinst script +cat > "$DEB_ROOT/DEBIAN/postinst" << 'EOF' +#!/bin/bash +# Update plugin caches if available +if command -v update-mime-database &> /dev/null; then + update-mime-database /usr/share/mime || true +fi +exit 0 +EOF +chmod 755 "$DEB_ROOT/DEBIAN/postinst" + +# Set permissions +find "$DEB_ROOT" -type d -exec chmod 755 {} \; +find "$DEB_ROOT/usr" -type f -exec chmod 644 {} \; +find "$DEB_ROOT/usr/lib" -name "*.so" -exec chmod 755 {} \; + +# Build the package +DEB_FILE="$OUTPUT_DIR/${PACKAGE_NAME}_${VERSION}_${ARCH}.deb" +dpkg-deb --build "$DEB_ROOT" "$DEB_FILE" + +# Cleanup +rm -rf "$DEB_ROOT" + +echo "Done! Package created: $DEB_FILE" diff --git a/Installer/macOS/build_pkg.sh b/Installer/macOS/build_pkg.sh new file mode 100755 index 0000000..d58731c --- /dev/null +++ b/Installer/macOS/build_pkg.sh @@ -0,0 +1,124 @@ +#!/bin/bash +# Build macOS installer package for Wavetable + +set -e + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)" +VERSION="${VERSION:-1.0.0}" +PLUGIN_NAME="Wavetable" + +# Paths +BIN_DIR="$ROOT_DIR/ci/bin" +PKG_ROOT="$SCRIPT_DIR/pkg_root" +OUTPUT_DIR="$SCRIPT_DIR/output" + +# Signing identities (set via environment or leave empty for unsigned) +DEV_APP_ID="${DEV_APP_ID:-}" +DEV_INST_ID="${DEV_INST_ID:-}" + +echo "Building Wavetable $VERSION installer..." + +# Clean and create directories +rm -rf "$PKG_ROOT" "$OUTPUT_DIR" +mkdir -p "$PKG_ROOT" +mkdir -p "$OUTPUT_DIR" + +# Create package root structure +mkdir -p "$PKG_ROOT/Library/Audio/Plug-Ins/VST" +mkdir -p "$PKG_ROOT/Library/Audio/Plug-Ins/VST3" +mkdir -p "$PKG_ROOT/Library/Audio/Plug-Ins/Components" +mkdir -p "$PKG_ROOT/Library/Application Support/SocaLabs/Wavetable/Wavetables" +mkdir -p "$PKG_ROOT/Library/Application Support/SocaLabs/Wavetable/Presets" + +# Copy plugins +if [ -d "$BIN_DIR/vst/$PLUGIN_NAME.vst" ]; then + cp -R "$BIN_DIR/vst/$PLUGIN_NAME.vst" "$PKG_ROOT/Library/Audio/Plug-Ins/VST/" +fi + +if [ -d "$BIN_DIR/vst3/$PLUGIN_NAME.vst3" ]; then + cp -R "$BIN_DIR/vst3/$PLUGIN_NAME.vst3" "$PKG_ROOT/Library/Audio/Plug-Ins/VST3/" +fi + +if [ -d "$BIN_DIR/au/$PLUGIN_NAME.component" ]; then + cp -R "$BIN_DIR/au/$PLUGIN_NAME.component" "$PKG_ROOT/Library/Audio/Plug-Ins/Components/" +fi + +# Copy wavetables and presets +cp -R "$ROOT_DIR/plugin/Resources/WavetablesFLAC/"* "$PKG_ROOT/Library/Application Support/SocaLabs/Wavetable/Wavetables/" +cp -R "$ROOT_DIR/plugin/Resources/Presets/"* "$PKG_ROOT/Library/Application Support/SocaLabs/Wavetable/Presets/" + +# Set permissions +chmod -R 755 "$PKG_ROOT/Library/Audio" +chmod -R 755 "$PKG_ROOT/Library/Application Support" + +# Build component package +pkgbuild --root "$PKG_ROOT" \ + --identifier "com.socalabs.wavetable.pkg" \ + --version "$VERSION" \ + --install-location "/" \ + "$OUTPUT_DIR/Wavetable-component.pkg" + +# Create distribution.xml +cat > "$OUTPUT_DIR/distribution.xml" << EOF + + + Wavetable $VERSION + com.socalabs + + + + + + + + + + + + + Wavetable-component.pkg + +EOF + +# Create welcome text +cat > "$OUTPUT_DIR/welcome.txt" << EOF +Welcome to the Wavetable $VERSION installer. + +This will install: +- Wavetable VST2 plugin +- Wavetable VST3 plugin +- Wavetable AU plugin +- Factory wavetables +- Factory presets + +Click Continue to proceed with the installation. +EOF + +# Build product archive +UNSIGNED_PKG="$OUTPUT_DIR/${PLUGIN_NAME}_${VERSION}_Mac_unsigned.pkg" +SIGNED_PKG="$OUTPUT_DIR/${PLUGIN_NAME}_${VERSION}_Mac.pkg" + +productbuild --distribution "$OUTPUT_DIR/distribution.xml" \ + --package-path "$OUTPUT_DIR" \ + --resources "$OUTPUT_DIR" \ + "$UNSIGNED_PKG" + +# Sign if identity is available +if [ -n "$DEV_INST_ID" ]; then + echo "Signing installer..." + productsign --sign "$DEV_INST_ID" "$UNSIGNED_PKG" "$SIGNED_PKG" + rm "$UNSIGNED_PKG" + echo "Signed installer: $SIGNED_PKG" +else + mv "$UNSIGNED_PKG" "$SIGNED_PKG" + echo "Unsigned installer: $SIGNED_PKG" +fi + +# Cleanup +rm -rf "$PKG_ROOT" +rm -f "$OUTPUT_DIR/Wavetable-component.pkg" +rm -f "$OUTPUT_DIR/distribution.xml" +rm -f "$OUTPUT_DIR/welcome.txt" + +echo "Done! Installer created: $SIGNED_PKG" diff --git a/Installer/macOS/distribution.xml b/Installer/macOS/distribution.xml deleted file mode 100644 index 6846ef7..0000000 --- a/Installer/macOS/distribution.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - Wavetable - com.socalabs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - vst.pkg - vst3.pkg - au.pkg - clap.pkg - resources.pkg - reporter.pkg - diff --git a/Installer/macOS/reporter-scripts/postinstall b/Installer/macOS/reporter-scripts/postinstall deleted file mode 100755 index 9ae4a00..0000000 --- a/Installer/macOS/reporter-scripts/postinstall +++ /dev/null @@ -1,38 +0,0 @@ -#!/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 diff --git a/Installer/macOS/scripts/postinstall b/Installer/macOS/scripts/postinstall deleted file mode 100755 index cb438fc..0000000 --- a/Installer/macOS/scripts/postinstall +++ /dev/null @@ -1,6 +0,0 @@ -#!/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 diff --git a/Installer/macOS/scripts/preinstall b/Installer/macOS/scripts/preinstall deleted file mode 100755 index bbaaf87..0000000 --- a/Installer/macOS/scripts/preinstall +++ /dev/null @@ -1,14 +0,0 @@ -#!/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 diff --git a/Installer/macOS/welcome.txt b/Installer/macOS/welcome.txt deleted file mode 100644 index 1d7254a..0000000 --- a/Installer/macOS/welcome.txt +++ /dev/null @@ -1,17 +0,0 @@ -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. diff --git a/Installer/win/Wavetable.iss b/Installer/win/Wavetable.iss index 1aa5ae1..112cab1 100644 --- a/Installer/win/Wavetable.iss +++ b/Installer/win/Wavetable.iss @@ -1,84 +1,74 @@ -; 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 +; Wavetable Installer Script for Inno Setup + +#define MyAppName "Wavetable" +#define MyAppCompany "SocaLabs" +#define MyAppPublisher "SocaLabs" +#define MyAppURL "https://socalabs.com" +#define MyAppVersion GetEnv('VERSION') +#if MyAppVersion == "" +#define MyAppVersion "1.0.0" +#endif + +[Setup] +AppID={{B8F4E3A2-9C7D-4B5E-8A1F-6D2E3C4B5A6F} +AppName={#MyAppCompany} {#MyAppName} +AppVerName={#MyAppCompany} {#MyAppName} {#MyAppVersion} +AppVersion={#MyAppVersion} +AppPublisher={#MyAppPublisher} +AppPublisherURL={#MyAppURL} +AppSupportURL={#MyAppURL} +AppUpdatesURL={#MyAppURL} +DefaultDirName={commonpf64}\VstPlugins +DisableProgramGroupPage=yes +OutputDir=.\output +OutputBaseFilename=Wavetable_{#MyAppVersion}_Win +Compression=lzma/ultra +SolidCompression=true +ShowLanguageDialog=auto +InternalCompressLevel=ultra +MinVersion=6.1.7600 +FlatComponentsList=false +AppendDefaultDirName=false +AlwaysShowDirOnReadyPage=yes +DirExistsWarning=no +DisableDirPage=no +DisableWelcomePage=False +DisableReadyPage=no +ArchitecturesAllowed=x64compatible +ArchitecturesInstallIn64BitMode=x64compatible +VersionInfoVersion={#MyAppVersion} +VersionInfoCompany={#MyAppPublisher} +VersionInfoProductName={#MyAppCompany} {#MyAppName} +VersionInfoProductVersion={#MyAppVersion} +UsePreviousGroup=False +Uninstallable=yes +UninstallDisplayName={#MyAppCompany} {#MyAppName} + +[Languages] +Name: english; MessagesFile: compiler:Default.isl + +[Types] +Name: "full"; Description: "Full installation" +Name: "custom"; Description: "Custom installation"; Flags: iscustom + +[Components] +Name: "vst2"; Description: "VST2 Plugin"; Types: full +Name: "vst3"; Description: "VST3 Plugin"; Types: full +Name: "data"; Description: "Wavetables and Presets"; Types: full; Flags: fixed + +[Files] +; VST2 Plugin +Source: "bin\vst\Wavetable.dll"; DestDir: "{app}"; Components: vst2; Flags: ignoreversion + +; VST3 Plugin +Source: "bin\vst3\Wavetable.vst3\*"; DestDir: "{commoncf64}\VST3\Wavetable.vst3"; Components: vst3; Flags: ignoreversion recursesubdirs + +; Wavetables +Source: "bin\Wavetables\*"; DestDir: "{commonappdata}\SocaLabs\Wavetable\Wavetables"; Components: data; Flags: ignoreversion recursesubdirs + +; Presets +Source: "bin\Presets\*"; DestDir: "{commonappdata}\SocaLabs\Wavetable\Presets"; Components: data; Flags: ignoreversion recursesubdirs + +[InstallDelete] +; Clean up old VST3 installation +Type: filesandordirs; Name: "{commoncf64}\VST3\Wavetable.vst3" diff --git a/Installer/win/metadata.json b/Installer/win/metadata.json deleted file mode 100644 index ff5df89..0000000 --- a/Installer/win/metadata.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Endpoint": "https://wus.codesigning.azure.net/", - "CodeSigningAccountName": "Signing2025", - "CertificateProfileName": "rabien" -} diff --git a/LICENSE b/LICENSE index 5c36cb9..f386d22 100644 --- a/LICENSE +++ b/LICENSE @@ -27,4 +27,3 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/README.md b/README.md index a23f073..1a3feb1 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,12 @@ -# Wavetable - personal fork with some modifications +# Wavetable -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. +![Build](https://github.com/FigBug/Wavetable/workflows/Build/badge.svg) -![Screenshot](screenshots/Screenshot1.png) +A 2 oscillator wavetable synthesizer with flexible modulation options. + +![Screenshot](Screenshots/Screenshot1.png) + +[Download](https://github.com/FigBug/Wavetable/releases) | [Product Page](https://socalabs.com/synths/Wavetable/) ## Features @@ -44,301 +48,26 @@ A 2 oscillator wavetable synthesizer with flexible modulation options. See https - VST3 - VST2 (requires VST2 SDK) - AU (macOS) -- CLAP - LV2 - Standalone -## System Requirements +## Building -- 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 +Requirements: +- CMake 3.16+ +- C++20 compatible compiler ```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 +cmake -B build +cmake --build build --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. +The 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. +## Contact + +Need additional features or help integrating? Contact me for consulting services: https://rabiensoftware.com/ diff --git a/screenshots/Screenshot1.png b/Screenshots/Screenshot1.png similarity index 100% rename from screenshots/Screenshot1.png rename to Screenshots/Screenshot1.png diff --git a/VERSION b/VERSION index ffcbe71..3f11ef6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.34 +1.0.27 \ No newline at end of file diff --git a/ci/build.sh b/ci/build.sh new file mode 100755 index 0000000..6bb0653 --- /dev/null +++ b/ci/build.sh @@ -0,0 +1,191 @@ +#!/bin/bash -e +set +x + +PLUGIN="Wavetable" +VERSION=$(cat VERSION) + +# 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 + + mkdir -p "$ROOT/ci/bin/au" + mkdir -p "$ROOT/ci/bin/vst" + mkdir -p "$ROOT/ci/bin/vst3" + + cp -R "$ROOT/Builds/xcode/${PLUGIN}_artefacts/Release/AU/$PLUGIN.component" "$ROOT/ci/bin/au" + cp -R "$ROOT/Builds/xcode/${PLUGIN}_artefacts/Release/VST/$PLUGIN.vst" "$ROOT/ci/bin/vst" + cp -R "$ROOT/Builds/xcode/${PLUGIN}_artefacts/Release/VST3/$PLUGIN.vst3" "$ROOT/ci/bin/vst3" + + cd "$ROOT/ci/bin" + if [ -n "$APPLICATION" ]; then + codesign -s "$DEV_APP_ID" -v vst/$PLUGIN.vst --options=runtime --timestamp --force + codesign -s "$DEV_APP_ID" -v vst3/$PLUGIN.vst3 --options=runtime --timestamp --force + codesign -s "$DEV_APP_ID" -v au/$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 vst/$PLUGIN.vst vst3/$PLUGIN.vst3 au/$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 vst/$PLUGIN.vst + xcrun stapler staple vst3/$PLUGIN.vst3 + xcrun stapler staple au/$PLUGIN.component + else + echo "Not notarizing" + fi + + # Build installer package + echo "Building macOS installer..." + export VERSION + export DEV_INST_ID + "$ROOT/Installer/macOS/build_pkg.sh" + + # Copy installer to bin + cp "$ROOT/Installer/macOS/output/${PLUGIN}_${VERSION}_Mac.pkg" "$ROOT/ci/bin/" + + # Also create zip of plugins for backwards compatibility + cd "$ROOT/ci/bin" + zip -r ${PLUGIN}_Mac.zip vst/$PLUGIN.vst vst3/$PLUGIN.vst3 au/$PLUGIN.component + + if [ "$BRANCH" = "release" ]; then + curl -F "files=@${PLUGIN}_Mac.zip" "https://socalabs.com/files/set.php?key=$APIKEY" + curl -F "files=@${PLUGIN}_${VERSION}_Mac.pkg" "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 + + mkdir -p "$ROOT/ci/bin/lv2" + mkdir -p "$ROOT/ci/bin/vst" + mkdir -p "$ROOT/ci/bin/vst3" + + cp -R "$ROOT/Builds/ninja-gcc/${PLUGIN}_artefacts/Release/LV2/$PLUGIN.lv2" "$ROOT/ci/bin/lv2" + cp -R "$ROOT/Builds/ninja-gcc/${PLUGIN}_artefacts/Release/VST/lib$PLUGIN.so" "$ROOT/ci/bin/vst/$PLUGIN.so" + cp -R "$ROOT/Builds/ninja-gcc/${PLUGIN}_artefacts/Release/VST3/$PLUGIN.vst3" "$ROOT/ci/bin/vst3" + + cd "$ROOT/ci/bin" + + # Strip debug symbols + strip vst/$PLUGIN.so + strip vst3/$PLUGIN.vst3/Contents/x86_64-linux/$PLUGIN.so + strip lv2/$PLUGIN.lv2/lib$PLUGIN.so + + # Build .deb package + echo "Building Linux .deb package..." + export VERSION + "$ROOT/Installer/linux/build_deb.sh" + + # Copy deb to bin + cp "$ROOT/Installer/linux/output/"*.deb "$ROOT/ci/bin/" + + # Also create zip for backwards compatibility + cd "$ROOT/ci/bin" + zip -r ${PLUGIN}_Linux.zip vst/$PLUGIN.so vst3/$PLUGIN.vst3 lv2/$PLUGIN.lv2 + + if [ "$BRANCH" = "release" ]; then + curl -F "files=@${PLUGIN}_Linux.zip" "https://socalabs.com/files/set.php?key=$APIKEY" + curl -F "files=@wavetable_${VERSION}_amd64.deb" "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 + + mkdir -p "$ROOT/ci/bin/vst" + mkdir -p "$ROOT/ci/bin/vst3" + mkdir -p "$ROOT/ci/bin/Wavetables" + mkdir -p "$ROOT/ci/bin/Presets" + + cp -R "$ROOT/Builds/vs/${PLUGIN}_artefacts/Release/VST/$PLUGIN.dll" "$ROOT/ci/bin/vst" + cp -R "$ROOT/Builds/vs/${PLUGIN}_artefacts/Release/VST3/$PLUGIN.vst3" "$ROOT/ci/bin/vst3" + + # Copy assets for installer + cp -R "$ROOT/plugin/Resources/WavetablesFLAC/"* "$ROOT/ci/bin/Wavetables/" + cp -R "$ROOT/plugin/Resources/Presets/"* "$ROOT/ci/bin/Presets/" + + # Build installer with Inno Setup + echo "Building Windows installer..." + cd "$ROOT/Installer/win" + mkdir -p bin + cp -R "$ROOT/ci/bin/vst" bin/ + cp -R "$ROOT/ci/bin/vst3" bin/ + cp -R "$ROOT/ci/bin/Wavetables" bin/ + cp -R "$ROOT/ci/bin/Presets" bin/ + mkdir -p output + + # Set version for Inno Setup + export VERSION + + # Run Inno Setup (iscc is the command-line compiler) + iscc "Wavetable.iss" + + # Copy installer to ci/bin + cp output/*.exe "$ROOT/ci/bin/" + + # Cleanup + rm -rf bin output + + # Also create zip for backwards compatibility + cd "$ROOT/ci/bin" + 7z a ${PLUGIN}_Win.zip vst/$PLUGIN.dll vst3/$PLUGIN.vst3 + + if [ "$BRANCH" = "release" ]; then + curl -F "files=@${PLUGIN}_Win.zip" "https://socalabs.com/files/set.php?key=$APIKEY" + curl -F "files=@${PLUGIN}_${VERSION}_Win.exe" "https://socalabs.com/files/set.php?key=$APIKEY" + fi +fi diff --git a/ci/upload.sh b/ci/upload.sh new file mode 100755 index 0000000..986a3cd --- /dev/null +++ b/ci/upload.sh @@ -0,0 +1,26 @@ +#!/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 diff --git a/copy_assets.sh b/copy_assets.sh new file mode 100755 index 0000000..05c99f6 --- /dev/null +++ b/copy_assets.sh @@ -0,0 +1,43 @@ +#!/bin/bash + +# Copy Wavetable assets to system locations for local testing +# Run with: sudo ./copy_assets.sh + +set -e + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +if [[ "$OSTYPE" == "darwin"* ]]; then + # macOS + DEST_DIR="/Library/Application Support/SocaLabs/Wavetable" +elif [[ "$OSTYPE" == "linux-gnu"* ]]; then + # Linux + DEST_DIR="/usr/share/SocaLabs/Wavetable" +elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then + # Windows (Git Bash / Cygwin) + DEST_DIR="/c/ProgramData/SocaLabs/Wavetable" +else + echo "Unsupported OS: $OSTYPE" + exit 1 +fi + +echo "Installing assets to: $DEST_DIR" + +# Create directories +mkdir -p "$DEST_DIR/Wavetables" +mkdir -p "$DEST_DIR/Presets" + +# Copy wavetables (preserving subdirectory structure) +echo "Copying wavetables..." +cp -R "$SCRIPT_DIR/plugin/Resources/WavetablesFLAC/"* "$DEST_DIR/Wavetables/" + +# Copy presets (preserving subdirectory structure) +echo "Copying presets..." +cp -R "$SCRIPT_DIR/plugin/Resources/Presets/"* "$DEST_DIR/Presets/" + +# Set permissions so all users can read +chmod -R a+rX "$DEST_DIR" + +echo "Done! Assets installed to:" +echo " Wavetables: $DEST_DIR/Wavetables" +echo " Presets: $DEST_DIR/Presets" diff --git a/modules/MTS-ESP b/modules/MTS-ESP new file mode 160000 index 0000000..2d7c013 --- /dev/null +++ b/modules/MTS-ESP @@ -0,0 +1 @@ +Subproject commit 2d7c013ebf4a076c35811e62293e8f819d053a91 diff --git a/modules/gin b/modules/gin new file mode 160000 index 0000000..f26a6a3 --- /dev/null +++ b/modules/gin @@ -0,0 +1 @@ +Subproject commit f26a6a3b8dc96c1de9b6011390ccc80308c85126 diff --git a/modules/juce b/modules/juce new file mode 160000 index 0000000..bc7339f --- /dev/null +++ b/modules/juce @@ -0,0 +1 @@ +Subproject commit bc7339fe07ca1ef7d4708cb6a124932de4af3719 diff --git a/modules/melatonin_inspector b/modules/melatonin_inspector new file mode 160000 index 0000000..d0e42b8 --- /dev/null +++ b/modules/melatonin_inspector @@ -0,0 +1 @@ +Subproject commit d0e42b81bb7b747b0b7b51a993366a1f46ea3a55 diff --git a/modules/plugin_sdk b/modules/plugin_sdk new file mode 160000 index 0000000..bcbef19 --- /dev/null +++ b/modules/plugin_sdk @@ -0,0 +1 @@ +Subproject commit bcbef199f4dd78b883aebd6477cc104dad850e1b diff --git a/plugin/Source/Panels.h b/plugin/Source/Panels.h index 161699e..d4bdd1c 100644 --- a/plugin/Source/Panels.h +++ b/plugin/Source/Panels.h @@ -143,16 +143,16 @@ public: } else if (e.originalComponent == &h && e.mouseWasClicked() && e.x >= prevButton.getRight() && e.x <= nextButton.getX()) { - auto files = proc.getWavetableFiles(); + juce::StringArray tables = proc.getWavetableList(); std::map menus; - for (auto& f : files) + for (auto t : tables) { - auto t = f.getFileNameWithoutExtension(); - auto category = f.getParentDirectory().getFileName(); + auto prefix = t.upToFirstOccurrenceOf (" ", false, false); + auto suffix = t.fromFirstOccurrenceOf (" ", false, false); - menus[category].addItem (t, [this, t] + menus[prefix].addItem (t, [this, t] { if (idx == 0) { @@ -171,7 +171,7 @@ public: juce::PopupMenu m; m.setLookAndFeel (&getLookAndFeel()); - + for (auto itr : menus) m.addSubMenu (itr.first, itr.second); diff --git a/plugin/Source/PluginEditor.cpp b/plugin/Source/PluginEditor.cpp index aa3f50e..565ac4c 100644 --- a/plugin/Source/PluginEditor.cpp +++ b/plugin/Source/PluginEditor.cpp @@ -102,5 +102,5 @@ void WavetableAudioProcessorEditor::addMenuItems (juce::PopupMenu& m) m.addSeparator(); - m.addItem ("Manual", [] { juce::URL ("https://github.com/FigBug/Wavetable/blob/master/README.md").launchInDefaultBrowser(); }); + m.addItem ("Manual", [] { juce::URL ("https://github.com/FigBug/Wavetable/blob/master/Manual.md").launchInDefaultBrowser(); }); } diff --git a/plugin/Source/PluginProcessor.cpp b/plugin/Source/PluginProcessor.cpp index 00f6604..3ca06b5 100644 --- a/plugin/Source/PluginProcessor.cpp +++ b/plugin/Source/PluginProcessor.cpp @@ -2,29 +2,6 @@ #include "PluginEditor.h" #include "WavetableVoice.h" -#include - -// 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) { switch (int (v)) @@ -530,49 +507,6 @@ void extractWavetables() } #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() { @@ -586,24 +520,6 @@ WavetableAudioProcessor::WavetableAudioProcessor() fireAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); })), grindAmp (FXBaseCallback ([this] { return gin::Processor::getSampleRate(); })) { - launchCrashReporterOnce(); - - // One-time migration of any user presets from the pre-installer location. - // Factory presets now live in systemResourceRoot()/Presets and are surfaced - // via getFactoryProgramDirectories(). User saves go to userResourceRoot()/Presets. - { - 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(); enableLegacyMode(); setVoiceStealingEnabled (true); @@ -668,14 +584,18 @@ void WavetableAudioProcessor::reloadWavetables() { auto loadMemory = [&] (const juce::String& name) -> juce::MemoryBlock { - auto wtDir = systemResourceRoot().getChildFile ("Wavetables"); - if (wtDir.isDirectory()) + // Load wavetable from file system + juce::File wavetableDir = getFactoryWavetableDirectory(); + juce::Array files; + wavetableDir.findChildFiles (files, juce::File::findFiles, true, "*.wt2048"); + + for (auto& f : files) { - for (auto& file : wtDir.findChildFiles (juce::File::findFiles, true, name + ".wt2048")) + if (f.getFileNameWithoutExtension().equalsIgnoreCase (name)) { juce::MemoryBlock mb; - if (file.loadFileAsData (mb)) - return mb; + f.loadFileAsData (mb); + return mb; } } return {}; @@ -728,7 +648,7 @@ void WavetableAudioProcessor::incWavetable (int osc, int delta) else userTable2.reset(); - auto tables = getWavetableNames(); + juce::StringArray tables = getWavetableList(); auto idx = tables.indexOf (table.toString()); @@ -761,6 +681,159 @@ bool WavetableAudioProcessor::loadUserWavetable (int osc, const juce::File& f, i return false; } +//============================================================================== +juce::File WavetableAudioProcessor::getFactoryWavetableDirectory() +{ + #if JUCE_MAC + juce::File dir = juce::File::getSpecialLocation (juce::File::commonApplicationDataDirectory).getChildFile ("Application Support/SocaLabs/Wavetable/Wavetables"); + #else + juce::File dir = juce::File::getSpecialLocation (juce::File::commonApplicationDataDirectory).getChildFile ("SocaLabs/Wavetable/Wavetables"); + #endif + return dir; +} + +juce::File WavetableAudioProcessor::getFactoryPresetDirectory() +{ + #if JUCE_MAC + juce::File dir = juce::File::getSpecialLocation (juce::File::commonApplicationDataDirectory).getChildFile ("Application Support/SocaLabs/Wavetable/Presets"); + #else + juce::File dir = juce::File::getSpecialLocation (juce::File::commonApplicationDataDirectory).getChildFile ("SocaLabs/Wavetable/Presets"); + #endif + return dir; +} + +juce::File WavetableAudioProcessor::getProgramDirectory() +{ + #if JUCE_MAC + juce::File dir = juce::File::getSpecialLocation (juce::File::userApplicationDataDirectory).getChildFile ("Application Support/SocaLabs/Wavetable/UserPresets"); + #else + juce::File dir = juce::File::getSpecialLocation (juce::File::userApplicationDataDirectory).getChildFile ("SocaLabs/Wavetable/UserPresets"); + #endif + + if (! dir.isDirectory()) + dir.createDirectory(); + + return dir; +} + +juce::File WavetableAudioProcessor::getLegacyProgramDirectory() +{ + #if JUCE_MAC + juce::File dir = juce::File::getSpecialLocation (juce::File::userApplicationDataDirectory).getChildFile ("Application Support/" + processorOptions.devId + "/" + processorOptions.pluginName + "/programs"); + #else + juce::File dir = juce::File::getSpecialLocation (juce::File::userApplicationDataDirectory).getChildFile (processorOptions.devId + "/" + processorOptions.pluginName + "/programs"); + #endif + return dir; +} + +void WavetableAudioProcessor::migrateUserPresets() +{ + juce::File legacyDir = getLegacyProgramDirectory(); + if (! legacyDir.isDirectory()) + return; + + // Build a set of factory preset filenames to ignore + juce::StringArray factoryPresetNames; + juce::File factoryDir = getFactoryPresetDirectory(); + if (factoryDir.isDirectory()) + { + juce::Array factoryFiles; + factoryDir.findChildFiles (factoryFiles, juce::File::findFiles, true, "*.xml"); + for (auto& f : factoryFiles) + factoryPresetNames.add (f.getFileName().toLowerCase()); + } + + // Find all presets in legacy directory + juce::Array legacyFiles; + legacyDir.findChildFiles (legacyFiles, juce::File::findFiles, false, "*.xml"); + + juce::File userDir = getProgramDirectory(); + + for (auto& f : legacyFiles) + { + // Skip if this is a factory preset + if (factoryPresetNames.contains (f.getFileName().toLowerCase())) + continue; + + // Skip if already exists in new location + juce::File destFile = userDir.getChildFile (f.getFileName()); + if (destFile.existsAsFile()) + continue; + + // Copy to new location + f.copyFileTo (destFile); + } +} + +void WavetableAudioProcessor::loadAllPrograms() +{ + lastProgramsUpdated = juce::Time::getCurrentTime(); + + updateState(); + + programs.clear(); + + // Migrate user presets from legacy location (one-time operation) + migrateUserPresets(); + + // Load factory presets from commonAppData + juce::File factoryDir = getFactoryPresetDirectory(); + if (factoryDir.isDirectory()) + { + juce::Array factoryFiles; + factoryDir.findChildFiles (factoryFiles, juce::File::findFiles, true, "*.xml"); + + for (auto f : factoryFiles) + { + auto program = createProgram(); + program->loadFromFile (f, false); + programs.add (program); + } + } + + // Load user presets from userAppData + juce::File userDir = getProgramDirectory(); + if (userDir.isDirectory()) + { + juce::Array userFiles; + userDir.findChildFiles (userFiles, juce::File::findFiles, true, "*.xml"); + + for (auto f : userFiles) + { + auto program = createProgram(); + program->loadFromFile (f, false); + programs.add (program); + } + } + + std::sort (programs.begin(), programs.end(), [](const auto& a, const auto& b) { return a->name.compareIgnoreCase (b->name) < 0; }); + + // Create the default program + auto defaultProgram = createProgram(); + defaultProgram->name = "Default"; + defaultProgram->saveProcessor (*this); + + programs.insert (0, defaultProgram); +} + +juce::StringArray WavetableAudioProcessor::getWavetableList() +{ + juce::StringArray tables; + + juce::File wavetableDir = getFactoryWavetableDirectory(); + if (wavetableDir.isDirectory()) + { + juce::Array files; + wavetableDir.findChildFiles (files, juce::File::findFiles, true, "*.wt2048"); + + for (auto& f : files) + tables.add (f.getFileNameWithoutExtension()); + } + + tables.sortNatural(); + return tables; +} + //============================================================================== void WavetableAudioProcessor::stateUpdated() { @@ -797,57 +870,6 @@ void WavetableAudioProcessor::updateState() state.setProperty ("wt2Data", userTable2.toBase64Encoding(), nullptr); } -//============================================================================== -juce::File WavetableAudioProcessor::getProgramDirectory() -{ - auto dir = userResourceRoot().getChildFile ("Presets"); - - if (! dir.isDirectory()) - dir.createDirectory(); - - return dir; -} - -juce::Array 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 WavetableAudioProcessor::getWavetableFiles() const -{ - juce::Array 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() { @@ -967,15 +989,14 @@ bool WavetableAudioProcessor::isBusesLayoutSupported (const BusesLayout& layout) void WavetableAudioProcessor::processBlock (juce::AudioBuffer& buffer, juce::MidiBuffer& midi) { juce::ScopedNoDenormals noDenormals; - - if (buffer.getNumChannels() != 2) - return; - if (! dspLock.tryEnter()) { blockMissed = true; return; } + + if (buffer.getNumChannels() != 2) + return; if (midiLearn) midiLearn->processBlock (midi, buffer.getNumSamples()); diff --git a/plugin/Source/PluginProcessor.h b/plugin/Source/PluginProcessor.h index 5ef0f1b..a0688f8 100644 --- a/plugin/Source/PluginProcessor.h +++ b/plugin/Source/PluginProcessor.h @@ -24,9 +24,6 @@ public: bool supportsMPE() const override { return true; } - juce::File getProgramDirectory() override; - juce::Array getFactoryProgramDirectories() override; - void stateUpdated() override; void updateState() override; @@ -55,8 +52,14 @@ public: void reloadWavetables(); void incWavetable (int osc, int delta); bool loadUserWavetable (int osc, const juce::File& f, int sz); - juce::StringArray getWavetableNames() const; - juce::Array getWavetableFiles() const; + + juce::File getFactoryWavetableDirectory(); + juce::File getFactoryPresetDirectory(); + juce::File getProgramDirectory() override; + juce::File getLegacyProgramDirectory(); + void loadAllPrograms() override; + void migrateUserPresets(); + juce::StringArray getWavetableList(); void applyEffects (juce::AudioSampleBuffer& buffer); void applyEffect (juce::AudioSampleBuffer& buffer, int fxId); diff --git a/release.sh b/release.sh index d86c90c..1b72bee 100755 --- a/release.sh +++ b/release.sh @@ -4,10 +4,7 @@ set -x cd "$(dirname "$0")" ROOT=$(pwd) -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}" +VER="$GITHUB_REF_NAME" # Extract the changelog section for the current version # Matches version with optional colon, captures until the next version line or EOF @@ -26,41 +23,4 @@ fi echo "$NOTES" > /tmp/release_notes.txt -# --- 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 +gh release create "$VER" --title "$VER" -F /tmp/release_notes.txt ./Binaries\ Linux/*.zip ./Binaries\ Windows/*.zip ./Binaries\ macOS/*.zip diff --git a/tag.sh b/tag.sh index b903424..eb1bdb5 100755 --- a/tag.sh +++ b/tag.sh @@ -13,5 +13,5 @@ if ! grep -q "^${VER}:*$" Changelist.txt; then exit 1 fi -echo "Tagging [v$VER]" -git tag "v$VER" && git push origin "v$VER" +echo "Tagging [$VER]" +git tag "$VER" && git push origin "$VER"