diff --git a/examples/fx_notch/android/Makefile b/examples/fx_notch/android/Makefile
deleted file mode 100644
index 6199022..0000000
--- a/examples/fx_notch/android/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
-
-NAME := bw_example_fx_notch
-SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fx_notch.c
-
-include ${ROOT_DIR}/../../common/android/android.mk
diff --git a/examples/fx_notch/daisy-seed/Makefile b/examples/fx_notch/daisy-seed/Makefile
deleted file mode 100644
index 933bf7e..0000000
--- a/examples/fx_notch/daisy-seed/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
-
-TARGET = bw_example_fx_notch
-
-C_SOURCES += ${ROOT_DIR}/../src/bw_example_fx_notch.c
-
-include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk
diff --git a/examples/fx_notch/daisy-seed/config_daisy_seed.h b/examples/fx_notch/daisy-seed/config_daisy_seed.h
deleted file mode 100644
index c56c264..0000000
--- a/examples/fx_notch/daisy-seed/config_daisy_seed.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
- */
-
-#ifndef _CONFIG_DAISY_SEED_H
-#define _CONFIG_DAISY_SEED_H
-
-struct config_pin {
- int param_index;
- int pin;
-};
-
-#define NUM_PINS 2
-
-static struct config_pin config_pins[NUM_PINS] = {
- { 0, 15 },
- { 1, 16 }
-};
-
-#endif
diff --git a/examples/fx_notch/ios/Makefile b/examples/fx_notch/ios/Makefile
deleted file mode 100644
index aff439d..0000000
--- a/examples/fx_notch/ios/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
-
-NAME := bw_example_fx_notch
-SOURCE := ${NAME}.c
-
-include ${ROOT_DIR}/../../common/ios/ios.mk
diff --git a/examples/fx_notch/src/android.json b/examples/fx_notch/src/android.json
new file mode 100644
index 0000000..c9ec08f
--- /dev/null
+++ b/examples/fx_notch/src/android.json
@@ -0,0 +1,5 @@
+{
+ "android": {
+ "javaPackageName": "com.orastron.bw_example_fx_notch"
+ }
+}
diff --git a/examples/fx_notch/src/bw_example_fx_notch.c b/examples/fx_notch/src/bw_example_fx_notch.c
deleted file mode 100644
index 15d0f5e..0000000
--- a/examples/fx_notch/src/bw_example_fx_notch.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_notch.h"
-
-void bw_example_fx_notch_init(bw_example_fx_notch *instance) {
- bw_notch_init(&instance->notch_coeffs);
-}
-
-void bw_example_fx_notch_set_sample_rate(bw_example_fx_notch *instance, float sample_rate) {
- bw_notch_set_sample_rate(&instance->notch_coeffs, sample_rate);
-}
-
-void bw_example_fx_notch_reset(bw_example_fx_notch *instance) {
- bw_notch_reset_coeffs(&instance->notch_coeffs);
- bw_notch_reset_state(&instance->notch_coeffs, &instance->notch_state, 0.f);
-}
-
-void bw_example_fx_notch_process(bw_example_fx_notch *instance, const float** x, float** y, int n_samples) {
- bw_notch_process(&instance->notch_coeffs, &instance->notch_state, x[0], y[0], n_samples);
-}
-
-void bw_example_fx_notch_set_parameter(bw_example_fx_notch *instance, int index, float value) {
- instance->params[index] = value;
- switch (index) {
- case p_cutoff:
- bw_notch_set_cutoff(&instance->notch_coeffs, (20e3f - 20.f) * value * value * value + 20.f);
- break;
- case p_Q:
- bw_notch_set_Q(&instance->notch_coeffs, 0.5f + 9.5f * value);
- break;
- }
-}
-
-float bw_example_fx_notch_get_parameter(bw_example_fx_notch *instance, int index) {
- return instance->params[index];
-}
diff --git a/examples/fx_notch/src/bw_example_fx_notch.h b/examples/fx_notch/src/bw_example_fx_notch.h
deleted file mode 100644
index bad5402..0000000
--- a/examples/fx_notch/src/bw_example_fx_notch.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_NOTCH_H
-#define _BW_EXAMPLE_FX_NOTCH_H
-
-#include "platform.h"
-
-#include
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-enum {
- p_cutoff,
- p_Q,
- p_n
-};
-
-struct _bw_example_fx_notch {
- // Sub-components
- bw_notch_coeffs notch_coeffs;
- bw_notch_state notch_state;
-
- // Parameters
- float params[p_n];
-};
-typedef struct _bw_example_fx_notch bw_example_fx_notch;
-
-void bw_example_fx_notch_init(bw_example_fx_notch *instance);
-void bw_example_fx_notch_set_sample_rate(bw_example_fx_notch *instance, float sample_rate);
-void bw_example_fx_notch_reset(bw_example_fx_notch *instance);
-void bw_example_fx_notch_process(bw_example_fx_notch *instance, const float** x, float** y, int n_samples);
-void bw_example_fx_notch_set_parameter(bw_example_fx_notch *instance, int index, float value);
-float bw_example_fx_notch_get_parameter(bw_example_fx_notch *instance, int index);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/examples/fx_notch/src/cmd.json b/examples/fx_notch/src/cmd.json
new file mode 100644
index 0000000..1de49bf
--- /dev/null
+++ b/examples/fx_notch/src/cmd.json
@@ -0,0 +1,6 @@
+{
+ "cmd": {
+ "busIds": [ "input", "output" ],
+ "parameterIds": [ "cutoff", "q" ]
+ }
+}
diff --git a/examples/fx_notch/src/config.h b/examples/fx_notch/src/config.h
deleted file mode 100644
index 894991c..0000000
--- a/examples/fx_notch/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_notch"
-#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] = {
- { "Cutoff", "Cutoff", "Hz", 0, 0, 0, 0.5f },
- { "Q", "Q", "", 0, 0, 0, 0.f }
-};
-
-// Internal API
-
-#include "bw_example_fx_notch.h"
-
-#define P_TYPE bw_example_fx_notch
-#define P_INIT bw_example_fx_notch_init
-#define P_SET_SAMPLE_RATE bw_example_fx_notch_set_sample_rate
-#define P_RESET bw_example_fx_notch_reset
-#define P_PROCESS bw_example_fx_notch_process
-#define P_SET_PARAMETER bw_example_fx_notch_set_parameter
-#define P_GET_PARAMETER bw_example_fx_notch_get_parameter
-
-#endif
diff --git a/examples/fx_notch/src/config.js b/examples/fx_notch/src/config.js
deleted file mode 100644
index fef667c..0000000
--- a/examples/fx_notch/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: "Cutoff",
- output: false,
- defaultValue: 0.5
- },
- {
- name: "Q",
- output: false,
- defaultValue: 0.0
- }
-];
diff --git a/examples/fx_notch/src/daisy-seed.json b/examples/fx_notch/src/daisy-seed.json
new file mode 100644
index 0000000..00367a0
--- /dev/null
+++ b/examples/fx_notch/src/daisy-seed.json
@@ -0,0 +1,5 @@
+{
+ "daisy_seed": {
+ "parameterPins": [ 15, 16 ]
+ }
+}
diff --git a/examples/fx_notch/src/ios.json b/examples/fx_notch/src/ios.json
new file mode 100644
index 0000000..1997e35
--- /dev/null
+++ b/examples/fx_notch/src/ios.json
@@ -0,0 +1,5 @@
+{
+ "ios": {
+ "productBundleIdentifier": "com.orastron.bw_example_fx_notch"
+ }
+}
diff --git a/examples/fx_notch/src/lv2.json b/examples/fx_notch/src/lv2.json
new file mode 100644
index 0000000..83aabff
--- /dev/null
+++ b/examples/fx_notch/src/lv2.json
@@ -0,0 +1,12 @@
+{
+ "lv2": {
+ "prefixes": {
+ "bw_examples": "https://www.orastron.com/brickworks/examples/"
+ },
+ "uri": "@bw_examples:fx_notch",
+ "types": [ "@lv2:FilterPlugin" ],
+ "version": "1.0",
+ "busSymbols": [ "input", "output" ],
+ "parameterSymbols": [ "cutoff", "q" ]
+ }
+}
diff --git a/examples/fx_notch/src/plugin.h b/examples/fx_notch/src/plugin.h
new file mode 100644
index 0000000..23629c7
--- /dev/null
+++ b/examples/fx_notch/src/plugin.h
@@ -0,0 +1,55 @@
+#include "common.h"
+#include
+
+typedef struct plugin {
+ bw_notch_coeffs notch_coeffs;
+ bw_notch_state notch_state;
+} plugin;
+
+static void plugin_init(plugin *instance) {
+ bw_notch_init(&instance->notch_coeffs);
+}
+
+static void plugin_fini(plugin *instance) {
+ (void)instance;
+}
+
+static void plugin_set_sample_rate(plugin *instance, float sample_rate) {
+ bw_notch_set_sample_rate(&instance->notch_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_notch_reset_coeffs(&instance->notch_coeffs);
+ bw_notch_reset_state(&instance->notch_coeffs, &instance->notch_state, 0.f);
+}
+
+static void plugin_set_parameter(plugin *instance, size_t index, float value) {
+ switch (index) {
+ case 0:
+ bw_notch_set_cutoff(&instance->notch_coeffs, value);
+ break;
+ case 1:
+ bw_notch_set_Q(&instance->notch_coeffs, 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_notch_process(&instance->notch_coeffs, &instance->notch_state, inputs[0], outputs[0], n_samples);
+}
diff --git a/examples/fx_notch/src/product.json b/examples/fx_notch/src/product.json
new file mode 100644
index 0000000..09c4f9b
--- /dev/null
+++ b/examples/fx_notch/src/product.json
@@ -0,0 +1,45 @@
+{
+ "product": {
+ "name": "Brickworks notch filter example",
+ "version": "1.1.0",
+ "buildVersion": "1",
+ "bundleName": "bw_example_fx_notch",
+ "buses": [
+ {
+ "type": "audio",
+ "direction": "input",
+ "channels": "mono",
+ "name": "Input",
+ "shortName": "Input"
+ },
+ {
+ "type": "audio",
+ "direction": "output",
+ "channels": "mono",
+ "name": "Output",
+ "shortName": "Output"
+ }
+ ],
+ "parameters": [
+ {
+ "name": "Cutoff",
+ "shortName": "Cutoff",
+ "direction": "input",
+ "defaultValue": 1000.0,
+ "minimum": 20.0,
+ "maximum": 20000.0,
+ "unit": "hz",
+ "map": "logarithmic"
+ },
+ {
+ "name": "Q",
+ "shortName": "Q",
+ "direction": "input",
+ "defaultValue": 0.5,
+ "minimum": 0.5,
+ "maximum": 10.0,
+ "map": "linear"
+ }
+ ]
+ }
+}
diff --git a/examples/fx_notch/src/vst3.json b/examples/fx_notch/src/vst3.json
new file mode 100644
index 0000000..033ddfd
--- /dev/null
+++ b/examples/fx_notch/src/vst3.json
@@ -0,0 +1,11 @@
+{
+ "vst3": {
+ "plugin": {
+ "cid": "3270185cbd574bbfb7656faaf126fa47"
+ },
+ "controller": {
+ "cid": "db7187e4cc5a49b3a734736acf5f8fec"
+ },
+ "subCategory": "Fx|Filter"
+ }
+}
diff --git a/examples/fx_notch/vst3/Makefile b/examples/fx_notch/vst3/Makefile
deleted file mode 100644
index 7ecc3bd..0000000
--- a/examples/fx_notch/vst3/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
-
-NAME := bw_example_fx_notch
-SOURCE := bw_example_fx_notch.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_notch/vst3/config_vst3.h b/examples/fx_notch/vst3/config_vst3.h
deleted file mode 100644
index 7bc634a..0000000
--- a/examples/fx_notch/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|Filter"
-
-#define PLUGIN_GUID_1 0x3270185c
-#define PLUGIN_GUID_2 0xbd574bbf
-#define PLUGIN_GUID_3 0xb7656faa
-#define PLUGIN_GUID_4 0xf126fa47
-
-#define CTRL_GUID_1 0xdb7187e4
-#define CTRL_GUID_2 0xcc5a49b3
-#define CTRL_GUID_3 0xa734736a
-#define CTRL_GUID_4 0xcf5f8fec
-
-#endif
diff --git a/examples/fx_notch/web/Makefile b/examples/fx_notch/web/Makefile
deleted file mode 100644
index 6324059..0000000
--- a/examples/fx_notch/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_notch.c
-
-include ${ROOT_DIR}/../../common/web/web.mk
diff --git a/examples/fx_one_pole/android/Makefile b/examples/fx_one_pole/android/Makefile
deleted file mode 100644
index b6c155b..0000000
--- a/examples/fx_one_pole/android/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
-
-NAME := bw_example_fx_one_pole
-SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fx_one_pole.c
-
-include ${ROOT_DIR}/../../common/android/android.mk
diff --git a/examples/fx_one_pole/daisy-seed/Makefile b/examples/fx_one_pole/daisy-seed/Makefile
deleted file mode 100644
index 916eb5e..0000000
--- a/examples/fx_one_pole/daisy-seed/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
-
-TARGET = bw_example_fx_one_pole
-
-C_SOURCES += ${ROOT_DIR}/../src/bw_example_fx_one_pole.c
-
-include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk
diff --git a/examples/fx_one_pole/daisy-seed/config_daisy_seed.h b/examples/fx_one_pole/daisy-seed/config_daisy_seed.h
deleted file mode 100644
index 466205b..0000000
--- a/examples/fx_one_pole/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_one_pole/ios/Makefile b/examples/fx_one_pole/ios/Makefile
deleted file mode 100644
index ef659ee..0000000
--- a/examples/fx_one_pole/ios/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
-
-NAME := bw_example_fx_one_pole
-SOURCE := ${NAME}.c
-
-include ${ROOT_DIR}/../../common/ios/ios.mk
diff --git a/examples/fx_one_pole/src/android.json b/examples/fx_one_pole/src/android.json
new file mode 100644
index 0000000..22dd498
--- /dev/null
+++ b/examples/fx_one_pole/src/android.json
@@ -0,0 +1,5 @@
+{
+ "android": {
+ "javaPackageName": "com.orastron.bw_example_fx_one_pole"
+ }
+}
diff --git a/examples/fx_one_pole/src/bw_example_fx_one_pole.c b/examples/fx_one_pole/src/bw_example_fx_one_pole.c
deleted file mode 100644
index 59f2c56..0000000
--- a/examples/fx_one_pole/src/bw_example_fx_one_pole.c
+++ /dev/null
@@ -1,47 +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_one_pole.h"
-
-void bw_example_fx_one_pole_init(bw_example_fx_one_pole *instance) {
- bw_one_pole_init(&instance->one_pole_coeffs);
-}
-
-void bw_example_fx_one_pole_set_sample_rate(bw_example_fx_one_pole *instance, float sample_rate) {
- bw_one_pole_set_sample_rate(&instance->one_pole_coeffs, sample_rate);
-}
-
-void bw_example_fx_one_pole_reset(bw_example_fx_one_pole *instance) {
- bw_one_pole_reset_coeffs(&instance->one_pole_coeffs);
- bw_one_pole_reset_state(&instance->one_pole_coeffs, &instance->one_pole_state, 0.f);
-}
-
-void bw_example_fx_one_pole_process(bw_example_fx_one_pole *instance, const float** x, float** y, int n_samples) {
- bw_one_pole_process(&instance->one_pole_coeffs, &instance->one_pole_state, x[0], y[0], n_samples);
-}
-
-void bw_example_fx_one_pole_set_parameter(bw_example_fx_one_pole *instance, int index, float value) {
- instance->params[index] = value;
- bw_one_pole_set_cutoff(&instance->one_pole_coeffs, 20.f + (20e3f - 20.f) * value * value * value);
-}
-
-float bw_example_fx_one_pole_get_parameter(bw_example_fx_one_pole *instance, int index) {
- return instance->params[index];
-}
diff --git a/examples/fx_one_pole/src/bw_example_fx_one_pole.h b/examples/fx_one_pole/src/bw_example_fx_one_pole.h
deleted file mode 100644
index 4815e7b..0000000
--- a/examples/fx_one_pole/src/bw_example_fx_one_pole.h
+++ /dev/null
@@ -1,58 +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_ONE_POLE_H
-#define _BW_EXAMPLE_FX_ONE_POLE_H
-
-#include "platform.h"
-
-#include
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-enum {
- p_cutoff,
- p_n
-};
-
-struct _bw_example_fx_one_pole {
- // Sub-components
- bw_one_pole_coeffs one_pole_coeffs;
- bw_one_pole_state one_pole_state;
-
- // Parameters
- float params[p_n];
-};
-typedef struct _bw_example_fx_one_pole bw_example_fx_one_pole;
-
-void bw_example_fx_one_pole_init(bw_example_fx_one_pole *instance);
-void bw_example_fx_one_pole_set_sample_rate(bw_example_fx_one_pole *instance, float sample_rate);
-void bw_example_fx_one_pole_reset(bw_example_fx_one_pole *instance);
-void bw_example_fx_one_pole_process(bw_example_fx_one_pole *instance, const float** x, float** y, int n_samples);
-void bw_example_fx_one_pole_set_parameter(bw_example_fx_one_pole *instance, int index, float value);
-float bw_example_fx_one_pole_get_parameter(bw_example_fx_one_pole *instance, int index);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/examples/fx_one_pole/src/cmd.json b/examples/fx_one_pole/src/cmd.json
new file mode 100644
index 0000000..ca468fa
--- /dev/null
+++ b/examples/fx_one_pole/src/cmd.json
@@ -0,0 +1,6 @@
+{
+ "cmd": {
+ "busIds": [ "input", "output" ],
+ "parameterIds": [ "cutoff" ]
+ }
+}
diff --git a/examples/fx_one_pole/src/config.h b/examples/fx_one_pole/src/config.h
deleted file mode 100644
index 549b070..0000000
--- a/examples/fx_one_pole/src/config.h
+++ /dev/null
@@ -1,87 +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_one_pole"
-#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 1
-
-static struct config_parameter config_parameters[NUM_PARAMETERS] = {
- { "Cutoff", "Cutoff", "Hz", 0, 0, 0, 0.5f },
-};
-
-// Internal API
-
-#include "bw_example_fx_one_pole.h"
-
-#define P_TYPE bw_example_fx_one_pole
-#define P_INIT bw_example_fx_one_pole_init
-#define P_SET_SAMPLE_RATE bw_example_fx_one_pole_set_sample_rate
-#define P_RESET bw_example_fx_one_pole_reset
-#define P_PROCESS bw_example_fx_one_pole_process
-#define P_SET_PARAMETER bw_example_fx_one_pole_set_parameter
-#define P_GET_PARAMETER bw_example_fx_one_pole_get_parameter
-
-#endif
diff --git a/examples/fx_one_pole/src/config.js b/examples/fx_one_pole/src/config.js
deleted file mode 100644
index 7062107..0000000
--- a/examples/fx_one_pole/src/config.js
+++ /dev/null
@@ -1,38 +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: "Cutoff",
- output: false,
- defaultValue: 0.5
- }
-];
diff --git a/examples/fx_one_pole/src/daisy-seed.json b/examples/fx_one_pole/src/daisy-seed.json
new file mode 100644
index 0000000..32d95a2
--- /dev/null
+++ b/examples/fx_one_pole/src/daisy-seed.json
@@ -0,0 +1,5 @@
+{
+ "daisy_seed": {
+ "parameterPins": [ 15 ]
+ }
+}
diff --git a/examples/fx_one_pole/src/ios.json b/examples/fx_one_pole/src/ios.json
new file mode 100644
index 0000000..3eb89f4
--- /dev/null
+++ b/examples/fx_one_pole/src/ios.json
@@ -0,0 +1,5 @@
+{
+ "ios": {
+ "productBundleIdentifier": "com.orastron.bw_example_fx_one_pole"
+ }
+}
diff --git a/examples/fx_one_pole/src/lv2.json b/examples/fx_one_pole/src/lv2.json
new file mode 100644
index 0000000..eaf35d8
--- /dev/null
+++ b/examples/fx_one_pole/src/lv2.json
@@ -0,0 +1,12 @@
+{
+ "lv2": {
+ "prefixes": {
+ "bw_examples": "https://www.orastron.com/brickworks/examples/"
+ },
+ "uri": "@bw_examples:fx_one_pole",
+ "types": [ "@lv2:LowpassPlugin" ],
+ "version": "1.0",
+ "busSymbols": [ "input", "output" ],
+ "parameterSymbols": [ "cutoff" ]
+ }
+}
diff --git a/examples/fx_one_pole/src/plugin.h b/examples/fx_one_pole/src/plugin.h
new file mode 100644
index 0000000..2ed557d
--- /dev/null
+++ b/examples/fx_one_pole/src/plugin.h
@@ -0,0 +1,49 @@
+#include "common.h"
+#include
+
+typedef struct plugin {
+ bw_one_pole_coeffs one_pole_coeffs;
+ bw_one_pole_state one_pole_state;
+} plugin;
+
+static void plugin_init(plugin *instance) {
+ bw_one_pole_init(&instance->one_pole_coeffs);
+}
+
+static void plugin_fini(plugin *instance) {
+ (void)instance;
+}
+
+static void plugin_set_sample_rate(plugin *instance, float sample_rate) {
+ bw_one_pole_set_sample_rate(&instance->one_pole_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_one_pole_reset_coeffs(&instance->one_pole_coeffs);
+ bw_one_pole_reset_state(&instance->one_pole_coeffs, &instance->one_pole_state, 0.f);
+}
+
+static void plugin_set_parameter(plugin *instance, size_t index, float value) {
+ (void)index;
+ bw_one_pole_set_cutoff(&instance->one_pole_coeffs, value);
+}
+
+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_one_pole_process(&instance->one_pole_coeffs, &instance->one_pole_state, inputs[0], outputs[0], n_samples);
+}
diff --git a/examples/fx_one_pole/src/product.json b/examples/fx_one_pole/src/product.json
new file mode 100644
index 0000000..07743e5
--- /dev/null
+++ b/examples/fx_one_pole/src/product.json
@@ -0,0 +1,36 @@
+{
+ "product": {
+ "name": "Brickworks one-pole lowpass example",
+ "version": "1.1.0",
+ "buildVersion": "1",
+ "bundleName": "bw_example_fx_one_pole",
+ "buses": [
+ {
+ "type": "audio",
+ "direction": "input",
+ "channels": "mono",
+ "name": "Input",
+ "shortName": "Input"
+ },
+ {
+ "type": "audio",
+ "direction": "output",
+ "channels": "mono",
+ "name": "Output",
+ "shortName": "Output"
+ }
+ ],
+ "parameters": [
+ {
+ "name": "Cutoff",
+ "shortName": "Cutoff",
+ "direction": "input",
+ "defaultValue": 1000.0,
+ "minimum": 20.0,
+ "maximum": 20000.0,
+ "unit": "hz",
+ "map": "logarithmic"
+ }
+ ]
+ }
+}
diff --git a/examples/fx_one_pole/src/vst3.json b/examples/fx_one_pole/src/vst3.json
new file mode 100644
index 0000000..28991b0
--- /dev/null
+++ b/examples/fx_one_pole/src/vst3.json
@@ -0,0 +1,11 @@
+{
+ "vst3": {
+ "plugin": {
+ "cid": "dcc049b6b2d24da595a304c27c4069e6"
+ },
+ "controller": {
+ "cid": "b015c12b3c0141a4a1791cc06f9c7419"
+ },
+ "subCategory": "Fx|Filter"
+ }
+}
diff --git a/examples/fx_one_pole/vst3/Makefile b/examples/fx_one_pole/vst3/Makefile
deleted file mode 100644
index 173d5b6..0000000
--- a/examples/fx_one_pole/vst3/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
-
-NAME := bw_example_fx_one_pole
-SOURCE := bw_example_fx_one_pole.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_one_pole/vst3/config_vst3.h b/examples/fx_one_pole/vst3/config_vst3.h
deleted file mode 100644
index 1488bd8..0000000
--- a/examples/fx_one_pole/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|Filter"
-
-#define PLUGIN_GUID_1 0xdcc049b6
-#define PLUGIN_GUID_2 0xb2d24da5
-#define PLUGIN_GUID_3 0x95a304c2
-#define PLUGIN_GUID_4 0x7c4069e6
-
-#define CTRL_GUID_1 0xb015c12b
-#define CTRL_GUID_2 0x3c0141a4
-#define CTRL_GUID_3 0xa1791cc0
-#define CTRL_GUID_4 0x6f9c7419
-
-#endif
diff --git a/examples/fx_one_pole/web/Makefile b/examples/fx_one_pole/web/Makefile
deleted file mode 100644
index a122441..0000000
--- a/examples/fx_one_pole/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_one_pole.c
-
-include ${ROOT_DIR}/../../common/web/web.mk
diff --git a/examples/fxpp_notch/src/android.json b/examples/fxpp_notch/src/android.json
new file mode 100644
index 0000000..96eac70
--- /dev/null
+++ b/examples/fxpp_notch/src/android.json
@@ -0,0 +1,5 @@
+{
+ "android": {
+ "javaPackageName": "com.orastron.bw_example_fxpp_notch"
+ }
+}
diff --git a/examples/fxpp_notch/src/cmd.json b/examples/fxpp_notch/src/cmd.json
new file mode 100644
index 0000000..1de49bf
--- /dev/null
+++ b/examples/fxpp_notch/src/cmd.json
@@ -0,0 +1,6 @@
+{
+ "cmd": {
+ "busIds": [ "input", "output" ],
+ "parameterIds": [ "cutoff", "q" ]
+ }
+}
diff --git a/examples/fxpp_notch/src/daisy-seed.json b/examples/fxpp_notch/src/daisy-seed.json
new file mode 100644
index 0000000..00367a0
--- /dev/null
+++ b/examples/fxpp_notch/src/daisy-seed.json
@@ -0,0 +1,5 @@
+{
+ "daisy_seed": {
+ "parameterPins": [ 15, 16 ]
+ }
+}
diff --git a/examples/fxpp_notch/src/impl.cpp b/examples/fxpp_notch/src/impl.cpp
new file mode 100644
index 0000000..daba17e
--- /dev/null
+++ b/examples/fxpp_notch/src/impl.cpp
@@ -0,0 +1,53 @@
+#include "impl.h"
+
+#include "common.h"
+#include
+
+using namespace Brickworks;
+
+extern "C" {
+
+impl impl_new(void) {
+ Notch<1> *instance = new Notch<1>();
+ return reinterpret_cast(instance);
+}
+
+void impl_free(impl handle) {
+ Notch<1> *instance = reinterpret_cast *>(handle);
+ delete instance;
+}
+
+void impl_set_sample_rate(impl handle, float sample_rate) {
+ Notch<1> *instance = reinterpret_cast *>(handle);
+ instance->setSampleRate(sample_rate);
+}
+
+void impl_reset(impl handle) {
+ Notch<1> *instance = reinterpret_cast *>(handle);
+ instance->reset();
+}
+
+void impl_set_parameter(impl handle, size_t index, float value) {
+ Notch<1> *instance = reinterpret_cast *>(handle);
+ switch (index) {
+ case 0:
+ instance->setCutoff(value);
+ break;
+ case 1:
+ instance->setQ(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) {
+ Notch<1> *instance = reinterpret_cast *>(handle);
+ instance->process(inputs, outputs, n_samples);
+}
+
+}
diff --git a/examples/fxpp_notch/src/ios.json b/examples/fxpp_notch/src/ios.json
new file mode 100644
index 0000000..17a71dc
--- /dev/null
+++ b/examples/fxpp_notch/src/ios.json
@@ -0,0 +1,5 @@
+{
+ "ios": {
+ "productBundleIdentifier": "com.orastron.bw_example_fxpp_notch"
+ }
+}
diff --git a/examples/fxpp_notch/src/lv2.json b/examples/fxpp_notch/src/lv2.json
new file mode 100644
index 0000000..f02861b
--- /dev/null
+++ b/examples/fxpp_notch/src/lv2.json
@@ -0,0 +1,12 @@
+{
+ "lv2": {
+ "prefixes": {
+ "bw_examples": "https://www.orastron.com/brickworks/examples/"
+ },
+ "uri": "@bw_examples:fxpp_notch",
+ "types": [ "@lv2:FilterPlugin" ],
+ "version": "1.0",
+ "busSymbols": [ "input", "output" ],
+ "parameterSymbols": [ "cutoff", "q" ]
+ }
+}
diff --git a/examples/fxpp_notch/src/product.json b/examples/fxpp_notch/src/product.json
new file mode 100644
index 0000000..deb6323
--- /dev/null
+++ b/examples/fxpp_notch/src/product.json
@@ -0,0 +1,45 @@
+{
+ "product": {
+ "name": "Brickworks notch filter example (C++)",
+ "version": "1.1.0",
+ "buildVersion": "1",
+ "bundleName": "bw_example_fxpp_notch",
+ "buses": [
+ {
+ "type": "audio",
+ "direction": "input",
+ "channels": "mono",
+ "name": "Input",
+ "shortName": "Input"
+ },
+ {
+ "type": "audio",
+ "direction": "output",
+ "channels": "mono",
+ "name": "Output",
+ "shortName": "Output"
+ }
+ ],
+ "parameters": [
+ {
+ "name": "Cutoff",
+ "shortName": "Cutoff",
+ "direction": "input",
+ "defaultValue": 1000.0,
+ "minimum": 20.0,
+ "maximum": 20000.0,
+ "unit": "hz",
+ "map": "logarithmic"
+ },
+ {
+ "name": "Q",
+ "shortName": "Q",
+ "direction": "input",
+ "defaultValue": 0.5,
+ "minimum": 0.5,
+ "maximum": 10.0,
+ "map": "linear"
+ }
+ ]
+ }
+}
diff --git a/examples/fxpp_notch/src/vst3.json b/examples/fxpp_notch/src/vst3.json
new file mode 100644
index 0000000..b957631
--- /dev/null
+++ b/examples/fxpp_notch/src/vst3.json
@@ -0,0 +1,11 @@
+{
+ "vst3": {
+ "plugin": {
+ "cid": "42ed7e51d2294b82ae1029111cd55cdd"
+ },
+ "controller": {
+ "cid": "afd02bdfe0054347b1b0faca968932f2"
+ },
+ "subCategory": "Fx|Filter"
+ }
+}
diff --git a/examples/fxpp_one_pole/src/android.json b/examples/fxpp_one_pole/src/android.json
new file mode 100644
index 0000000..2a3e0a8
--- /dev/null
+++ b/examples/fxpp_one_pole/src/android.json
@@ -0,0 +1,5 @@
+{
+ "android": {
+ "javaPackageName": "com.orastron.bw_example_fxpp_one_pole"
+ }
+}
diff --git a/examples/fxpp_one_pole/src/cmd.json b/examples/fxpp_one_pole/src/cmd.json
new file mode 100644
index 0000000..ca468fa
--- /dev/null
+++ b/examples/fxpp_one_pole/src/cmd.json
@@ -0,0 +1,6 @@
+{
+ "cmd": {
+ "busIds": [ "input", "output" ],
+ "parameterIds": [ "cutoff" ]
+ }
+}
diff --git a/examples/fxpp_one_pole/src/daisy-seed.json b/examples/fxpp_one_pole/src/daisy-seed.json
new file mode 100644
index 0000000..32d95a2
--- /dev/null
+++ b/examples/fxpp_one_pole/src/daisy-seed.json
@@ -0,0 +1,5 @@
+{
+ "daisy_seed": {
+ "parameterPins": [ 15 ]
+ }
+}
diff --git a/examples/fxpp_one_pole/src/impl.cpp b/examples/fxpp_one_pole/src/impl.cpp
new file mode 100644
index 0000000..cefc2bd
--- /dev/null
+++ b/examples/fxpp_one_pole/src/impl.cpp
@@ -0,0 +1,47 @@
+#include "impl.h"
+
+#include "common.h"
+#include
+
+using namespace Brickworks;
+
+extern "C" {
+
+impl impl_new(void) {
+ OnePole<1> *instance = new OnePole<1>();
+ return reinterpret_cast(instance);
+}
+
+void impl_free(impl handle) {
+ OnePole<1> *instance = reinterpret_cast *>(handle);
+ delete instance;
+}
+
+void impl_set_sample_rate(impl handle, float sample_rate) {
+ OnePole<1> *instance = reinterpret_cast *>(handle);
+ instance->setSampleRate(sample_rate);
+}
+
+void impl_reset(impl handle) {
+ OnePole<1> *instance = reinterpret_cast *>(handle);
+ instance->reset();
+}
+
+void impl_set_parameter(impl handle, size_t index, float value) {
+ (void)index;
+ OnePole<1> *instance = reinterpret_cast *>(handle);
+ instance->setCutoff(value);
+}
+
+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) {
+ OnePole<1> *instance = reinterpret_cast *>(handle);
+ instance->process(inputs, outputs, n_samples);
+}
+
+}
diff --git a/examples/fxpp_one_pole/src/ios.json b/examples/fxpp_one_pole/src/ios.json
new file mode 100644
index 0000000..fe3a8c0
--- /dev/null
+++ b/examples/fxpp_one_pole/src/ios.json
@@ -0,0 +1,5 @@
+{
+ "ios": {
+ "productBundleIdentifier": "com.orastron.bw_example_fxpp_one_pole"
+ }
+}
diff --git a/examples/fxpp_one_pole/src/lv2.json b/examples/fxpp_one_pole/src/lv2.json
new file mode 100644
index 0000000..fbfe012
--- /dev/null
+++ b/examples/fxpp_one_pole/src/lv2.json
@@ -0,0 +1,12 @@
+{
+ "lv2": {
+ "prefixes": {
+ "bw_examples": "https://www.orastron.com/brickworks/examples/"
+ },
+ "uri": "@bw_examples:fxpp_one_pole",
+ "types": [ "@lv2:LowpassPlugin" ],
+ "version": "1.0",
+ "busSymbols": [ "input", "output" ],
+ "parameterSymbols": [ "cutoff" ]
+ }
+}
diff --git a/examples/fxpp_one_pole/src/product.json b/examples/fxpp_one_pole/src/product.json
new file mode 100644
index 0000000..70b7b1b
--- /dev/null
+++ b/examples/fxpp_one_pole/src/product.json
@@ -0,0 +1,36 @@
+{
+ "product": {
+ "name": "Brickworks one-pole lowpass example (C++)",
+ "version": "1.1.0",
+ "buildVersion": "1",
+ "bundleName": "bw_example_fxpp_one_pole",
+ "buses": [
+ {
+ "type": "audio",
+ "direction": "input",
+ "channels": "mono",
+ "name": "Input",
+ "shortName": "Input"
+ },
+ {
+ "type": "audio",
+ "direction": "output",
+ "channels": "mono",
+ "name": "Output",
+ "shortName": "Output"
+ }
+ ],
+ "parameters": [
+ {
+ "name": "Cutoff",
+ "shortName": "Cutoff",
+ "direction": "input",
+ "defaultValue": 1000.0,
+ "minimum": 20.0,
+ "maximum": 20000.0,
+ "unit": "hz",
+ "map": "logarithmic"
+ }
+ ]
+ }
+}
diff --git a/examples/fxpp_one_pole/src/vst3.json b/examples/fxpp_one_pole/src/vst3.json
new file mode 100644
index 0000000..b96c043
--- /dev/null
+++ b/examples/fxpp_one_pole/src/vst3.json
@@ -0,0 +1,11 @@
+{
+ "vst3": {
+ "plugin": {
+ "cid": "a81c3d7c6744485aada4450cb946ecdd"
+ },
+ "controller": {
+ "cid": "7bcf2712295a4684a5a975eebb941354"
+ },
+ "subCategory": "Fx|Filter"
+ }
+}
diff --git a/examples/tibia_clean.sh b/examples/tibia_clean.sh
index fb2770b..97d730f 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 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 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 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"
for d in $dirs; do
echo Removing data files for $d
diff --git a/examples/tibia_gen.sh b/examples/tibia_gen.sh
index e239882..eb43f2c 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 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 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 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"
else
dirs="$1"
fi