diff --git a/examples/fx_pan/android/Makefile b/examples/fx_pan/android/Makefile deleted file mode 100644 index 94690da..0000000 --- a/examples/fx_pan/android/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) - -NAME := bw_example_fx_pan -SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fx_pan.c - -include ${ROOT_DIR}/../../common/android/android.mk diff --git a/examples/fx_pan/daisy-seed/Makefile b/examples/fx_pan/daisy-seed/Makefile deleted file mode 100644 index c90f1f1..0000000 --- a/examples/fx_pan/daisy-seed/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) - -TARGET = bw_example_fx_pan - -C_SOURCES += ${ROOT_DIR}/../src/bw_example_fx_pan.c - -include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk diff --git a/examples/fx_pan/daisy-seed/config_daisy_seed.h b/examples/fx_pan/daisy-seed/config_daisy_seed.h deleted file mode 100644 index 466205b..0000000 --- a/examples/fx_pan/daisy-seed/config_daisy_seed.h +++ /dev/null @@ -1,35 +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_DAISY_SEED_H -#define _CONFIG_DAISY_SEED_H - -struct config_pin { - int param_index; - int pin; -}; - -#define NUM_PINS 1 - -static struct config_pin config_pins[NUM_PINS] = { - { 0, 15 } -}; - -#endif diff --git a/examples/fx_pan/ios/Makefile b/examples/fx_pan/ios/Makefile deleted file mode 100644 index 5aaa1dc..0000000 --- a/examples/fx_pan/ios/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) - -NAME := bw_example_fx_pan -SOURCE := ${NAME}.c - -include ${ROOT_DIR}/../../common/ios/ios.mk diff --git a/examples/fx_pan/src/android.json b/examples/fx_pan/src/android.json new file mode 100644 index 0000000..e4409d1 --- /dev/null +++ b/examples/fx_pan/src/android.json @@ -0,0 +1,5 @@ +{ + "android": { + "javaPackageName": "com.orastron.bw_example_fx_pan" + } +} diff --git a/examples/fx_pan/src/bw_example_fx_pan.c b/examples/fx_pan/src/bw_example_fx_pan.c deleted file mode 100644 index 6699b29..0000000 --- a/examples/fx_pan/src/bw_example_fx_pan.c +++ /dev/null @@ -1,75 +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_pan.h" - -void bw_example_fx_pan_init(bw_example_fx_pan *instance) { - bw_pan_init(&instance->pan_coeffs); - bw_ppm_init(&instance->ppm_coeffs); -} - -void bw_example_fx_pan_set_sample_rate(bw_example_fx_pan *instance, float sample_rate) { - bw_pan_set_sample_rate(&instance->pan_coeffs, sample_rate); - bw_ppm_set_sample_rate(&instance->ppm_coeffs, sample_rate); -} - -void bw_example_fx_pan_reset(bw_example_fx_pan *instance) { - bw_pan_reset_coeffs(&instance->pan_coeffs); - bw_ppm_reset_coeffs(&instance->ppm_coeffs); - bw_ppm_reset_state(&instance->ppm_coeffs, &instance->ppm_l_state, 0.f); - bw_ppm_reset_state(&instance->ppm_coeffs, &instance->ppm_r_state, 0.f); -} - -void bw_example_fx_pan_process(bw_example_fx_pan *instance, const float** x, float** y, int n_samples) { - bw_pan_process(&instance->pan_coeffs, x[0], y[0], y[1], n_samples); - bw_ppm_state *ppm_states[2] = { &instance->ppm_l_state, &instance->ppm_r_state }; - bw_ppm_process_multi(&instance->ppm_coeffs, ppm_states, (const float **)y, NULL, 2, n_samples); -} - -void bw_example_fx_pan_set_parameter(bw_example_fx_pan *instance, int index, float value) { - instance->params[index] = value; - switch (index) { - case p_pan: - bw_pan_set_pan(&instance->pan_coeffs, value + value - 1.f); - break; - } -} - -float bw_example_fx_pan_get_parameter(bw_example_fx_pan *instance, int index) { - float r = 0.f; - switch (index) { - case p_pan: - r = instance->params[p_pan]; - break; - case p_pan + 1: - { - const float v = bw_ppm_get_y_z1(&instance->ppm_l_state); - r = v < -200.f ? 0.f : bw_clipf(0.01666666666666667f * v + 1.f, 0.f, 1.f); - break; - } - case p_pan + 2: - { - const float v = bw_ppm_get_y_z1(&instance->ppm_r_state); - r = v < -200.f ? 0.f : bw_clipf(0.01666666666666667f * v + 1.f, 0.f, 1.f); - break; - } - } - return r; -} diff --git a/examples/fx_pan/src/bw_example_fx_pan.h b/examples/fx_pan/src/bw_example_fx_pan.h deleted file mode 100644 index a63c506..0000000 --- a/examples/fx_pan/src/bw_example_fx_pan.h +++ /dev/null @@ -1,62 +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_PAN_H -#define _BW_EXAMPLE_FX_PAN_H - -#include "platform.h" - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -enum { - p_pan, - p_n -}; - -struct _bw_example_fx_pan { - // Sub-components - bw_pan_coeffs pan_coeffs; - bw_ppm_coeffs ppm_coeffs; - bw_ppm_state ppm_l_state; - bw_ppm_state ppm_r_state; - - // Parameters - float params[p_n]; -}; -typedef struct _bw_example_fx_pan bw_example_fx_pan; - -void bw_example_fx_pan_init(bw_example_fx_pan *instance); -void bw_example_fx_pan_set_sample_rate(bw_example_fx_pan *instance, float sample_rate); -void bw_example_fx_pan_reset(bw_example_fx_pan *instance); -void bw_example_fx_pan_process(bw_example_fx_pan *instance, const float** x, float** y, int n_samples); -void bw_example_fx_pan_set_parameter(bw_example_fx_pan *instance, int index, float value); -float bw_example_fx_pan_get_parameter(bw_example_fx_pan *instance, int index); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/examples/fx_pan/src/cmd.json b/examples/fx_pan/src/cmd.json new file mode 100644 index 0000000..b1b42d6 --- /dev/null +++ b/examples/fx_pan/src/cmd.json @@ -0,0 +1,6 @@ +{ + "cmd": { + "busIds": [ "input", "output" ], + "parameterIds": [ "pan", "l_level", "r_level" ] + } +} diff --git a/examples/fx_pan/src/config.h b/examples/fx_pan/src/config.h deleted file mode 100644 index 1da1a0b..0000000 --- a/examples/fx_pan/src/config.h +++ /dev/null @@ -1,89 +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_pan" -#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 2 - -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_STEREO } -}; - -#define NUM_PARAMETERS 3 - -static struct config_parameter config_parameters[NUM_PARAMETERS] = { - { "Pan", "Pan", "", 0, 0, 0, 0.5f }, - { "Left level", "L Level", "", 1, 0, 0, 0.f }, - { "Right level", "R Level", "", 1, 0, 0, 0.f } -}; - -// Internal API - -#include "bw_example_fx_pan.h" - -#define P_TYPE bw_example_fx_pan -#define P_INIT bw_example_fx_pan_init -#define P_SET_SAMPLE_RATE bw_example_fx_pan_set_sample_rate -#define P_RESET bw_example_fx_pan_reset -#define P_PROCESS bw_example_fx_pan_process -#define P_SET_PARAMETER bw_example_fx_pan_set_parameter -#define P_GET_PARAMETER bw_example_fx_pan_get_parameter - -#endif diff --git a/examples/fx_pan/src/config.js b/examples/fx_pan/src/config.js deleted file mode 100644 index 8bd233b..0000000 --- a/examples/fx_pan/src/config.js +++ /dev/null @@ -1,48 +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: true, - output: true - } -]; - -var parameters = [ - { - name: "Pan", - output: false, - defaultValue: 0.5 - }, - { - name: "Left level", - output: true, - defaultValue: 0.0 - }, - { - name: "Right level", - output: true, - defaultValue: 0.0 - } -]; diff --git a/examples/fx_pan/src/daisy-seed.json b/examples/fx_pan/src/daisy-seed.json new file mode 100644 index 0000000..19cad82 --- /dev/null +++ b/examples/fx_pan/src/daisy-seed.json @@ -0,0 +1,5 @@ +{ + "daisy_seed": { + "parameterPins": [ 15, 22, 23 ] + } +} diff --git a/examples/fx_pan/src/ios.json b/examples/fx_pan/src/ios.json new file mode 100644 index 0000000..29d45b1 --- /dev/null +++ b/examples/fx_pan/src/ios.json @@ -0,0 +1,5 @@ +{ + "ios": { + "productBundleIdentifier": "com.orastron.bw_example_fx_pan" + } +} diff --git a/examples/fx_pan/src/lv2.json b/examples/fx_pan/src/lv2.json new file mode 100644 index 0000000..4d7a214 --- /dev/null +++ b/examples/fx_pan/src/lv2.json @@ -0,0 +1,12 @@ +{ + "lv2": { + "prefixes": { + "bw_examples": "https://www.orastron.com/brickworks/examples/" + }, + "uri": "@bw_examples:fx_pan", + "types": [ "@lv2:SpatialPlugin" ], + "version": "1.0", + "busSymbols": [ "input", "output" ], + "parameterSymbols": [ "pan", "l_level", "r_level" ] + } +} diff --git a/examples/fx_pan/src/plugin.h b/examples/fx_pan/src/plugin.h new file mode 100644 index 0000000..61501f6 --- /dev/null +++ b/examples/fx_pan/src/plugin.h @@ -0,0 +1,65 @@ +#include "common.h" +#include +#include + +typedef struct plugin { + bw_pan_coeffs pan_coeffs; + bw_ppm_coeffs ppm_coeffs; + bw_ppm_state ppm_l_state; + bw_ppm_state ppm_r_state; +} plugin; + +static void plugin_init(plugin *instance) { + bw_pan_init(&instance->pan_coeffs); + bw_ppm_init(&instance->ppm_coeffs); +} + +static void plugin_fini(plugin *instance) { + (void)instance; +} + +static void plugin_set_sample_rate(plugin *instance, float sample_rate) { + bw_pan_set_sample_rate(&instance->pan_coeffs, sample_rate); + bw_ppm_set_sample_rate(&instance->ppm_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_pan_reset_coeffs(&instance->pan_coeffs); + bw_ppm_reset_coeffs(&instance->ppm_coeffs); + bw_ppm_reset_state(&instance->ppm_coeffs, &instance->ppm_l_state, 0.f); + bw_ppm_reset_state(&instance->ppm_coeffs, &instance->ppm_r_state, 0.f); +} + +static void plugin_set_parameter(plugin *instance, size_t index, float value) { + (void)index; + bw_pan_set_pan(&instance->pan_coeffs, 0.01f * value); +} + +static float plugin_get_parameter(plugin *instance, size_t index) { + float v = 0.f; + switch (index) { + case 1: + v = bw_ppm_get_y_z1(&instance->ppm_l_state); + break; + case 2: + v = bw_ppm_get_y_z1(&instance->ppm_r_state); + break; + } + return bw_clipf(v, -60.f, 0.f); +} + +static void plugin_process(plugin *instance, const float **inputs, float **outputs, size_t n_samples) { + bw_pan_process(&instance->pan_coeffs, inputs[0], outputs[0], outputs[1], n_samples); + bw_ppm_state *ppm_states[2] = { &instance->ppm_l_state, &instance->ppm_r_state }; + bw_ppm_process_multi(&instance->ppm_coeffs, ppm_states, (const float **)outputs, NULL, 2, n_samples); +} diff --git a/examples/fx_pan/src/product.json b/examples/fx_pan/src/product.json new file mode 100644 index 0000000..5ea4920 --- /dev/null +++ b/examples/fx_pan/src/product.json @@ -0,0 +1,56 @@ +{ + "product": { + "name": "Brickworks stereo panner example", + "version": "1.1.0", + "buildVersion": "1", + "bundleName": "bw_example_fx_pan", + "buses": [ + { + "type": "audio", + "direction": "input", + "channels": "mono", + "name": "Input", + "shortName": "Input" + }, + { + "type": "audio", + "direction": "output", + "channels": "stereo", + "name": "Output", + "shortName": "Output" + } + ], + "parameters": [ + { + "name": "Pan", + "shortName": "Pan", + "direction": "input", + "defaultValue": 0.0, + "minimum": -100.0, + "maximum": 100.0, + "unit": "pc", + "map": "linear" + }, + { + "name": "Left level", + "shortName": "L level", + "direction": "output", + "defaultValue": -60.0, + "minimum": -60.0, + "maximum": 0.0, + "unit": "db", + "map": "linear" + }, + { + "name": "Right level", + "shortName": "R level", + "direction": "output", + "defaultValue": -60.0, + "minimum": -60.0, + "maximum": 0.0, + "unit": "db", + "map": "linear" + } + ] + } +} diff --git a/examples/fx_pan/src/vst3.json b/examples/fx_pan/src/vst3.json new file mode 100644 index 0000000..6c2e69d --- /dev/null +++ b/examples/fx_pan/src/vst3.json @@ -0,0 +1,11 @@ +{ + "vst3": { + "plugin": { + "cid": "7ad61d9e26b44033bfae229a3e99719e" + }, + "controller": { + "cid": "59d578096b3d4822892725388e8a352c" + }, + "subCategory": "Fx|Spatial" + } +} diff --git a/examples/fx_pan/vst3/Makefile b/examples/fx_pan/vst3/Makefile deleted file mode 100644 index 3ec4e36..0000000 --- a/examples/fx_pan/vst3/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) - -NAME := bw_example_fx_pan -SOURCE := bw_example_fx_pan.c - -include ${ROOT_DIR}/../../common/vst3/vst3.mk - -CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG -#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP diff --git a/examples/fx_pan/vst3/config_vst3.h b/examples/fx_pan/vst3/config_vst3.h deleted file mode 100644 index ea3d041..0000000 --- a/examples/fx_pan/vst3/config_vst3.h +++ /dev/null @@ -1,36 +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, Paolo Marrone - */ - -#ifndef _VST3_CONFIG_H -#define _VST3_CONFIG_H - -#define PLUGIN_SUBCATEGORY "Fx|Spatial" - -#define PLUGIN_GUID_1 0x7ad61d9e -#define PLUGIN_GUID_2 0x26b44033 -#define PLUGIN_GUID_3 0xbfae229a -#define PLUGIN_GUID_4 0x3e99719e - -#define CTRL_GUID_1 0x59d57809 -#define CTRL_GUID_2 0x6b3d4822 -#define CTRL_GUID_3 0x89272538 -#define CTRL_GUID_4 0x8e8a352c - -#endif diff --git a/examples/fx_pan/web/Makefile b/examples/fx_pan/web/Makefile deleted file mode 100644 index 8e53cab..0000000 --- a/examples/fx_pan/web/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) -SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fx_pan.c - -include ${ROOT_DIR}/../../common/web/web.mk diff --git a/examples/fxpp_pan/src/android.json b/examples/fxpp_pan/src/android.json new file mode 100644 index 0000000..1ba3837 --- /dev/null +++ b/examples/fxpp_pan/src/android.json @@ -0,0 +1,5 @@ +{ + "android": { + "javaPackageName": "com.orastron.bw_example_fxpp_pan" + } +} diff --git a/examples/fxpp_pan/src/cmd.json b/examples/fxpp_pan/src/cmd.json new file mode 100644 index 0000000..b1b42d6 --- /dev/null +++ b/examples/fxpp_pan/src/cmd.json @@ -0,0 +1,6 @@ +{ + "cmd": { + "busIds": [ "input", "output" ], + "parameterIds": [ "pan", "l_level", "r_level" ] + } +} diff --git a/examples/fxpp_pan/src/daisy-seed.json b/examples/fxpp_pan/src/daisy-seed.json new file mode 100644 index 0000000..19cad82 --- /dev/null +++ b/examples/fxpp_pan/src/daisy-seed.json @@ -0,0 +1,5 @@ +{ + "daisy_seed": { + "parameterPins": [ 15, 22, 23 ] + } +} diff --git a/examples/fxpp_pan/src/impl.cpp b/examples/fxpp_pan/src/impl.cpp new file mode 100644 index 0000000..d9a7dbc --- /dev/null +++ b/examples/fxpp_pan/src/impl.cpp @@ -0,0 +1,64 @@ +#include "impl.h" + +#include "common.h" +#include +#include + +using namespace Brickworks; + +class Engine { +public: + Pan<1> pan; + PPM<2> ppm; +}; + +extern "C" { + +impl impl_new(void) { + Engine *instance = new Engine(); + return reinterpret_cast(instance); +} + +void impl_free(impl handle) { + Engine *instance = reinterpret_cast(handle); + delete instance; +} + +void impl_set_sample_rate(impl handle, float sample_rate) { + Engine *instance = reinterpret_cast(handle); + instance->pan.setSampleRate(sample_rate); + instance->ppm.setSampleRate(sample_rate); +} + +void impl_reset(impl handle) { + Engine *instance = reinterpret_cast(handle); + instance->pan.reset(); + instance->ppm.reset(); +} + +void impl_set_parameter(impl handle, size_t index, float value) { + (void)index; + Engine *instance = reinterpret_cast(handle); + instance->pan.setPan(0.01f * value); +} + +float impl_get_parameter(impl handle, size_t index) { + Engine *instance = reinterpret_cast(handle); + float v = instance->ppm.getYZ1(index - 1); + return v < -60.f ? -60.f : (v > 0.f ? 0.f : v); +} + +void impl_process(impl handle, const float **inputs, float **outputs, size_t n_samples) { + Engine *instance = reinterpret_cast(handle); +#ifdef WASM + float *yL[1] = {outputs[0]}; + float *yR[1] = {outputs[1]}; + instance->pan.process(inputs, yL, yR, n_samples); + instance->ppm.process(outputs, nullptr, n_samples); +#else + instance->pan.process({inputs[0]}, {inputs[1]}, {outputs[0]}, {outputs[1]}, n_samples); + instance->ppm.process({outputs[0], outputs[1]}, {nullptr, nullptr}, n_samples); +#endif +} + +} diff --git a/examples/fxpp_pan/src/ios.json b/examples/fxpp_pan/src/ios.json new file mode 100644 index 0000000..30d28f5 --- /dev/null +++ b/examples/fxpp_pan/src/ios.json @@ -0,0 +1,5 @@ +{ + "ios": { + "productBundleIdentifier": "com.orastron.bw_example_fxpp_pan" + } +} diff --git a/examples/fxpp_pan/src/lv2.json b/examples/fxpp_pan/src/lv2.json new file mode 100644 index 0000000..00192b8 --- /dev/null +++ b/examples/fxpp_pan/src/lv2.json @@ -0,0 +1,12 @@ +{ + "lv2": { + "prefixes": { + "bw_examples": "https://www.orastron.com/brickworks/examples/" + }, + "uri": "@bw_examples:fxpp_pan", + "types": [ "@lv2:SpatialPlugin" ], + "version": "1.0", + "busSymbols": [ "input", "output" ], + "parameterSymbols": [ "pan", "l_level", "r_level" ] + } +} diff --git a/examples/fxpp_pan/src/product.json b/examples/fxpp_pan/src/product.json new file mode 100644 index 0000000..3259cba --- /dev/null +++ b/examples/fxpp_pan/src/product.json @@ -0,0 +1,56 @@ +{ + "product": { + "name": "Brickworks stereo panner example (C++)", + "version": "1.1.0", + "buildVersion": "1", + "bundleName": "bw_example_fxpp_pan", + "buses": [ + { + "type": "audio", + "direction": "input", + "channels": "mono", + "name": "Input", + "shortName": "Input" + }, + { + "type": "audio", + "direction": "output", + "channels": "stereo", + "name": "Output", + "shortName": "Output" + } + ], + "parameters": [ + { + "name": "Pan", + "shortName": "Pan", + "direction": "input", + "defaultValue": 0.0, + "minimum": -100.0, + "maximum": 100.0, + "unit": "pc", + "map": "linear" + }, + { + "name": "Left level", + "shortName": "L level", + "direction": "output", + "defaultValue": -60.0, + "minimum": -60.0, + "maximum": 0.0, + "unit": "db", + "map": "linear" + }, + { + "name": "Right level", + "shortName": "R level", + "direction": "output", + "defaultValue": -60.0, + "minimum": -60.0, + "maximum": 0.0, + "unit": "db", + "map": "linear" + } + ] + } +} diff --git a/examples/fxpp_pan/src/vst3.json b/examples/fxpp_pan/src/vst3.json new file mode 100644 index 0000000..5a77b0c --- /dev/null +++ b/examples/fxpp_pan/src/vst3.json @@ -0,0 +1,11 @@ +{ + "vst3": { + "plugin": { + "cid": "47d6ebcd744540f28ea345d689a2a236" + }, + "controller": { + "cid": "646c6d37fbe846afa5e16bd76d1676c6" + }, + "subCategory": "Fx|Spatial" + } +} diff --git a/examples/tibia_clean.sh b/examples/tibia_clean.sh index 97d730f..e860826 100755 --- a/examples/tibia_clean.sh +++ b/examples/tibia_clean.sh @@ -4,7 +4,7 @@ echo Removing common files rm -fr common/cmd common/web common/daisy-seed common/lv2 common/vst3 common/android common/ios -dirs="fx_ap1 fx_ap2 fx_balance fx_bitcrush fx_cab fx_chorus fx_clip fx_comb fx_comp fx_delay fx_dist fx_drive fx_eq_3band fx_flanger fx_fuzz fx_hp1 fx_hs1 fx_lp1 fx_ls1 fx_mm1 fx_mm2 fx_noise_gate fx_notch fx_one_pole synth_simple fxpp_ap1 fxpp_ap2 fxpp_balance fxpp_bitcrush fxpp_cab fxpp_chorus fxpp_clip fxpp_comb fxpp_comp fxpp_delay fxpp_dist fxpp_drive fxpp_eq_3band fxpp_flanger fxpp_fuzz fxpp_hp1 fxpp_hs1 fxpp_lp1 fxpp_ls1 fxpp_mm1 fxpp_mm2 fxpp_noise_gate fxpp_notch fxpp_one_pole synthpp_simple" +dirs="fx_ap1 fx_ap2 fx_balance fx_bitcrush fx_cab fx_chorus fx_clip fx_comb fx_comp fx_delay fx_dist fx_drive fx_eq_3band fx_flanger fx_fuzz fx_hp1 fx_hs1 fx_lp1 fx_ls1 fx_mm1 fx_mm2 fx_noise_gate fx_notch fx_one_pole fx_pan synth_simple fxpp_ap1 fxpp_ap2 fxpp_balance fxpp_bitcrush fxpp_cab fxpp_chorus fxpp_clip fxpp_comb fxpp_comp fxpp_delay fxpp_dist fxpp_drive fxpp_eq_3band fxpp_flanger fxpp_fuzz fxpp_hp1 fxpp_hs1 fxpp_lp1 fxpp_ls1 fxpp_mm1 fxpp_mm2 fxpp_noise_gate fxpp_notch fxpp_one_pole fxpp_pan synthpp_simple" for d in $dirs; do echo Removing data files for $d diff --git a/examples/tibia_gen.sh b/examples/tibia_gen.sh index eb43f2c..c0f66e2 100755 --- a/examples/tibia_gen.sh +++ b/examples/tibia_gen.sh @@ -33,7 +33,7 @@ if [ "$1" = "common" ]; then fi if [ -z "$1" ]; then - dirs="fx_ap1 fx_ap2 fx_balance fx_bitcrush fx_cab fx_chorus fx_clip fx_comb fx_comp fx_delay fx_dist fx_drive fx_eq_3band fx_flanger fx_fuzz fx_hp1 fx_hs1 fx_lp1 fx_ls1 fx_mm1 fx_mm2 fx_noise_gate fx_notch fx_one_pole synth_simple fxpp_ap1 fxpp_ap2 fxpp_balance fxpp_bitcrush fxpp_cab fxpp_chorus fxpp_clip fxpp_comb fxpp_comp fxpp_delay fxpp_dist fxpp_drive fxpp_eq_3band fxpp_flanger fxpp_fuzz fxpp_hp1 fxpp_hs1 fxpp_lp1 fxpp_ls1 fxpp_mm1 fxpp_mm2 fxpp_noise_gate fxpp_notch fxpp_one_pole synthpp_simple" + dirs="fx_ap1 fx_ap2 fx_balance fx_bitcrush fx_cab fx_chorus fx_clip fx_comb fx_comp fx_delay fx_dist fx_drive fx_eq_3band fx_flanger fx_fuzz fx_hp1 fx_hs1 fx_lp1 fx_ls1 fx_mm1 fx_mm2 fx_noise_gate fx_notch fx_one_pole fx_pan synth_simple fxpp_ap1 fxpp_ap2 fxpp_balance fxpp_bitcrush fxpp_cab fxpp_chorus fxpp_clip fxpp_comb fxpp_comp fxpp_delay fxpp_dist fxpp_drive fxpp_eq_3band fxpp_flanger fxpp_fuzz fxpp_hp1 fxpp_hs1 fxpp_lp1 fxpp_ls1 fxpp_mm1 fxpp_mm2 fxpp_noise_gate fxpp_notch fxpp_one_pole fxpp_pan synthpp_simple" else dirs="$1" fi