bwpp_{phaser,trem} + fxpp_{phaser,trem}

This commit is contained in:
Stefano D'Angelo 2023-06-26 11:52:35 +02:00
parent 4dd9e863ce
commit 8c83345f25
16 changed files with 746 additions and 0 deletions

View File

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

View File

@ -0,0 +1,37 @@
/*
* 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

@ -0,0 +1,56 @@
/*
* Brickworks
*
* Copyright (C) 2023 Orastron Srl unipersonale
*
* Brickworks is free software: you can rephaserribute 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 phaserributed 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_phaser.h"
void bw_example_fxpp_phaser_init(bw_example_fxpp_phaser *instance) {
(void)instance;
}
void bw_example_fxpp_phaser_set_sample_rate(bw_example_fxpp_phaser *instance, float sample_rate) {
instance->phaser.setSampleRate(sample_rate);
}
void bw_example_fxpp_phaser_reset(bw_example_fxpp_phaser *instance) {
instance->phaser.reset();
}
void bw_example_fxpp_phaser_process(bw_example_fxpp_phaser *instance, const float** x, float** y, int n_samples) {
instance->phaser.process({x[0]}, {y[0]}, n_samples);
}
void bw_example_fxpp_phaser_set_parameter(bw_example_fxpp_phaser *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_rate:
instance->phaser.setRate((5.f - 0.1f) * value * value * value + 0.1f);
break;
case p_center:
instance->phaser.setCenter((10e3f - 100.f) * value * value * value + 100.f);
break;
case p_amount:
instance->phaser.setAmount(4.f * value);
break;
}
}
float bw_example_fxpp_phaser_get_parameter(bw_example_fxpp_phaser *instance, int index) {
return instance->params[index];
}

View File

@ -0,0 +1,55 @@
/*
* Brickworks
*
* Copyright (C) 2023 Orastron Srl unipersonale
*
* Brickworks is free software: you can rephaserribute 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 phaserributed 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_PHASER_H
#define _BW_EXAMPLE_FXPP_PHASER_H
#include <bwpp_phaser.h>
using namespace Brickworks;
extern "C" {
enum {
p_rate,
p_center,
p_amount,
p_n
};
struct _bw_example_fxpp_phaser {
// Sub-components
Phaser<1> phaser;
// Parameters
float params[p_n];
};
typedef struct _bw_example_fxpp_phaser bw_example_fxpp_phaser;
void bw_example_fxpp_phaser_init(bw_example_fxpp_phaser *instance);
void bw_example_fxpp_phaser_set_sample_rate(bw_example_fxpp_phaser *instance, float sample_rate);
void bw_example_fxpp_phaser_reset(bw_example_fxpp_phaser *instance);
void bw_example_fxpp_phaser_process(bw_example_fxpp_phaser *instance, const float** x, float** y, int n_samples);
void bw_example_fxpp_phaser_set_parameter(bw_example_fxpp_phaser *instance, int index, float value);
float bw_example_fxpp_phaser_get_parameter(bw_example_fxpp_phaser *instance, int index);
}
#endif

View File

@ -0,0 +1,89 @@
/*
* Brickworks
*
* Copyright (C) 2023 Orastron Srl unipersonale
*
* Brickworks is free software: you can rephaserribute 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 phaserributed 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_phaser"
#define PLUGIN_VERSION "0.5.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] = {
{ "Modulation rate", "Rate", "", 0, 0, 0, 0.5f },
{ "Center frequency", "Center", "", 0, 0, 0, 0.5f },
{ "Modulation amount", "Amount", "", 0, 0, 0, 0.5f }
};
// Internal API
#include "bw_example_fxpp_phaser.h"
#define P_TYPE bw_example_fxpp_phaser
#define P_INIT bw_example_fxpp_phaser_init
#define P_SET_SAMPLE_RATE bw_example_fxpp_phaser_set_sample_rate
#define P_RESET bw_example_fxpp_phaser_reset
#define P_PROCESS bw_example_fxpp_phaser_process
#define P_SET_PARAMETER bw_example_fxpp_phaser_set_parameter
#define P_GET_PARAMETER bw_example_fxpp_phaser_get_parameter
#endif

View File

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

View File

@ -0,0 +1,36 @@
/*
* 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 0x801d1cc1
#define PLUGIN_GUID_2 0x9cb64004
#define PLUGIN_GUID_3 0xb7edff5c
#define PLUGIN_GUID_4 0x0f297831
#define CTRL_GUID_1 0xebe32e3c
#define CTRL_GUID_2 0x3cb3469b
#define CTRL_GUID_3 0x9879d371
#define CTRL_GUID_4 0x1c695fdb
#endif

View File

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

View File

@ -0,0 +1,36 @@
/*
* 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

@ -0,0 +1,53 @@
/*
* Brickworks
*
* Copyright (C) 2023 Orastron Srl unipersonale
*
* Brickworks is free software: you can retremribute 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 tremributed 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_trem.h"
void bw_example_fxpp_trem_init(bw_example_fxpp_trem *instance) {
(void)instance;
}
void bw_example_fxpp_trem_set_sample_rate(bw_example_fxpp_trem *instance, float sample_rate) {
instance->trem.setSampleRate(sample_rate);
}
void bw_example_fxpp_trem_reset(bw_example_fxpp_trem *instance) {
instance->trem.reset();
}
void bw_example_fxpp_trem_process(bw_example_fxpp_trem *instance, const float** x, float** y, int n_samples) {
instance->trem.process({x[0]}, {y[0]}, n_samples);
}
void bw_example_fxpp_trem_set_parameter(bw_example_fxpp_trem *instance, int index, float value) {
instance->params[index] = value;
switch (index) {
case p_rate:
instance->trem.setRate((20.f - 1.f) * value * value * value + 1.f);
break;
case p_amount:
instance->trem.setAmount(value);
break;
}
}
float bw_example_fxpp_trem_get_parameter(bw_example_fxpp_trem *instance, int index) {
return instance->params[index];
}

View File

@ -0,0 +1,54 @@
/*
* Brickworks
*
* Copyright (C) 2023 Orastron Srl unipersonale
*
* Brickworks is free software: you can retremribute 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 tremributed 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_TREM_H
#define _BW_EXAMPLE_FXPP_TREM_H
#include <bwpp_trem.h>
using namespace Brickworks;
extern "C" {
enum {
p_rate,
p_amount,
p_n
};
struct _bw_example_fxpp_trem {
// Sub-components
Trem<1> trem;
// Parameters
float params[p_n];
};
typedef struct _bw_example_fxpp_trem bw_example_fxpp_trem;
void bw_example_fxpp_trem_init(bw_example_fxpp_trem *instance);
void bw_example_fxpp_trem_set_sample_rate(bw_example_fxpp_trem *instance, float sample_rate);
void bw_example_fxpp_trem_reset(bw_example_fxpp_trem *instance);
void bw_example_fxpp_trem_process(bw_example_fxpp_trem *instance, const float** x, float** y, int n_samples);
void bw_example_fxpp_trem_set_parameter(bw_example_fxpp_trem *instance, int index, float value);
float bw_example_fxpp_trem_get_parameter(bw_example_fxpp_trem *instance, int index);
}
#endif

View File

@ -0,0 +1,88 @@
/*
* Brickworks
*
* Copyright (C) 2023 Orastron Srl unipersonale
*
* Brickworks is free software: you can retremribute 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 tremributed 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_trem"
#define PLUGIN_VERSION "0.5.0"
#define NUM_BUSES_IN 1
#define NUM_BUSES_OUT 1
#define NUM_CHANNELS_IN 1
#define NUM_CHANNELS_OUT 1
static struct config_io_bus config_buses_in[NUM_BUSES_IN] = {
{ "Audio in", 0, 0, 0, IO_MONO }
};
static struct config_io_bus config_buses_out[NUM_BUSES_OUT] = {
{ "Audio out", 1, 0, 0, IO_MONO }
};
#define NUM_PARAMETERS 2
static struct config_parameter config_parameters[NUM_PARAMETERS] = {
{ "Rate", "Rate", "", 0, 0, 0, 0.5f },
{ "Amount", "Amount", "", 0, 0, 0, 0.5f }
};
// Internal API
#include "bw_example_fxpp_trem.h"
#define P_TYPE bw_example_fxpp_trem
#define P_INIT bw_example_fxpp_trem_init
#define P_SET_SAMPLE_RATE bw_example_fxpp_trem_set_sample_rate
#define P_RESET bw_example_fxpp_trem_reset
#define P_PROCESS bw_example_fxpp_trem_process
#define P_SET_PARAMETER bw_example_fxpp_trem_set_parameter
#define P_GET_PARAMETER bw_example_fxpp_trem_get_parameter
#endif

View File

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

View File

@ -0,0 +1,36 @@
/*
* 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 0x9b34db74
#define PLUGIN_GUID_2 0x9ac54cb4
#define PLUGIN_GUID_3 0xb123bcc0
#define PLUGIN_GUID_4 0x85cff887
#define CTRL_GUID_1 0xe4bdf818
#define CTRL_GUID_2 0xd8e54d7e
#define CTRL_GUID_3 0xa3f44e05
#define CTRL_GUID_4 0x2dd106f3
#endif

93
include/bwpp_phaser.h Normal file
View File

@ -0,0 +1,93 @@
/*
* 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 BWPP_PHASER_H
#define BWPP_PHASER_H
#include <bw_phaser.h>
#include <array>
namespace Brickworks {
template<BW_SIZE_T N_CHANNELS>
class Phaser {
public:
Phaser();
void setSampleRate(float sampleRate);
void reset();
void process(
std::array<const float *, N_CHANNELS> x,
std::array<float *, N_CHANNELS> y,
int nSamples);
void setRate(float value);
void setCenter(float value);
void setAmount(float value);
private:
bw_phaser_coeffs coeffs;
bw_phaser_state states[N_CHANNELS];
bw_phaser_state *statesP[N_CHANNELS];
};
template<BW_SIZE_T N_CHANNELS>
Phaser<N_CHANNELS>::Phaser() {
bw_phaser_init(&coeffs);
for (unsigned int i = 0; i < N_CHANNELS; i++)
statesP[i] = states + i;
}
template<BW_SIZE_T N_CHANNELS>
void Phaser<N_CHANNELS>::setSampleRate(float sampleRate) {
bw_phaser_set_sample_rate(&coeffs, sampleRate);
}
template<BW_SIZE_T N_CHANNELS>
void Phaser<N_CHANNELS>::reset() {
bw_phaser_reset_coeffs(&coeffs);
for (unsigned int i = 0; i < N_CHANNELS; i++)
bw_phaser_reset_state(&coeffs, states + i);
}
template<BW_SIZE_T N_CHANNELS>
void Phaser<N_CHANNELS>::process(
std::array<const float *, N_CHANNELS> x,
std::array<float *, N_CHANNELS> y,
int nSamples) {
bw_phaser_process_multi(&coeffs, statesP, x.data(), y.data(), N_CHANNELS, nSamples);
}
template<BW_SIZE_T N_CHANNELS>
void Phaser<N_CHANNELS>::setRate(float value) {
bw_phaser_set_rate(&coeffs, value);
}
template<BW_SIZE_T N_CHANNELS>
void Phaser<N_CHANNELS>::setCenter(float value) {
bw_phaser_set_center(&coeffs, value);
}
template<BW_SIZE_T N_CHANNELS>
void Phaser<N_CHANNELS>::setAmount(float value) {
bw_phaser_set_amount(&coeffs, value);
}
}
#endif

87
include/bwpp_trem.h Normal file
View File

@ -0,0 +1,87 @@
/*
* 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 BWPP_TREM_H
#define BWPP_TREM_H
#include <bw_trem.h>
#include <array>
namespace Brickworks {
template<BW_SIZE_T N_CHANNELS>
class Trem {
public:
Trem();
void setSampleRate(float sampleRate);
void reset();
void process(
std::array<const float *, N_CHANNELS> x,
std::array<float *, N_CHANNELS> y,
int nSamples);
void setRate(float value);
void setAmount(float value);
private:
bw_trem_coeffs coeffs;
bw_trem_state states[N_CHANNELS];
bw_trem_state *statesP[N_CHANNELS];
};
template<BW_SIZE_T N_CHANNELS>
Trem<N_CHANNELS>::Trem() {
bw_trem_init(&coeffs);
for (unsigned int i = 0; i < N_CHANNELS; i++)
statesP[i] = states + i;
}
template<BW_SIZE_T N_CHANNELS>
void Trem<N_CHANNELS>::setSampleRate(float sampleRate) {
bw_trem_set_sample_rate(&coeffs, sampleRate);
}
template<BW_SIZE_T N_CHANNELS>
void Trem<N_CHANNELS>::reset() {
bw_trem_reset_coeffs(&coeffs);
for (unsigned int i = 0; i < N_CHANNELS; i++)
bw_trem_reset_state(&coeffs, states + i);
}
template<BW_SIZE_T N_CHANNELS>
void Trem<N_CHANNELS>::process(
std::array<const float *, N_CHANNELS> x,
std::array<float *, N_CHANNELS> y,
int nSamples) {
bw_trem_process_multi(&coeffs, statesP, x.data(), y.data(), N_CHANNELS, nSamples);
}
template<BW_SIZE_T N_CHANNELS>
void Trem<N_CHANNELS>::setRate(float value) {
bw_trem_set_rate(&coeffs, value);
}
template<BW_SIZE_T N_CHANNELS>
void Trem<N_CHANNELS>::setAmount(float value) {
bw_trem_set_amount(&coeffs, value);
}
}
#endif