forked from Wasted-Audio/hvcc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix/dpf improvements (Wasted-Audio#28)
* example.pd needs at least one receiver object (parameter) for DPF (otherwise it segfaults) * update readme. enable midi-out. some scaling for delayMs, adapted from old vst2 version * enable triggers (to use as bang object) * use patch_meta_file var instead * add meta to DPF; use selector for meta; clean up DPF code; add some docs to DPF example dir
- Loading branch information
Showing
16 changed files
with
169 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Daisy Generator example help | ||
|
||
To build these test patches: | ||
|
||
Install `arm-none-eabi-gcc` on your respective OS. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"board": "patch" | ||
"daisy": { | ||
"board": "patch" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"board": "petal" | ||
"daisy": { | ||
"board": "petal" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"board": "pod" | ||
"daisy": { | ||
"board": "pod" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"board": "seed" | ||
"daisy": { | ||
"board": "seed" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Distrho Plugin Format Generator example help | ||
|
||
DPF generator supports extra configuration via a supplied meta-data file. Each of these are optional and have either a default value or are entirely optional (description and homepage). Midi i/o ports are on by default, but can be set to `0` and they will be disabled. | ||
|
||
```json | ||
{ | ||
"dpf": { | ||
"description": "super simple test patch", | ||
"maker": "nobody", | ||
"homepage": "https://wasted.audio/plugin/test", | ||
"plugin_uri": "lv2://wasted.audio/lv2/testplugin", | ||
"version": "6, 6, 6", | ||
"license": "WTFPL", | ||
"midi_input": 0, | ||
"midi_output": 1, | ||
"plugin_formats": [ | ||
"lv2_dsp", | ||
"vst" | ||
] | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Distrho Plugin Format | ||
|
||
This output is for the Distrho Plugin Format ([DPF](https://github.com/DISTRHO/DPF)), and can be used to build LV2, VST2 and jack standalone versions of your Heavy code. | ||
|
||
# Build Instructions | ||
|
||
Make sure you have a (recent) DPF in the root of your output directory | ||
|
||
`$ git clone https://github.com/DISTRHO/DPF.git <out_dir>/dpf` | ||
|
||
Then compile the plugins from the source folder: | ||
|
||
`$ cd <out_dir>/plugin/source/ && make` | ||
|
||
This will result in an `<out_dir>/bin/` folder with all binary assets. | ||
|
||
## LV2 | ||
|
||
After this you will likely have to create the `.ttl` files for the LV2 version. First make sure you have a functioning `lv2_ttl_generator`: | ||
|
||
`$ cd <out_dir>/dpf/utils/lv2-ttl-generator && make` | ||
|
||
Then run it on your LV2 build from the binary directory and move the files into the target dir: | ||
|
||
`$ cd bin/ && ../dpf/utils/lv2_ttl_generator <plugin>.lv2/<plugin>_dsp.so && mv *ttl <plugin>.lv2/` | ||
|
||
You can now add your `<plugin>.lv2/` forder to your local `~/.lv2/` directory. | ||
|
||
## VST2 | ||
|
||
The VST2, `bin/<plugin>-vst.so`, can be placed directly into your `~/.vst/` dir and accessed by your DAW of choice. | ||
|
||
## Jack | ||
|
||
The Jack binary can be executed in place and used to test functionality `./bin/<plugin>`. Currently there is no UI, so this is not recommended. You will have to be running jack in order to use this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,23 @@ | ||
{{copyright}} | ||
|
||
#pragma once | ||
|
||
#define DISTRHO_PLUGIN_BRAND "Wasted Audio" | ||
#define DISTRHO_PLUGIN_NAME "{{name}}" | ||
{% if meta.plugin_uri is defined %} | ||
#define DISTRHO_PLUGIN_URI "{{meta.plugin_uri}}" | ||
{% else %} | ||
#define DISTRHO_PLUGIN_URI "http://wasted.audio/lv2/plugin/{{name}}" | ||
#define DISTRHO_PLUGIN_HOMEPAGE "https://github.com/wasted.audio/{{name}}" | ||
#define DISTRHO_PLUGIN_UNIQUE_ID 'p','l','u','g' | ||
#define DISTRHO_PLUGIN_VERSION 0,0,0 | ||
#define DISTRHO_PLUGIN_LABEL "my plugin" | ||
#define DISTRHO_PLUGIN_LICENSE "http://spdx.org/licenses/BSL-1.0" | ||
#define DISTRHO_PLUGIN_MAKER "Wasted Audio" | ||
#define DISTRHO_PLUGIN_DESCRIPTION "a plugin that does stuff" | ||
{% endif %} | ||
#define DISTRHO_PLUGIN_NUM_INPUTS {{num_input_channels}} | ||
#define DISTRHO_PLUGIN_NUM_OUTPUTS {{num_output_channels}} | ||
#define DISTRHO_PLUGIN_IS_SYNTH {{1 if num_input_channels == 0 and num_output_channels > 0 else 1}} | ||
#define DISTRHO_PLUGIN_HAS_UI 0 | ||
#define DISTRHO_PLUGIN_HAS_EMBED_UI 0 | ||
#define DISTRHO_PLUGIN_HAS_EXTERNAL_UI 0 | ||
#define DISTRHO_PLUGIN_IS_RT_SAFE 1 | ||
#define DISTRHO_PLUGIN_WANT_PROGRAMS 0 | ||
#define DISTRHO_PLUGIN_WANT_STATE 0 | ||
#define DISTRHO_PLUGIN_WANT_FULL_STATE 0 | ||
#define DISTRHO_PLUGIN_NUM_PROGRAMS 0 | ||
#define DISTRHO_PLUGIN_WANT_MIDI_INPUT 1 | ||
#define DISTRHO_PLUGIN_WANT_MIDI_INPUT {{meta.midi_input if meta.midi_input is defined else 1}} | ||
#define DISTRHO_PLUGIN_WANT_MIDI_OUTPUT {{meta.midi_output if meta.midi_output is defined else 1}} | ||
|
||
// for level monitoring | ||
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 1 | ||
#define DISTRHO_PLUGIN_WANT_DIRECT_ACCESS 0 |
Oops, something went wrong.