From da25dcde757e60eb3bc3e29882edeb0fc5f1d115 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Fri, 16 Feb 2024 10:09:35 +0100 Subject: [PATCH] fx(pp)_trem + fixed some product.json --- examples/fx_chorus/src/product.json | 2 +- examples/fx_comb/src/product.json | 2 +- examples/fx_flanger/src/product.json | 2 +- examples/fx_phaser/src/product.json | 2 +- examples/fx_ring_mod/src/product.json | 2 +- examples/fx_trem/src/android.json | 5 ++ examples/fx_trem/src/bw_example_fx_trem.c | 54 -------------- examples/fx_trem/src/bw_example_fx_trem.h | 59 --------------- examples/fx_trem/src/cmd.json | 6 ++ examples/fx_trem/src/config.h | 88 ----------------------- examples/fx_trem/src/config.js | 43 ----------- examples/fx_trem/src/daisy-seed.json | 5 ++ examples/fx_trem/src/ios.json | 5 ++ examples/fx_trem/src/lv2.json | 12 ++++ examples/fx_trem/src/plugin.h | 55 ++++++++++++++ examples/fx_trem/src/product.json | 46 ++++++++++++ examples/fx_trem/src/vst3.json | 11 +++ examples/fxpp_chorus/src/product.json | 2 +- examples/fxpp_comb/src/product.json | 2 +- examples/fxpp_flanger/src/product.json | 2 +- examples/fxpp_phaser/src/product.json | 2 +- examples/fxpp_ring_mod/src/product.json | 2 +- examples/fxpp_trem/src/android.json | 5 ++ examples/fxpp_trem/src/cmd.json | 6 ++ examples/fxpp_trem/src/daisy-seed.json | 5 ++ examples/fxpp_trem/src/impl.cpp | 53 ++++++++++++++ examples/fxpp_trem/src/ios.json | 5 ++ examples/fxpp_trem/src/lv2.json | 12 ++++ examples/fxpp_trem/src/product.json | 46 ++++++++++++ examples/fxpp_trem/src/vst3.json | 11 +++ 30 files changed, 298 insertions(+), 254 deletions(-) create mode 100644 examples/fx_trem/src/android.json delete mode 100644 examples/fx_trem/src/bw_example_fx_trem.c delete mode 100644 examples/fx_trem/src/bw_example_fx_trem.h create mode 100644 examples/fx_trem/src/cmd.json delete mode 100644 examples/fx_trem/src/config.h delete mode 100644 examples/fx_trem/src/config.js create mode 100644 examples/fx_trem/src/daisy-seed.json create mode 100644 examples/fx_trem/src/ios.json create mode 100644 examples/fx_trem/src/lv2.json create mode 100644 examples/fx_trem/src/plugin.h create mode 100644 examples/fx_trem/src/product.json create mode 100644 examples/fx_trem/src/vst3.json create mode 100644 examples/fxpp_trem/src/android.json create mode 100644 examples/fxpp_trem/src/cmd.json create mode 100644 examples/fxpp_trem/src/daisy-seed.json create mode 100644 examples/fxpp_trem/src/impl.cpp create mode 100644 examples/fxpp_trem/src/ios.json create mode 100644 examples/fxpp_trem/src/lv2.json create mode 100644 examples/fxpp_trem/src/product.json create mode 100644 examples/fxpp_trem/src/vst3.json diff --git a/examples/fx_chorus/src/product.json b/examples/fx_chorus/src/product.json index 8bbaf22..4164621 100644 --- a/examples/fx_chorus/src/product.json +++ b/examples/fx_chorus/src/product.json @@ -1,6 +1,6 @@ { "product": { - "name": "Brickwork chorus example", + "name": "Brickworks chorus example", "version": "1.1.0", "buildVersion": "1", "bundleName": "bw_example_fx_chorus", diff --git a/examples/fx_comb/src/product.json b/examples/fx_comb/src/product.json index 7e4df5e..52dff3e 100644 --- a/examples/fx_comb/src/product.json +++ b/examples/fx_comb/src/product.json @@ -1,6 +1,6 @@ { "product": { - "name": "Brickwork comb filter example", + "name": "Brickworks comb filter example", "version": "1.1.0", "buildVersion": "1", "bundleName": "bw_example_fx_comb", diff --git a/examples/fx_flanger/src/product.json b/examples/fx_flanger/src/product.json index c291a9e..ba026e3 100644 --- a/examples/fx_flanger/src/product.json +++ b/examples/fx_flanger/src/product.json @@ -1,6 +1,6 @@ { "product": { - "name": "Brickwork flanger example", + "name": "Brickworks flanger example", "version": "1.1.0", "buildVersion": "1", "bundleName": "bw_example_fx_flanger", diff --git a/examples/fx_phaser/src/product.json b/examples/fx_phaser/src/product.json index 3736e90..e8d48b6 100644 --- a/examples/fx_phaser/src/product.json +++ b/examples/fx_phaser/src/product.json @@ -1,6 +1,6 @@ { "product": { - "name": "Brickwork phaser example", + "name": "Brickworks phaser example", "version": "1.1.0", "buildVersion": "1", "bundleName": "bw_example_fx_phaser", diff --git a/examples/fx_ring_mod/src/product.json b/examples/fx_ring_mod/src/product.json index 391fded..0808501 100644 --- a/examples/fx_ring_mod/src/product.json +++ b/examples/fx_ring_mod/src/product.json @@ -1,6 +1,6 @@ { "product": { - "name": "Brickwork ring modulator example", + "name": "Brickworks ring modulator example", "version": "1.1.0", "buildVersion": "1", "bundleName": "bw_example_fx_ring_mod", diff --git a/examples/fx_trem/src/android.json b/examples/fx_trem/src/android.json new file mode 100644 index 0000000..e18a43a --- /dev/null +++ b/examples/fx_trem/src/android.json @@ -0,0 +1,5 @@ +{ + "android": { + "javaPackageName": "com.orastron.bw_example_fx_trem" + } +} diff --git a/examples/fx_trem/src/bw_example_fx_trem.c b/examples/fx_trem/src/bw_example_fx_trem.c deleted file mode 100644 index 024806d..0000000 --- a/examples/fx_trem/src/bw_example_fx_trem.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Brickworks - * - * Copyright (C) 2023 Orastron Srl unipersonale - * - * Brickworks is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, version 3 of the License. - * - * Brickworks 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Brickworks. If not, see . - * - * File author: Stefano D'Angelo - */ - -#include "bw_example_fx_trem.h" - -void bw_example_fx_trem_init(bw_example_fx_trem *instance) { - bw_trem_init(&instance->trem_coeffs); -} - -void bw_example_fx_trem_set_sample_rate(bw_example_fx_trem *instance, float sample_rate) { - bw_trem_set_sample_rate(&instance->trem_coeffs, sample_rate); -} - -void bw_example_fx_trem_reset(bw_example_fx_trem *instance) { - bw_trem_reset_coeffs(&instance->trem_coeffs); - bw_trem_reset_state(&instance->trem_coeffs, &instance->trem_state, 0.f); -} - -void bw_example_fx_trem_process(bw_example_fx_trem *instance, const float** x, float** y, int n_samples) { - bw_trem_process(&instance->trem_coeffs, &instance->trem_state, x[0], y[0], n_samples); -} - -void bw_example_fx_trem_set_parameter(bw_example_fx_trem *instance, int index, float value) { - instance->params[index] = value; - switch (index) { - case p_rate: - bw_trem_set_rate(&instance->trem_coeffs, (20.f - 1.f) * value * value * value + 1.f); - break; - case p_amount: - bw_trem_set_amount(&instance->trem_coeffs, value); - break; - } -} - -float bw_example_fx_trem_get_parameter(bw_example_fx_trem *instance, int index) { - return instance->params[index]; -} diff --git a/examples/fx_trem/src/bw_example_fx_trem.h b/examples/fx_trem/src/bw_example_fx_trem.h deleted file mode 100644 index 5c30986..0000000 --- a/examples/fx_trem/src/bw_example_fx_trem.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Brickworks - * - * Copyright (C) 2023 Orastron Srl unipersonale - * - * Brickworks is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, version 3 of the License. - * - * Brickworks 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Brickworks. If not, see . - * - * File author: Stefano D'Angelo - */ - -#ifndef _BW_EXAMPLE_FX_TREM_H -#define _BW_EXAMPLE_FX_TREM_H - -#include "platform.h" - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -enum { - p_rate, - p_amount, - p_n -}; - -struct _bw_example_fx_trem { - // Sub-components - bw_trem_coeffs trem_coeffs; - bw_trem_state trem_state; - - // Parameters - float params[p_n]; -}; -typedef struct _bw_example_fx_trem bw_example_fx_trem; - -void bw_example_fx_trem_init(bw_example_fx_trem *instance); -void bw_example_fx_trem_set_sample_rate(bw_example_fx_trem *instance, float sample_rate); -void bw_example_fx_trem_reset(bw_example_fx_trem *instance); -void bw_example_fx_trem_process(bw_example_fx_trem *instance, const float** x, float** y, int n_samples); -void bw_example_fx_trem_set_parameter(bw_example_fx_trem *instance, int index, float value); -float bw_example_fx_trem_get_parameter(bw_example_fx_trem *instance, int index); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/examples/fx_trem/src/cmd.json b/examples/fx_trem/src/cmd.json new file mode 100644 index 0000000..b162c0d --- /dev/null +++ b/examples/fx_trem/src/cmd.json @@ -0,0 +1,6 @@ +{ + "cmd": { + "busIds": [ "input", "output" ], + "parameterIds": [ "rate", "amount" ] + } +} diff --git a/examples/fx_trem/src/config.h b/examples/fx_trem/src/config.h deleted file mode 100644 index 716540b..0000000 --- a/examples/fx_trem/src/config.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Brickworks - * - * Copyright (C) 2023 Orastron Srl unipersonale - * - * Brickworks is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, version 3 of the License. - * - * Brickworks 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Brickworks. If not, see . - * - * File authors: Stefano D'Angelo - */ - -#ifndef _CONFIG_H -#define _CONFIG_H - -// Definitions - -#define IO_MONO 1 -#define IO_STEREO (1<<1) - -struct config_io_bus { - const char *name; - char out; - char aux; - char cv; - char configs; -}; - -struct config_parameter { - const char *name; - const char *shortName; - const char *units; - char out; - char bypass; - int steps; - float defaultValueUnmapped; -}; - -// Data - -#define COMPANY_NAME "Orastron" -#define COMPANY_WEBSITE "https://www.orastron.com/" -#define COMPANY_MAILTO "mailto:info@orastron.com" - -#define PLUGIN_NAME "bw_example_fx_trem" -#define PLUGIN_VERSION "1.0.0" - -#define NUM_BUSES_IN 1 -#define NUM_BUSES_OUT 1 -#define NUM_CHANNELS_IN 1 -#define NUM_CHANNELS_OUT 1 - -static struct config_io_bus config_buses_in[NUM_BUSES_IN] = { - { "Audio in", 0, 0, 0, IO_MONO } -}; - -static struct config_io_bus config_buses_out[NUM_BUSES_OUT] = { - { "Audio out", 1, 0, 0, IO_MONO } -}; - -#define NUM_PARAMETERS 2 - -static struct config_parameter config_parameters[NUM_PARAMETERS] = { - { "Rate", "Rate", "", 0, 0, 0, 0.5f }, - { "Amount", "Amount", "", 0, 0, 0, 0.5f } -}; - -// Internal API - -#include "bw_example_fx_trem.h" - -#define P_TYPE bw_example_fx_trem -#define P_INIT bw_example_fx_trem_init -#define P_SET_SAMPLE_RATE bw_example_fx_trem_set_sample_rate -#define P_RESET bw_example_fx_trem_reset -#define P_PROCESS bw_example_fx_trem_process -#define P_SET_PARAMETER bw_example_fx_trem_set_parameter -#define P_GET_PARAMETER bw_example_fx_trem_get_parameter - -#endif diff --git a/examples/fx_trem/src/config.js b/examples/fx_trem/src/config.js deleted file mode 100644 index f704641..0000000 --- a/examples/fx_trem/src/config.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Brickworks - * - * Copyright (C) 2023 Orastron Srl unipersonale - * - * Brickworks is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, version 3 of the License. - * - * Brickworks 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Brickworks. If not, see . - * - * File author: Stefano D'Angelo - */ - -var buses = [ - { - stereo: false, - output: false - }, - { - stereo: false, - output: true - } -]; - -var parameters = [ - { - name: "Rate", - output: false, - defaultValue: 0.5 - }, - { - name: "Amount", - output: false, - defaultValue: 0.5 - } -]; diff --git a/examples/fx_trem/src/daisy-seed.json b/examples/fx_trem/src/daisy-seed.json new file mode 100644 index 0000000..00367a0 --- /dev/null +++ b/examples/fx_trem/src/daisy-seed.json @@ -0,0 +1,5 @@ +{ + "daisy_seed": { + "parameterPins": [ 15, 16 ] + } +} diff --git a/examples/fx_trem/src/ios.json b/examples/fx_trem/src/ios.json new file mode 100644 index 0000000..0141b5b --- /dev/null +++ b/examples/fx_trem/src/ios.json @@ -0,0 +1,5 @@ +{ + "ios": { + "productBundleIdentifier": "com.orastron.bw_example_fx_trem" + } +} diff --git a/examples/fx_trem/src/lv2.json b/examples/fx_trem/src/lv2.json new file mode 100644 index 0000000..ed2d3af --- /dev/null +++ b/examples/fx_trem/src/lv2.json @@ -0,0 +1,12 @@ +{ + "lv2": { + "prefixes": { + "bw_examples": "https://www.orastron.com/brickworks/examples/" + }, + "uri": "@bw_examples:fx_trem", + "types": [ "@lv2:ModulatorPlugin" ], + "version": "1.0", + "busSymbols": [ "input", "output" ], + "parameterSymbols": [ "rate", "amount" ] + } +} diff --git a/examples/fx_trem/src/plugin.h b/examples/fx_trem/src/plugin.h new file mode 100644 index 0000000..00ab88a --- /dev/null +++ b/examples/fx_trem/src/plugin.h @@ -0,0 +1,55 @@ +#include "common.h" +#include + +typedef struct plugin { + bw_trem_coeffs trem_coeffs; + bw_trem_state trem_state; +} plugin; + +static void plugin_init(plugin*instance) { + bw_trem_init(&instance->trem_coeffs); +} + +static void plugin_fini(plugin *instance) { + (void)instance; +} + +static void plugin_set_sample_rate(plugin *instance, float sample_rate) { + bw_trem_set_sample_rate(&instance->trem_coeffs, sample_rate); +} + +static size_t plugin_mem_req(plugin *instance) { + (void)instance; + return 0; +} + +static void plugin_mem_set(plugin *instance, void *mem) { + (void)instance; + (void)mem; +} + +static void plugin_reset(plugin *instance) { + bw_trem_reset_coeffs(&instance->trem_coeffs); + bw_trem_reset_state(&instance->trem_coeffs, &instance->trem_state, 0.f); +} + +static void plugin_set_parameter(plugin *instance, size_t index, float value) { + switch (index) { + case 0: + bw_trem_set_rate(&instance->trem_coeffs, value); + break; + case 1: + bw_trem_set_amount(&instance->trem_coeffs, 0.01f * value); + break; + } +} + +static float plugin_get_parameter(plugin *instance, size_t index) { + (void)instance; + (void)index; + return 0.f; +} + +static void plugin_process(plugin *instance, const float **inputs, float **outputs, size_t n_samples) { + bw_trem_process(&instance->trem_coeffs, &instance->trem_state, inputs[0], outputs[0], n_samples); +} diff --git a/examples/fx_trem/src/product.json b/examples/fx_trem/src/product.json new file mode 100644 index 0000000..9ef7b39 --- /dev/null +++ b/examples/fx_trem/src/product.json @@ -0,0 +1,46 @@ +{ + "product": { + "name": "Brickworks tremolo example", + "version": "1.1.0", + "buildVersion": "1", + "bundleName": "bw_example_fx_trem", + "buses": [ + { + "type": "audio", + "direction": "input", + "channels": "mono", + "name": "Input", + "shortName": "Input" + }, + { + "type": "audio", + "direction": "output", + "channels": "mono", + "name": "Output", + "shortName": "Output" + } + ], + "parameters": [ + { + "name": "Rate", + "shortName": "Rate", + "direction": "input", + "defaultValue": 5.0, + "minimum": 1.0, + "maximum": 20.0, + "unit": "hz", + "map": "logarithmic" + }, + { + "name": "Amount", + "shortName": "Amount", + "direction": "input", + "defaultValue": 0.0, + "minimum": 0.0, + "maximum": 100.0, + "unit": "pc", + "map": "linear" + } + ] + } +} diff --git a/examples/fx_trem/src/vst3.json b/examples/fx_trem/src/vst3.json new file mode 100644 index 0000000..ac1b02a --- /dev/null +++ b/examples/fx_trem/src/vst3.json @@ -0,0 +1,11 @@ +{ + "vst3": { + "plugin": { + "cid": "f26324d066ed46529197bb20f6bfc407" + }, + "controller": { + "cid": "17fcf5e1931541928264849e22e52112" + }, + "subCategory": "Fx|Modulation" + } +} diff --git a/examples/fxpp_chorus/src/product.json b/examples/fxpp_chorus/src/product.json index 12261fd..3f67937 100644 --- a/examples/fxpp_chorus/src/product.json +++ b/examples/fxpp_chorus/src/product.json @@ -1,6 +1,6 @@ { "product": { - "name": "Brickwork chorus example (C++)", + "name": "Brickworks chorus example (C++)", "version": "1.1.0", "buildVersion": "1", "bundleName": "bw_example_fxpp_chorus", diff --git a/examples/fxpp_comb/src/product.json b/examples/fxpp_comb/src/product.json index 7dd9cc2..ecc25a5 100644 --- a/examples/fxpp_comb/src/product.json +++ b/examples/fxpp_comb/src/product.json @@ -1,6 +1,6 @@ { "product": { - "name": "Brickwork comb filter example (C++)", + "name": "Brickworks comb filter example (C++)", "version": "1.1.0", "buildVersion": "1", "bundleName": "bw_example_fxpp_comb", diff --git a/examples/fxpp_flanger/src/product.json b/examples/fxpp_flanger/src/product.json index 152e388..05ef671 100644 --- a/examples/fxpp_flanger/src/product.json +++ b/examples/fxpp_flanger/src/product.json @@ -1,6 +1,6 @@ { "product": { - "name": "Brickwork flanger example (C++)", + "name": "Brickworks flanger example (C++)", "version": "1.1.0", "buildVersion": "1", "bundleName": "bw_example_fxpp_flanger", diff --git a/examples/fxpp_phaser/src/product.json b/examples/fxpp_phaser/src/product.json index cd9abd3..8970300 100644 --- a/examples/fxpp_phaser/src/product.json +++ b/examples/fxpp_phaser/src/product.json @@ -1,6 +1,6 @@ { "product": { - "name": "Brickwork phaser example (C++)", + "name": "Brickworks phaser example (C++)", "version": "1.1.0", "buildVersion": "1", "bundleName": "bw_example_fxpp_phaser", diff --git a/examples/fxpp_ring_mod/src/product.json b/examples/fxpp_ring_mod/src/product.json index af9bac2..7ccb608 100644 --- a/examples/fxpp_ring_mod/src/product.json +++ b/examples/fxpp_ring_mod/src/product.json @@ -1,6 +1,6 @@ { "product": { - "name": "Brickwork ring modulator example (C++)", + "name": "Brickworks ring modulator example (C++)", "version": "1.1.0", "buildVersion": "1", "bundleName": "bw_example_fxpp_ring_mod", diff --git a/examples/fxpp_trem/src/android.json b/examples/fxpp_trem/src/android.json new file mode 100644 index 0000000..5323c48 --- /dev/null +++ b/examples/fxpp_trem/src/android.json @@ -0,0 +1,5 @@ +{ + "android": { + "javaPackageName": "com.orastron.bw_example_fxpp_trem" + } +} diff --git a/examples/fxpp_trem/src/cmd.json b/examples/fxpp_trem/src/cmd.json new file mode 100644 index 0000000..b162c0d --- /dev/null +++ b/examples/fxpp_trem/src/cmd.json @@ -0,0 +1,6 @@ +{ + "cmd": { + "busIds": [ "input", "output" ], + "parameterIds": [ "rate", "amount" ] + } +} diff --git a/examples/fxpp_trem/src/daisy-seed.json b/examples/fxpp_trem/src/daisy-seed.json new file mode 100644 index 0000000..00367a0 --- /dev/null +++ b/examples/fxpp_trem/src/daisy-seed.json @@ -0,0 +1,5 @@ +{ + "daisy_seed": { + "parameterPins": [ 15, 16 ] + } +} diff --git a/examples/fxpp_trem/src/impl.cpp b/examples/fxpp_trem/src/impl.cpp new file mode 100644 index 0000000..14627bf --- /dev/null +++ b/examples/fxpp_trem/src/impl.cpp @@ -0,0 +1,53 @@ +#include "impl.h" + +#include "common.h" +#include + +using namespace Brickworks; + +extern "C" { + +impl impl_new(void) { + Trem<1> *instance = new Trem<1>(); + return reinterpret_cast(instance); +} + +void impl_free(impl handle) { + Trem<1> *instance = reinterpret_cast *>(handle); + delete instance; +} + +void impl_set_sample_rate(impl handle, float sample_rate) { + Trem<1> *instance = reinterpret_cast *>(handle); + instance->setSampleRate(sample_rate); +} + +void impl_reset(impl handle) { + Trem<1> *instance = reinterpret_cast *>(handle); + instance->reset(); +} + +void impl_set_parameter(impl handle, size_t index, float value) { + Trem<1> *instance = reinterpret_cast *>(handle); + switch (index) { + case 0: + instance->setRate(value); + break; + case 1: + instance->setAmount(0.01f * value); + break; + } +} + +float impl_get_parameter(impl handle, size_t index) { + (void)handle; + (void)index; + return 0.f; +} + +void impl_process(impl handle, const float **inputs, float **outputs, size_t n_samples) { + Trem<1> *instance = reinterpret_cast *>(handle); + instance->process(inputs, outputs, n_samples); +} + +} diff --git a/examples/fxpp_trem/src/ios.json b/examples/fxpp_trem/src/ios.json new file mode 100644 index 0000000..683acc6 --- /dev/null +++ b/examples/fxpp_trem/src/ios.json @@ -0,0 +1,5 @@ +{ + "ios": { + "productBundleIdentifier": "com.orastron.bw_example_fxpp_trem" + } +} diff --git a/examples/fxpp_trem/src/lv2.json b/examples/fxpp_trem/src/lv2.json new file mode 100644 index 0000000..4c55ffc --- /dev/null +++ b/examples/fxpp_trem/src/lv2.json @@ -0,0 +1,12 @@ +{ + "lv2": { + "prefixes": { + "bw_examples": "https://www.orastron.com/brickworks/examples/" + }, + "uri": "@bw_examples:fxpp_trem", + "types": [ "@lv2:ModulatorPlugin" ], + "version": "1.0", + "busSymbols": [ "input", "output" ], + "parameterSymbols": [ "rate", "amount" ] + } +} diff --git a/examples/fxpp_trem/src/product.json b/examples/fxpp_trem/src/product.json new file mode 100644 index 0000000..791b2cb --- /dev/null +++ b/examples/fxpp_trem/src/product.json @@ -0,0 +1,46 @@ +{ + "product": { + "name": "Brickworks tremolo example (C++)", + "version": "1.1.0", + "buildVersion": "1", + "bundleName": "bw_example_fxpp_trem", + "buses": [ + { + "type": "audio", + "direction": "input", + "channels": "mono", + "name": "Input", + "shortName": "Input" + }, + { + "type": "audio", + "direction": "output", + "channels": "mono", + "name": "Output", + "shortName": "Output" + } + ], + "parameters": [ + { + "name": "Rate", + "shortName": "Rate", + "direction": "input", + "defaultValue": 5.0, + "minimum": 1.0, + "maximum": 20.0, + "unit": "hz", + "map": "logarithmic" + }, + { + "name": "Amount", + "shortName": "Amount", + "direction": "input", + "defaultValue": 0.0, + "minimum": 0.0, + "maximum": 100.0, + "unit": "pc", + "map": "linear" + } + ] + } +} diff --git a/examples/fxpp_trem/src/vst3.json b/examples/fxpp_trem/src/vst3.json new file mode 100644 index 0000000..ba831f9 --- /dev/null +++ b/examples/fxpp_trem/src/vst3.json @@ -0,0 +1,11 @@ +{ + "vst3": { + "plugin": { + "cid": "9b34db749ac54cb4b123bcc085cff887" + }, + "controller": { + "cid": "e4bdf818d8e54d7ea3f44e052dd106f3" + }, + "subCategory": "Fx|Modulation" + } +}