removed c++ examples, updated fx_balance and more

This commit is contained in:
Stefano D'Angelo 2024-02-01 16:32:40 +01:00
parent 156374aca4
commit 1b4035b5ac
392 changed files with 167 additions and 14867 deletions

View File

@ -1,7 +1,7 @@
{
"product": {
"name": "Brickworks 1st-order allpass example (C)",
"version": "1.0.1",
"name": "Brickworks 1st-order allpass example",
"version": "1.1.0",
"buildVersion": "1",
"bundleName": "bw_example_fx_ap1",
"buses": [

View File

@ -1,7 +1,7 @@
{
"product": {
"name": "Brickworks 2nd-order allpass example (C)",
"version": "1.0.1",
"name": "Brickworks 2nd-order allpass example",
"version": "1.1.0",
"buildVersion": "1",
"bundleName": "bw_example_fx_ap2",
"buses": [

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fx_balance
SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fx_balance.c
include ${ROOT_DIR}/../../common/android/android.mk

View File

@ -1,7 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TARGET = bw_example_fx_balance
C_SOURCES += ${ROOT_DIR}/../src/bw_example_fx_balance.c
include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fx_balance
SOURCE := ${NAME}.c
include ${ROOT_DIR}/../../common/ios/ios.mk

View File

@ -0,0 +1,5 @@
{
"android": {
"javaPackageName": "com.orastron.bw_example_fx_balance"
}
}

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#include "bw_example_fx_balance.h"
void bw_example_fx_balance_init(bw_example_fx_balance *instance) {
bw_balance_init(&instance->balance_coeffs);
bw_ppm_init(&instance->ppm_coeffs);
}
void bw_example_fx_balance_set_sample_rate(bw_example_fx_balance *instance, float sample_rate) {
bw_balance_set_sample_rate(&instance->balance_coeffs, sample_rate);
bw_ppm_set_sample_rate(&instance->ppm_coeffs, sample_rate);
}
void bw_example_fx_balance_reset(bw_example_fx_balance *instance) {
bw_balance_reset_coeffs(&instance->balance_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_balance_process(bw_example_fx_balance *instance, const float** x, float** y, int n_samples) {
bw_balance_process(&instance->balance_coeffs, x[0], x[1], 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_balance_set_parameter(bw_example_fx_balance *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_balance:
bw_balance_set_balance(&instance->balance_coeffs, value + value - 1.f);
break;
}
}
float bw_example_fx_balance_get_parameter(bw_example_fx_balance *instance, int index) {
float r = 0.f;
switch (index) {
case p_balance:
r = instance->params[p_balance];
break;
case p_balance + 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_balance + 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;
}

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_FX_BALANCE_H
#define _BW_EXAMPLE_FX_BALANCE_H
#include "platform.h"
#include <bw_balance.h>
#include <bw_ppm.h>
#include <bw_math.h>
#ifdef __cplusplus
extern "C" {
#endif
enum {
p_balance,
p_n
};
struct _bw_example_fx_balance {
// Sub-components
bw_balance_coeffs balance_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_balance bw_example_fx_balance;
void bw_example_fx_balance_init(bw_example_fx_balance *instance);
void bw_example_fx_balance_set_sample_rate(bw_example_fx_balance *instance, float sample_rate);
void bw_example_fx_balance_reset(bw_example_fx_balance *instance);
void bw_example_fx_balance_process(bw_example_fx_balance *instance, const float** x, float** y, int n_samples);
void bw_example_fx_balance_set_parameter(bw_example_fx_balance *instance, int index, float value);
float bw_example_fx_balance_get_parameter(bw_example_fx_balance *instance, int index);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -0,0 +1,6 @@
{
"cmd": {
"busIds": [ "input", "output" ],
"parameterIds": [ "balance", "l_level", "r_level" ]
}
}

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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_balance"
#define PLUGIN_VERSION "1.0.0"
#define NUM_BUSES_IN 1
#define NUM_BUSES_OUT 1
#define NUM_CHANNELS_IN 2
#define NUM_CHANNELS_OUT 2
static struct config_io_bus config_buses_in[NUM_BUSES_IN] = {
{ "Audio in", 0, 0, 0, IO_STEREO }
};
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] = {
{ "Balance", "Balance", "", 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_balance.h"
#define P_TYPE bw_example_fx_balance
#define P_INIT bw_example_fx_balance_init
#define P_SET_SAMPLE_RATE bw_example_fx_balance_set_sample_rate
#define P_RESET bw_example_fx_balance_reset
#define P_PROCESS bw_example_fx_balance_process
#define P_SET_PARAMETER bw_example_fx_balance_set_parameter
#define P_GET_PARAMETER bw_example_fx_balance_get_parameter
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
var buses = [
{
stereo: true,
output: false
},
{
stereo: true,
output: true
}
];
var parameters = [
{
name: "Balance",
output: false,
defaultValue: 0.5
},
{
name: "Left level",
output: true,
defaultValue: 0.0
},
{
name: "Right level",
output: true,
defaultValue: 0.0
}
];

View File

@ -0,0 +1,5 @@
{
"daisy_seed": {
"parameterPins": [ 22, 23, 15 ]
}
}

View File

@ -0,0 +1,12 @@
{
"lv2": {
"prefixes": {
"bw_examples": "https://www.orastron.com/brickworks/examples/"
},
"uri": "@bw_examples:fx_balance",
"types": [ "@lv2:SpatialPlugin" ],
"version": "1.0",
"busSymbols": [ "input", "output" ],
"parameterSymbols": [ "balance", "l_level", "r_level" ]
}
}

View File

@ -0,0 +1,66 @@
#include "common.h"
#include <bw_balance.h>
#include <bw_ppm.h>
typedef struct plugin {
bw_balance_coeffs balance_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_balance_init(&instance->balance_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_balance_set_sample_rate(&instance->balance_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_balance_reset_coeffs(&instance->balance_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_balance_set_balance(&instance->balance_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 v < -60.f ? -60.f : (v > 0.f ? 0.f : v);
}
static void plugin_process(plugin *instance, const float **inputs, float **outputs, size_t n_samples) {
bw_balance_process(&instance->balance_coeffs, inputs[0], inputs[1], 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);
}

View File

@ -0,0 +1,56 @@
{
"product": {
"name": "Brickworks stereo balance example",
"version": "1.1.0",
"buildVersion": "1",
"bundleName": "bw_example_fx_balance",
"buses": [
{
"type": "audio",
"direction": "input",
"channels": "stereo",
"name": "Input",
"shortName": "Input"
},
{
"type": "audio",
"direction": "output",
"channels": "stereo",
"name": "Output",
"shortName": "Output"
}
],
"parameters": [
{
"name": "Balance",
"shortName": "Balance",
"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"
}
]
}
}

View File

@ -0,0 +1,11 @@
{
"vst3": {
"plugin": {
"cid": "ffe1e17f3c4b492c8d882912f93c1e95"
},
"controller": {
"cid": "68133a09d70b4a4681f2808f9790b266"
},
"subCategory": "Fx|Spatial"
}
}

View File

@ -1,9 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fx_balance
SOURCE := bw_example_fx_balance.c
include ${ROOT_DIR}/../../common/vst3/vst3.mk
CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG
#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File authors: Stefano D'Angelo, Paolo Marrone
*/
#ifndef _VST3_CONFIG_H
#define _VST3_CONFIG_H
#define PLUGIN_SUBCATEGORY "Fx|Spatial"
#define PLUGIN_GUID_1 0xffe1e17f
#define PLUGIN_GUID_2 0x3c4b492c
#define PLUGIN_GUID_3 0x8d882912
#define PLUGIN_GUID_4 0xf93c1e95
#define CTRL_GUID_1 0x68133a09
#define CTRL_GUID_2 0xd70b4a46
#define CTRL_GUID_3 0x81f2808f
#define CTRL_GUID_4 0x9790b266
#endif

View File

@ -1,4 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fx_balance.c
include ${ROOT_DIR}/../../common/web/web.mk

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_ap1
SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_ap1.cpp
include ${ROOT_DIR}/../../common/android/android.mk

View File

@ -1,7 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TARGET = bw_example_fxpp_ap1
CPP_SOURCES_EXTRA = ${ROOT_DIR}/../src/bw_example_fxpp_ap1.cpp
include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_ap1
SOURCE := ${NAME}.cpp
include ${ROOT_DIR}/../../common/ios/ios.mk

View File

@ -1,50 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#include "bw_example_fxpp_ap1.h"
void bw_example_fxpp_ap1_init(bw_example_fxpp_ap1 *instance) {
(void)instance;
}
void bw_example_fxpp_ap1_set_sample_rate(bw_example_fxpp_ap1 *instance, float sample_rate) {
instance->ap1.setSampleRate(sample_rate);
}
void bw_example_fxpp_ap1_reset(bw_example_fxpp_ap1 *instance) {
instance->ap1.reset();
}
void bw_example_fxpp_ap1_process(bw_example_fxpp_ap1 *instance, const float** x, float** y, int n_samples) {
instance->ap1.process({x[0]}, {y[0]}, n_samples);
}
void bw_example_fxpp_ap1_set_parameter(bw_example_fxpp_ap1 *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_cutoff:
instance->ap1.setCutoff((20e3f - 20.f) * value * value * value + 20.f);
break;
}
}
float bw_example_fxpp_ap1_get_parameter(bw_example_fxpp_ap1 *instance, int index) {
return instance->params[index];
}

View File

@ -1,55 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_FXPP_AP1_H
#define _BW_EXAMPLE_FXPP_AP1_H
#include "platform.h"
#include <bw_ap1.h>
using namespace Brickworks;
extern "C" {
enum {
p_cutoff,
p_n
};
struct _bw_example_fxpp_ap1 {
// Sub-components
AP1<1> ap1;
// Parameters
float params[p_n];
};
typedef struct _bw_example_fxpp_ap1 bw_example_fxpp_ap1;
void bw_example_fxpp_ap1_init(bw_example_fxpp_ap1 *instance);
void bw_example_fxpp_ap1_set_sample_rate(bw_example_fxpp_ap1 *instance, float sample_rate);
void bw_example_fxpp_ap1_reset(bw_example_fxpp_ap1 *instance);
void bw_example_fxpp_ap1_process(bw_example_fxpp_ap1 *instance, const float** x, float** y, int n_samples);
void bw_example_fxpp_ap1_set_parameter(bw_example_fxpp_ap1 *instance, int index, float value);
float bw_example_fxpp_ap1_get_parameter(bw_example_fxpp_ap1 *instance, int index);
}
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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_fxpp_ap1"
#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_fxpp_ap1.h"
#define P_TYPE bw_example_fxpp_ap1
#define P_INIT bw_example_fxpp_ap1_init
#define P_SET_SAMPLE_RATE bw_example_fxpp_ap1_set_sample_rate
#define P_RESET bw_example_fxpp_ap1_reset
#define P_PROCESS bw_example_fxpp_ap1_process
#define P_SET_PARAMETER bw_example_fxpp_ap1_set_parameter
#define P_GET_PARAMETER bw_example_fxpp_ap1_get_parameter
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
var buses = [
{
stereo: false,
output: false
},
{
stereo: false,
output: true
}
];
var parameters = [
{
name: "Cutoff",
output: false,
defaultValue: 0.5
}
];

View File

@ -1,9 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_ap1
SOURCE := bw_example_fxpp_ap1.cpp
include ${ROOT_DIR}/../../common/vst3/vst3.mk
CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG
#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File authors: Stefano D'Angelo, Paolo Marrone
*/
#ifndef _VST3_CONFIG_H
#define _VST3_CONFIG_H
#define PLUGIN_SUBCATEGORY "Fx|Filter"
#define PLUGIN_GUID_1 0x67f9cd8d
#define PLUGIN_GUID_2 0x2865469b
#define PLUGIN_GUID_3 0xbcea5838
#define PLUGIN_GUID_4 0xfa1e0944
#define CTRL_GUID_1 0x3b74ce84
#define CTRL_GUID_2 0x5132450c
#define CTRL_GUID_3 0xb9aa48ef
#define CTRL_GUID_4 0xe2d68cd3
#endif

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_ap2
SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_ap2.cpp
include ${ROOT_DIR}/../../common/android/android.mk

View File

@ -1,7 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TARGET = bw_example_fxpp_ap2
CPP_SOURCES_EXTRA = ${ROOT_DIR}/../src/bw_example_fxpp_ap2.cpp
include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_ap2
SOURCE := ${NAME}.cpp
include ${ROOT_DIR}/../../common/ios/ios.mk

View File

@ -1,53 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#include "bw_example_fxpp_ap2.h"
void bw_example_fxpp_ap2_init(bw_example_fxpp_ap2 *instance) {
(void)instance;
}
void bw_example_fxpp_ap2_set_sample_rate(bw_example_fxpp_ap2 *instance, float sample_rate) {
instance->ap2.setSampleRate(sample_rate);
}
void bw_example_fxpp_ap2_reset(bw_example_fxpp_ap2 *instance) {
instance->ap2.reset();
}
void bw_example_fxpp_ap2_process(bw_example_fxpp_ap2 *instance, const float** x, float** y, int n_samples) {
instance->ap2.process({x[0]}, {y[0]}, n_samples);
}
void bw_example_fxpp_ap2_set_parameter(bw_example_fxpp_ap2 *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_cutoff:
instance->ap2.setCutoff((20e3f - 20.f) * value * value * value + 20.f);
break;
case p_Q:
instance->ap2.setQ(0.5f + 9.5f * value);
break;
}
}
float bw_example_fxpp_ap2_get_parameter(bw_example_fxpp_ap2 *instance, int index) {
return instance->params[index];
}

View File

@ -1,56 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_FXPP_AP2_H
#define _BW_EXAMPLE_FXPP_AP2_H
#include "platform.h"
#include <bw_ap2.h>
using namespace Brickworks;
extern "C" {
enum {
p_cutoff,
p_Q,
p_n
};
struct _bw_example_fxpp_ap2 {
// Sub-components
AP2<1> ap2;
// Parameters
float params[p_n];
};
typedef struct _bw_example_fxpp_ap2 bw_example_fxpp_ap2;
void bw_example_fxpp_ap2_init(bw_example_fxpp_ap2 *instance);
void bw_example_fxpp_ap2_set_sample_rate(bw_example_fxpp_ap2 *instance, float sample_rate);
void bw_example_fxpp_ap2_reset(bw_example_fxpp_ap2 *instance);
void bw_example_fxpp_ap2_process(bw_example_fxpp_ap2 *instance, const float** x, float** y, int n_samples);
void bw_example_fxpp_ap2_set_parameter(bw_example_fxpp_ap2 *instance, int index, float value);
float bw_example_fxpp_ap2_get_parameter(bw_example_fxpp_ap2 *instance, int index);
}
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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_fxpp_ap2"
#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_fxpp_ap2.h"
#define P_TYPE bw_example_fxpp_ap2
#define P_INIT bw_example_fxpp_ap2_init
#define P_SET_SAMPLE_RATE bw_example_fxpp_ap2_set_sample_rate
#define P_RESET bw_example_fxpp_ap2_reset
#define P_PROCESS bw_example_fxpp_ap2_process
#define P_SET_PARAMETER bw_example_fxpp_ap2_set_parameter
#define P_GET_PARAMETER bw_example_fxpp_ap2_get_parameter
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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
}
];

View File

@ -1,9 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_ap2
SOURCE := bw_example_fxpp_ap2.cpp
include ${ROOT_DIR}/../../common/vst3/vst3.mk
CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG
#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File authors: Stefano D'Angelo, Paolo Marrone
*/
#ifndef _VST3_CONFIG_H
#define _VST3_CONFIG_H
#define PLUGIN_SUBCATEGORY "Fx|Filter"
#define PLUGIN_GUID_1 0x32fc0150
#define PLUGIN_GUID_2 0xb5e44732
#define PLUGIN_GUID_3 0x86c506af
#define PLUGIN_GUID_4 0x49a9e7ec
#define CTRL_GUID_1 0x62821948
#define CTRL_GUID_2 0x5d3748e2
#define CTRL_GUID_3 0x865579ed
#define CTRL_GUID_4 0xe52e66bb
#endif

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_balance
SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_balance.cpp
include ${ROOT_DIR}/../../common/android/android.mk

View File

@ -1,7 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TARGET = bw_example_fxpp_balance
CPP_SOURCES_EXTRA = ${ROOT_DIR}/../src/bw_example_fxpp_balance.cpp
include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_balance
SOURCE := ${NAME}.cpp
include ${ROOT_DIR}/../../common/ios/ios.mk

View File

@ -1,71 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#include "bw_example_fxpp_balance.h"
void bw_example_fxpp_balance_init(bw_example_fxpp_balance *instance) {
(void)instance;
}
void bw_example_fxpp_balance_set_sample_rate(bw_example_fxpp_balance *instance, float sample_rate) {
instance->balance.setSampleRate(sample_rate);
instance->ppm.setSampleRate(sample_rate);
}
void bw_example_fxpp_balance_reset(bw_example_fxpp_balance *instance) {
instance->balance.reset();
instance->ppm.reset();
}
void bw_example_fxpp_balance_process(bw_example_fxpp_balance *instance, const float** x, float** y, int n_samples) {
instance->balance.process({x[0]}, {x[1]}, {y[0]}, {y[1]}, n_samples);
instance->ppm.process({y[0], y[1]}, {nullptr, nullptr}, n_samples);
}
void bw_example_fxpp_balance_set_parameter(bw_example_fxpp_balance *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_balance:
instance->balance.setBalance(value + value - 1.f);
break;
}
}
float bw_example_fxpp_balance_get_parameter(bw_example_fxpp_balance *instance, int index) {
float r = 0.f;
switch (index) {
case p_balance:
r = instance->params[p_balance];
break;
case p_balance + 1:
{
const float v = instance->ppm.getYZ1(0);
r = v < -200.f ? 0.f : bw_clipf(0.01666666666666667f * v + 1.f, 0.f, 1.f);
break;
}
case p_balance + 2:
{
const float v = instance->ppm.getYZ1(1);
r = v < -200.f ? 0.f : bw_clipf(0.01666666666666667f * v + 1.f, 0.f, 1.f);
break;
}
}
return r;
}

View File

@ -1,57 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_FXPP_BALANCE_H
#define _BW_EXAMPLE_FXPP_BALANCE_H
#include "platform.h"
#include <bw_balance.h>
#include <bw_ppm.h>
using namespace Brickworks;
extern "C" {
enum {
p_balance,
p_n
};
struct _bw_example_fxpp_balance {
// Sub-components
Balance<1> balance;
PPM<2> ppm;
// Parameters
float params[p_n];
};
typedef struct _bw_example_fxpp_balance bw_example_fxpp_balance;
void bw_example_fxpp_balance_init(bw_example_fxpp_balance *instance);
void bw_example_fxpp_balance_set_sample_rate(bw_example_fxpp_balance *instance, float sample_rate);
void bw_example_fxpp_balance_reset(bw_example_fxpp_balance *instance);
void bw_example_fxpp_balance_process(bw_example_fxpp_balance *instance, const float** x, float** y, int n_samples);
void bw_example_fxpp_balance_set_parameter(bw_example_fxpp_balance *instance, int index, float value);
float bw_example_fxpp_balance_get_parameter(bw_example_fxpp_balance *instance, int index);
}
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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_fxpp_balance"
#define PLUGIN_VERSION "1.0.0"
#define NUM_BUSES_IN 1
#define NUM_BUSES_OUT 1
#define NUM_CHANNELS_IN 2
#define NUM_CHANNELS_OUT 2
static struct config_io_bus config_buses_in[NUM_BUSES_IN] = {
{ "Audio in", 0, 0, 0, IO_STEREO }
};
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] = {
{ "Balance", "Balance", "", 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_fxpp_balance.h"
#define P_TYPE bw_example_fxpp_balance
#define P_INIT bw_example_fxpp_balance_init
#define P_SET_SAMPLE_RATE bw_example_fxpp_balance_set_sample_rate
#define P_RESET bw_example_fxpp_balance_reset
#define P_PROCESS bw_example_fxpp_balance_process
#define P_SET_PARAMETER bw_example_fxpp_balance_set_parameter
#define P_GET_PARAMETER bw_example_fxpp_balance_get_parameter
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
var buses = [
{
stereo: true,
output: false
},
{
stereo: true,
output: true
}
];
var parameters = [
{
name: "Balance",
output: false,
defaultValue: 0.5
},
{
name: "Left level",
output: true,
defaultValue: 0.0
},
{
name: "Right level",
output: true,
defaultValue: 0.0
}
];

View File

@ -1,9 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_balance
SOURCE := bw_example_fxpp_balance.cpp
include ${ROOT_DIR}/../../common/vst3/vst3.mk
CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG
#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File authors: Stefano D'Angelo, Paolo Marrone
*/
#ifndef _VST3_CONFIG_H
#define _VST3_CONFIG_H
#define PLUGIN_SUBCATEGORY "Fx|Spatial"
#define PLUGIN_GUID_1 0x2c5793c7
#define PLUGIN_GUID_2 0xeae0488e
#define PLUGIN_GUID_3 0x8c7820af
#define PLUGIN_GUID_4 0xbcd6ee17
#define CTRL_GUID_1 0xc67e0faf
#define CTRL_GUID_2 0x04f54fdf
#define CTRL_GUID_3 0x8019eb05
#define CTRL_GUID_4 0x5f44b1b0
#endif

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_bitcrush
SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_bitcrush.cpp
include ${ROOT_DIR}/../../common/android/android.mk

View File

@ -1,7 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TARGET = bw_example_fxpp_bitcrush
CPP_SOURCES_EXTRA = ${ROOT_DIR}/../src/bw_example_fxpp_bitcrush.cpp
include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_bitcrush
SOURCE := ${NAME}.cpp
include ${ROOT_DIR}/../../common/ios/ios.mk

View File

@ -1,56 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#include "bw_example_fxpp_bitcrush.h"
void bw_example_fxpp_bitcrush_init(bw_example_fxpp_bitcrush *instance) {
(void)instance;
}
void bw_example_fxpp_bitcrush_set_sample_rate(bw_example_fxpp_bitcrush *instance, float sample_rate) {
instance->srReduce.setSampleRate(sample_rate);
instance->bdReduce.setSampleRate(sample_rate);
}
void bw_example_fxpp_bitcrush_reset(bw_example_fxpp_bitcrush *instance) {
instance->srReduce.reset();
instance->bdReduce.reset();
}
void bw_example_fxpp_bitcrush_process(bw_example_fxpp_bitcrush *instance, const float** x, float** y, int n_samples) {
instance->srReduce.process({x[0]}, {y[0]}, n_samples);
instance->bdReduce.process({y[0]}, {y[0]}, n_samples);
}
void bw_example_fxpp_bitcrush_set_parameter(bw_example_fxpp_bitcrush *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_sr_ratio:
instance->srReduce.setRatio(value);
break;
case p_bit_depth:
instance->bdReduce.setBitDepth(1 + (int)(15.f * value));
break;
}
}
float bw_example_fxpp_bitcrush_get_parameter(bw_example_fxpp_bitcrush *instance, int index) {
return instance->params[index];
}

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_FXPP_BITCRUSH_H
#define _BW_EXAMPLE_FXPP_BITCRUSH_H
#include "platform.h"
#include <bw_sr_reduce.h>
#include <bw_bd_reduce.h>
using namespace Brickworks;
extern "C" {
enum {
p_sr_ratio,
p_bit_depth,
p_n
};
struct _bw_example_fxpp_bitcrush {
// Sub-components
SRReduce<1> srReduce;
BDReduce<1> bdReduce;
// Parameters
float params[p_n];
};
typedef struct _bw_example_fxpp_bitcrush bw_example_fxpp_bitcrush;
void bw_example_fxpp_bitcrush_init(bw_example_fxpp_bitcrush *instance);
void bw_example_fxpp_bitcrush_set_sample_rate(bw_example_fxpp_bitcrush *instance, float sample_rate);
void bw_example_fxpp_bitcrush_reset(bw_example_fxpp_bitcrush *instance);
void bw_example_fxpp_bitcrush_process(bw_example_fxpp_bitcrush *instance, const float** x, float** y, int n_samples);
void bw_example_fxpp_bitcrush_set_parameter(bw_example_fxpp_bitcrush *instance, int index, float value);
float bw_example_fxpp_bitcrush_get_parameter(bw_example_fxpp_bitcrush *instance, int index);
}
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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_fxpp_bitcrush"
#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] = {
{ "Sample rate ratio", "SR ratio", "", 0, 0, 0, 1.f },
{ "Bit depth", "Bit depth", "", 0, 0, 14, 1.f }
};
// Internal API
#include "bw_example_fxpp_bitcrush.h"
#define P_TYPE bw_example_fxpp_bitcrush
#define P_INIT bw_example_fxpp_bitcrush_init
#define P_SET_SAMPLE_RATE bw_example_fxpp_bitcrush_set_sample_rate
#define P_RESET bw_example_fxpp_bitcrush_reset
#define P_PROCESS bw_example_fxpp_bitcrush_process
#define P_SET_PARAMETER bw_example_fxpp_bitcrush_set_parameter
#define P_GET_PARAMETER bw_example_fxpp_bitcrush_get_parameter
#endif

View File

@ -1,44 +0,0 @@
/*
* Brickworks
*
* Copyright (C) 2022 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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
var buses = [
{
stereo: false,
output: false
},
{
stereo: false,
output: true
}
];
var parameters = [
{
name: "Sample rate ratio",
output: false,
defaultValue: 1.0
},
{
name: "Bit depth",
output: false,
defaultValue: 1.0,
step: 14
}
];

View File

@ -1,9 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_bitcrush
SOURCE := bw_example_fxpp_bitcrush.cpp
include ${ROOT_DIR}/../../common/vst3/vst3.mk
CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG
#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File authors: Stefano D'Angelo, Paolo Marrone
*/
#ifndef _VST3_CONFIG_H
#define _VST3_CONFIG_H
#define PLUGIN_SUBCATEGORY "Fx"
#define PLUGIN_GUID_1 0x4ccc317b
#define PLUGIN_GUID_2 0xcbfd4dc0
#define PLUGIN_GUID_3 0xb2c0e24d
#define PLUGIN_GUID_4 0x00ef876d
#define CTRL_GUID_1 0xf4fa2b0d
#define CTRL_GUID_2 0x358f4709
#define CTRL_GUID_3 0x855f940f
#define CTRL_GUID_4 0x76cec704
#endif

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_cab
SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_cab.cpp
include ${ROOT_DIR}/../../common/android/android.mk

View File

@ -1,7 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TARGET = bw_example_fxpp_cab
CPP_SOURCES_EXTRA = ${ROOT_DIR}/../src/bw_example_fxpp_cab.cpp
include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk

View File

@ -1,37 +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 <http://www.gnu.org/licenses/>.
*
* 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 3
static struct config_pin config_pins[NUM_PINS] = {
{ 0, 15 },
{ 1, 16 },
{ 2, 17 }
};
#endif

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_cab
SOURCE := ${NAME}.cpp
include ${ROOT_DIR}/../../common/ios/ios.mk

View File

@ -1,56 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#include "bw_example_fxpp_cab.h"
void bw_example_fxpp_cab_init(bw_example_fxpp_cab *instance) {
(void)instance;
}
void bw_example_fxpp_cab_set_sample_rate(bw_example_fxpp_cab *instance, float sample_rate) {
instance->cab.setSampleRate(sample_rate);
}
void bw_example_fxpp_cab_reset(bw_example_fxpp_cab *instance) {
instance->cab.reset();
}
void bw_example_fxpp_cab_process(bw_example_fxpp_cab *instance, const float** x, float** y, int n_samples) {
instance->cab.process({x[0]}, {y[0]}, n_samples);
}
void bw_example_fxpp_cab_set_parameter(bw_example_fxpp_cab *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_cutoff_low:
instance->cab.setCutoffLow(value);
break;
case p_cutoff_high:
instance->cab.setCutoffHigh(value);
break;
case p_tone:
instance->cab.setTone(value);
break;
}
}
float bw_example_fxpp_cab_get_parameter(bw_example_fxpp_cab *instance, int index) {
return instance->params[index];
}

View File

@ -1,57 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_FXPP_CAB_H
#define _BW_EXAMPLE_FXPP_CAB_H
#include "platform.h"
#include <bw_cab.h>
using namespace Brickworks;
extern "C" {
enum {
p_cutoff_low,
p_cutoff_high,
p_tone,
p_n
};
struct _bw_example_fxpp_cab {
// Sub-components
Cab<1> cab;
// Parameters
float params[p_n];
};
typedef struct _bw_example_fxpp_cab bw_example_fxpp_cab;
void bw_example_fxpp_cab_init(bw_example_fxpp_cab *instance);
void bw_example_fxpp_cab_set_sample_rate(bw_example_fxpp_cab *instance, float sample_rate);
void bw_example_fxpp_cab_reset(bw_example_fxpp_cab *instance);
void bw_example_fxpp_cab_process(bw_example_fxpp_cab *instance, const float** x, float** y, int n_samples);
void bw_example_fxpp_cab_set_parameter(bw_example_fxpp_cab *instance, int index, float value);
float bw_example_fxpp_cab_get_parameter(bw_example_fxpp_cab *instance, int index);
}
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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_fxpp_cab"
#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 3
static struct config_parameter config_parameters[NUM_PARAMETERS] = {
{ "Cutoff low", "Low", "", 0, 0, 0, 0.5f },
{ "Cutoff high", "High", "", 0, 0, 0, 0.5f },
{ "Tone", "Tone", "", 0, 0, 0, 0.5f }
};
// Internal API
#include "bw_example_fxpp_cab.h"
#define P_TYPE bw_example_fxpp_cab
#define P_INIT bw_example_fxpp_cab_init
#define P_SET_SAMPLE_RATE bw_example_fxpp_cab_set_sample_rate
#define P_RESET bw_example_fxpp_cab_reset
#define P_PROCESS bw_example_fxpp_cab_process
#define P_SET_PARAMETER bw_example_fxpp_cab_set_parameter
#define P_GET_PARAMETER bw_example_fxpp_cab_get_parameter
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
var buses = [
{
stereo: false,
output: false
},
{
stereo: false,
output: true
}
];
var parameters = [
{
name: "Cutoff low",
output: false,
defaultValue: 0.5
},
{
name: "Cutoff high",
output: false,
defaultValue: 0.5
},
{
name: "Tone",
output: false,
defaultValue: 0.5
}
];

View File

@ -1,9 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_cab
SOURCE := bw_example_fxpp_cab.cpp
include ${ROOT_DIR}/../../common/vst3/vst3.mk
CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG
#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File authors: Stefano D'Angelo, Paolo Marrone
*/
#ifndef _VST3_CONFIG_H
#define _VST3_CONFIG_H
#define PLUGIN_SUBCATEGORY "Fx|Filter"
#define PLUGIN_GUID_1 0x5a6af39b
#define PLUGIN_GUID_2 0x3d3d4d8d
#define PLUGIN_GUID_3 0xb770d068
#define PLUGIN_GUID_4 0x970eb848
#define CTRL_GUID_1 0x29ea612e
#define CTRL_GUID_2 0x754d401b
#define CTRL_GUID_3 0xa6164ba3
#define CTRL_GUID_4 0x931dc498
#endif

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_chorus
SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_chorus.cpp
include ${ROOT_DIR}/../../common/android/android.mk

View File

@ -1,7 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TARGET = bw_example_fxpp_chorus
CPP_SOURCES_EXTRA = ${ROOT_DIR}/../src/bw_example_fxpp_chorus.cpp
include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_chorus
SOURCE := ${NAME}.cpp
include ${ROOT_DIR}/../../common/ios/ios.mk

View File

@ -1,56 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#include "bw_example_fxpp_chorus.h"
void bw_example_fxpp_chorus_init(bw_example_fxpp_chorus *instance) {
instance->chorus.setDelay(0.005f);
instance->chorus.setCoeffX(0.7071f);
instance->chorus.setCoeffMod(1.f);
instance->chorus.setCoeffFB(-0.7071f);
}
void bw_example_fxpp_chorus_set_sample_rate(bw_example_fxpp_chorus *instance, float sample_rate) {
instance->chorus.setSampleRate(sample_rate);
}
void bw_example_fxpp_chorus_reset(bw_example_fxpp_chorus *instance) {
instance->chorus.reset();
}
void bw_example_fxpp_chorus_process(bw_example_fxpp_chorus *instance, const float** x, float** y, int n_samples) {
instance->chorus.process({x[0]}, {y[0]}, n_samples);
}
void bw_example_fxpp_chorus_set_parameter(bw_example_fxpp_chorus *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_rate:
instance->chorus.setRate(0.01f + 1.99f * value * value * value);
break;
case p_depth:
instance->chorus.setAmount(0.004f * value);
break;
}
}
float bw_example_fxpp_chorus_get_parameter(bw_example_fxpp_chorus *instance, int index) {
return instance->params[index];
}

View File

@ -1,56 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_FXPP_CHORUS_H
#define _BW_EXAMPLE_FXPP_CHORUS_H
#include "platform.h"
#include <bw_chorus.h>
using namespace Brickworks;
extern "C" {
enum {
p_rate,
p_depth,
p_n
};
struct _bw_example_fxpp_chorus {
// Sub-components
Chorus<1> chorus;
// Parameters
float params[p_n];
};
typedef struct _bw_example_fxpp_chorus bw_example_fxpp_chorus;
void bw_example_fxpp_chorus_init(bw_example_fxpp_chorus *instance);
void bw_example_fxpp_chorus_set_sample_rate(bw_example_fxpp_chorus *instance, float sample_rate);
void bw_example_fxpp_chorus_reset(bw_example_fxpp_chorus *instance);
void bw_example_fxpp_chorus_process(bw_example_fxpp_chorus *instance, const float** x, float** y, int n_samples);
void bw_example_fxpp_chorus_set_parameter(bw_example_fxpp_chorus *instance, int index, float value);
float bw_example_fxpp_chorus_get_parameter(bw_example_fxpp_chorus *instance, int index);
}
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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_fxpp_chorus"
#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 },
{ "Depth", "Depth", "", 0, 0, 0, 0.5f }
};
// Internal API
#include "bw_example_fxpp_chorus.h"
#define P_TYPE bw_example_fxpp_chorus
#define P_INIT bw_example_fxpp_chorus_init
#define P_SET_SAMPLE_RATE bw_example_fxpp_chorus_set_sample_rate
#define P_RESET bw_example_fxpp_chorus_reset
#define P_PROCESS bw_example_fxpp_chorus_process
#define P_SET_PARAMETER bw_example_fxpp_chorus_set_parameter
#define P_GET_PARAMETER bw_example_fxpp_chorus_get_parameter
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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
}
];

View File

@ -1,9 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_chorus
SOURCE := bw_example_fxpp_chorus.cpp
include ${ROOT_DIR}/../../common/vst3/vst3.mk
CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG
#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File authors: Stefano D'Angelo, Paolo Marrone
*/
#ifndef _VST3_CONFIG_H
#define _VST3_CONFIG_H
#define PLUGIN_SUBCATEGORY "Fx|Modulation"
#define PLUGIN_GUID_1 0x2e8ed1ac
#define PLUGIN_GUID_2 0xdf634f02
#define PLUGIN_GUID_3 0xb5cf4556
#define PLUGIN_GUID_4 0x8f64bd42
#define CTRL_GUID_1 0x7022c6fd
#define CTRL_GUID_2 0xb38b49d2
#define CTRL_GUID_3 0x8df5303a
#define CTRL_GUID_4 0x2c632f6a
#endif

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_clip
SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_clip.cpp
include ${ROOT_DIR}/../../common/android/android.mk

View File

@ -1,7 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TARGET = bw_example_fxpp_clip
CPP_SOURCES_EXTRA = ${ROOT_DIR}/../src/bw_example_fxpp_clip.cpp
include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_clip
SOURCE := ${NAME}.cpp
include ${ROOT_DIR}/../../common/ios/ios.mk

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#include "bw_example_fxpp_clip.h"
void bw_example_fxpp_clip_init(bw_example_fxpp_clip *instance) {
instance->clip.setGainCompensation(true);
}
void bw_example_fxpp_clip_set_sample_rate(bw_example_fxpp_clip *instance, float sample_rate) {
instance->clip.setSampleRate(2.f * sample_rate);
}
void bw_example_fxpp_clip_reset(bw_example_fxpp_clip *instance) {
instance->clip.reset();
instance->srcUp.reset();
instance->srcDown.reset();
}
void bw_example_fxpp_clip_process(bw_example_fxpp_clip *instance, const float** x, float** y, int n_samples) {
int i = 0;
while (i < n_samples) {
int n = bw_mini32(n_samples - i, BUF_SIZE >> 1);
instance->srcUp.process({x[0] + i}, {instance->buf}, n);
instance->clip.process({instance->buf}, {instance->buf}, n << 1);
instance->srcDown.process({instance->buf}, {y[0] + i}, n << 1);
i += n;
}
}
void bw_example_fxpp_clip_set_parameter(bw_example_fxpp_clip *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_bias:
instance->clip.setBias(5.f * value - 2.5f);
break;
case p_gain:
instance->clip.setGain(0.1f + (10.f - 0.1f) * value * value * value);
break;
}
}
float bw_example_fxpp_clip_get_parameter(bw_example_fxpp_clip *instance, int index) {
return instance->params[index];
}

View File

@ -1,66 +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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_FXPP_CLIP_H
#define _BW_EXAMPLE_FXPP_CLIP_H
#include "platform.h"
#include <bw_clip.h>
#include <bw_src_int.h>
using namespace Brickworks;
extern "C" {
enum {
p_bias,
p_gain,
p_n
};
#define BUF_SIZE 32
struct _bw_example_fxpp_clip {
// Sub-components
Clip<1> clip;
SRCInt<1> srcUp;
SRCInt<1> srcDown;
// Parameters
float params[p_n];
// Buffers
float buf[BUF_SIZE];
_bw_example_fxpp_clip() : srcUp(2), srcDown(-2) {}
};
typedef struct _bw_example_fxpp_clip bw_example_fxpp_clip;
void bw_example_fxpp_clip_init(bw_example_fxpp_clip *instance);
void bw_example_fxpp_clip_set_sample_rate(bw_example_fxpp_clip *instance, float sample_rate);
void bw_example_fxpp_clip_reset(bw_example_fxpp_clip *instance);
void bw_example_fxpp_clip_process(bw_example_fxpp_clip *instance, const float** x, float** y, int n_samples);
void bw_example_fxpp_clip_set_parameter(bw_example_fxpp_clip *instance, int index, float value);
float bw_example_fxpp_clip_get_parameter(bw_example_fxpp_clip *instance, int index);
}
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* 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_fxpp_clip"
#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] = {
{ "Bias", "Bias", "", 0, 0, 0, 0.5f },
{ "Gain", "Gain", "", 0, 0, 0, 0.4641588833612779f }
};
// Internal API
#include "bw_example_fxpp_clip.h"
#define P_TYPE bw_example_fxpp_clip
#define P_INIT bw_example_fxpp_clip_init
#define P_SET_SAMPLE_RATE bw_example_fxpp_clip_set_sample_rate
#define P_RESET bw_example_fxpp_clip_reset
#define P_PROCESS bw_example_fxpp_clip_process
#define P_SET_PARAMETER bw_example_fxpp_clip_set_parameter
#define P_GET_PARAMETER bw_example_fxpp_clip_get_parameter
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
var buses = [
{
stereo: false,
output: false
},
{
stereo: false,
output: true
}
];
var parameters = [
{
name: "Bias",
output: false,
defaultValue: 0.5
},
{
name: "Gain",
output: false,
defaultValue: 0.4641588833612779
}
];

View File

@ -1,9 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_clip
SOURCE := bw_example_fxpp_clip.cpp
include ${ROOT_DIR}/../../common/vst3/vst3.mk
CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG
#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File authors: Stefano D'Angelo, Paolo Marrone
*/
#ifndef _VST3_CONFIG_H
#define _VST3_CONFIG_H
#define PLUGIN_SUBCATEGORY "Fx|Distortion"
#define PLUGIN_GUID_1 0xa94e154c
#define PLUGIN_GUID_2 0xca1d4e29
#define PLUGIN_GUID_3 0xa3bb40be
#define PLUGIN_GUID_4 0x0814b9ce
#define CTRL_GUID_1 0x81fcfee9
#define CTRL_GUID_2 0xb69e412d
#define CTRL_GUID_3 0x892acde6
#define CTRL_GUID_4 0x5c46094c
#endif

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_comb
SOURCES = ${SOURCES_COMMON} ${ROOT_DIR}/../src/bw_example_fxpp_comb.cpp
include ${ROOT_DIR}/../../common/android/android.mk

View File

@ -1,7 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
TARGET = bw_example_fxpp_comb
CPP_SOURCES_EXTRA = ${ROOT_DIR}/../src/bw_example_fxpp_comb.cpp
include ${ROOT_DIR}/../../common/daisy-seed/daisy-seed.mk

View File

@ -1,39 +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 <http://www.gnu.org/licenses/>.
*
* 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 5
static struct config_pin config_pins[NUM_PINS] = {
{ 0, 15 },
{ 1, 16 },
{ 2, 17 },
{ 3, 18 },
{ 4, 19 }
};
#endif

View File

@ -1,6 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_comb
SOURCE := ${NAME}.cpp
include ${ROOT_DIR}/../../common/ios/ios.mk

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#include "bw_example_fxpp_comb.h"
void bw_example_fxpp_comb_init(bw_example_fxpp_comb *instance) {
(void)instance;
}
void bw_example_fxpp_comb_set_sample_rate(bw_example_fxpp_comb *instance, float sample_rate) {
instance->comb.setSampleRate(sample_rate);
}
void bw_example_fxpp_comb_reset(bw_example_fxpp_comb *instance) {
instance->comb.reset();
}
void bw_example_fxpp_comb_process(bw_example_fxpp_comb *instance, const float** x, float** y, int n_samples) {
instance->comb.process({x[0]}, {y[0]}, n_samples);
}
void bw_example_fxpp_comb_set_parameter(bw_example_fxpp_comb *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_ff_delay:
instance->comb.setDelayFF(value);
break;
case p_fb_delay:
instance->comb.setDelayFB(value);
break;
case p_blend:
instance->comb.setCoeffBlend(value);
break;
case p_ff:
instance->comb.setCoeffFF(value + value - 1.f);
break;
case p_fb:
instance->comb.setCoeffFB(1.99f * value - 0.995f);
break;
}
}
float bw_example_fxpp_comb_get_parameter(bw_example_fxpp_comb *instance, int index) {
return instance->params[index];
}

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_FXPP_COMB_H
#define _BW_EXAMPLE_FXPP_COMB_H
#include "platform.h"
#include <bw_comb.h>
using namespace Brickworks;
extern "C" {
enum {
p_ff_delay,
p_fb_delay,
p_blend,
p_ff,
p_fb,
p_n
};
struct _bw_example_fxpp_comb {
// Sub-components
Comb<1> comb;
// Parameters
float params[p_n];
};
typedef struct _bw_example_fxpp_comb bw_example_fxpp_comb;
void bw_example_fxpp_comb_init(bw_example_fxpp_comb *instance);
void bw_example_fxpp_comb_set_sample_rate(bw_example_fxpp_comb *instance, float sample_rate);
void bw_example_fxpp_comb_reset(bw_example_fxpp_comb *instance);
void bw_example_fxpp_comb_process(bw_example_fxpp_comb *instance, const float** x, float** y, int n_samples);
void bw_example_fxpp_comb_set_parameter(bw_example_fxpp_comb *instance, int index, float value);
float bw_example_fxpp_comb_get_parameter(bw_example_fxpp_comb *instance, int index);
}
#endif

View File

@ -1,91 +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 <http://www.gnu.org/licenses/>.
*
* 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_fxpp_comb"
#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 5
static struct config_parameter config_parameters[NUM_PARAMETERS] = {
{ "Feedforward delay", "FF delay", "", 0, 0, 0, 0.f },
{ "Feedback delay", "FB delay", "", 0, 0, 0, 0.f },
{ "Blend", "Blend", "", 0, 0, 0, 1.f },
{ "Feedforward", "FF", "", 0, 0, 0, 0.5f },
{ "Feedback", "FB", "", 0, 0, 0, 0.5f }
};
// Internal API
#include "bw_example_fxpp_comb.h"
#define P_TYPE bw_example_fxpp_comb
#define P_INIT bw_example_fxpp_comb_init
#define P_SET_SAMPLE_RATE bw_example_fxpp_comb_set_sample_rate
#define P_RESET bw_example_fxpp_comb_reset
#define P_PROCESS bw_example_fxpp_comb_process
#define P_SET_PARAMETER bw_example_fxpp_comb_set_parameter
#define P_GET_PARAMETER bw_example_fxpp_comb_get_parameter
#endif

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
*/
var buses = [
{
stereo: false,
output: false
},
{
stereo: false,
output: true
}
];
var parameters = [
{
name: "Feedforward delay",
output: false,
defaultValue: 0.0
},
{
name: "Feedback delay",
output: false,
defaultValue: 0.0
},
{
name: "Blend",
output: false,
defaultValue: 1.0
},
{
name: "Feedforward",
output: false,
defaultValue: 0.5
},
{
name: "Feedback",
output: false,
defaultValue: 0.5
}
];

View File

@ -1,9 +0,0 @@
ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
NAME := bw_example_fxpp_comb
SOURCE := bw_example_fxpp_comb.cpp
include ${ROOT_DIR}/../../common/vst3/vst3.mk
CXXFLAGS += -DRELEASE=1 -DNDEBUG -DBW_NO_DEBUG
#CXXFLAGS += -DDEVELOPMENT=1 -DBW_DEBUG_DEEP

View File

@ -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 <http://www.gnu.org/licenses/>.
*
* File authors: Stefano D'Angelo, Paolo Marrone
*/
#ifndef _VST3_CONFIG_H
#define _VST3_CONFIG_H
#define PLUGIN_SUBCATEGORY "Fx|Delay"
#define PLUGIN_GUID_1 0x7b0953c9
#define PLUGIN_GUID_2 0xba334cb1
#define PLUGIN_GUID_3 0x963394cf
#define PLUGIN_GUID_4 0x700098b9
#define CTRL_GUID_1 0x089396db
#define CTRL_GUID_2 0x58854e74
#define CTRL_GUID_3 0x8a70c9de
#define CTRL_GUID_4 0x97e810dd
#endif

Some files were not shown because too many files have changed in this diff Show More