Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JanWilczek/audio-plugin-template
A template repository that you can use for creating audio plugins with the JUCE C++ framework. It is based on CMake, uses CPM package manager, the JUCE C++ framework (obviously), and the GoogleTest framework. All of these are easy to change on demand. You can also base off your new repo off this template because the setup is very simple.
https://github.com/JanWilczek/audio-plugin-template
cmake cpp juce juce-framework juce-plugin
Last synced: 3 months ago
JSON representation
A template repository that you can use for creating audio plugins with the JUCE C++ framework. It is based on CMake, uses CPM package manager, the JUCE C++ framework (obviously), and the GoogleTest framework. All of these are easy to change on demand. You can also base off your new repo off this template because the setup is very simple.
- Host: GitHub
- URL: https://github.com/JanWilczek/audio-plugin-template
- Owner: JanWilczek
- Created: 2023-07-19T17:02:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-21T06:18:40.000Z (5 months ago)
- Last Synced: 2024-06-21T23:46:14.172Z (5 months ago)
- Topics: cmake, cpp, juce, juce-framework, juce-plugin
- Language: C++
- Homepage:
- Size: 43.9 KB
- Stars: 76
- Watchers: 2
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-juce - audio-plugin-template
- awesome-musicdsp - wolfsound - audio-plugin-template - Jan Wilczek has made another excellent JUCE template (Audio plug-in templates)
README
# 🐺 WolfSound's Audio Plugin Template
![Cmake workflow success badge](https://github.com/JanWilczek/audio-plugin-template/actions/workflows/cmake.yml/badge.svg)
Want to create an audio plugin (e.g., a VST3 plugin) with C++ but don't know how to go about?
Heard about the [JUCE C++ framework](https://github.com/juce-framework/JUCE) but not sure how to start a JUCE project?
Want to use CMake with JUCE but don't know how?
Want to be able to easily integrate third-party C++ libraries to your project?
Want to unit test your audio plugin?
Want to ensure maximum safety of your software?
And all this with a click of a button?
Well, this template allows you to immediately start your JUCE C++ framework audio plugin project with a CMake-based project structure. It involves
* clear repo structure
* C++ 23 standard
* effortless handling of third-party dependencies with the CPM package manager; use the C++ libraries you want together with JUCE
* highest warning level and "treat warnings as errors"
* ready-to-go unit test project with GoogleTestAdditionally
* continuous integration made easy with Github actions: build and run tests on the main branch and on every pull request
* automatic clang-format on C++ files run on every commit; don't worry about code formatting anymore!I am personally using this template all the time.
Feel free to propose suggestions 😉
## Usage
This is a template repository which means you can right click "Use this template" on GitHub and create your own repo out of it.
After cloning it locally, you can proceed with the usual CMake workflow.
In the main repo directory execute
```bash
$ cmake -S . -B build
$ cmake --build build
```The first run will take the most time because the dependencies (CPM, JUCE, and googletest) need to be downloaded.
Alternatively, you can use bundled CMake presets:
```bash
$ cmake --preset default # uses the Ninja build system
$ cmake --build build
$ ctest --preset default
```Existing presets are `default`, `release`, and `Xcode`.
To run clang-format on every commit, in the main directory execute
```bash
pre-commit install
```(for this you may need to install `pre-commit` with `pip`: `pip install pre-commit`).
Don't forget to change "YourPluginName" to, well, your plugin name everywhere 😉
## How was this template built?
See how I create this template step by step in this video:
[![Audio plugin template tutorial video](http://img.youtube.com/vi/Uq7Hwt18s3s/0.jpg)](https://www.youtube.com/watch?v=Uq7Hwt18s3s "Audio plugin template tutorial video")