1#ifndef _VAE_FAUST_COMMON
2#define _VAE_FAUST_COMMON
4#include "../vae_types.hpp"
7#define FAUSTFLOAT Sample
9namespace vae {
namespace core {
namespace effect {
10 struct Meta {
void declare(
const char* key,
const char* value) { }; };
40 void addVerticalSlider(
const char* name,
Sample* prop,
Sample pDefault,
Sample min,
Sample max,
Sample stepSize)
const {
addHorizontalSlider(name, prop, pDefault,
min,
max, stepSize); }
Size validSize() const
Returns the length of actually valid audio in the buffer.
void getRaw(T **put)
Fills an 2d array of size maxChannels() with pointers to each channel.
Interaface for faust DSP code.
virtual void compute(int count, Sample **inputs, Sample **outputs)=0
void process(Effect &effect, const ScratchBuffer &in, ScratchBuffer &out) override
virtual void instanceConstants(int samplingFreq)=0
virtual void buildUserInterface(UI *ui_interface)=0
virtual void metadata(Meta *m)=0
T min(const T &v1, const T &v2)
T max(const T &v1, const T &v2)
constexpr unsigned char MaxChannels
Maximum channel count used to pre allocate buffers.
Contains Typedefinitions and basic structures use by the public API and internally.
float Sample
Default sample types used where ever possible, changing this means the engine needs to be recompiled,...
Parameter parameters[StaticConfig::MaxEffectsParameter]
Parameters.
void openVerticalBox(const char *key)
void addVerticalSlider(const char *name, Sample *prop, Sample pDefault, Sample min, Sample max, Sample stepSize) const
void addCheckButton(const char *name, Sample *prop) const
void addHorizontalSlider(const char *name, Sample *prop, Sample pDefault, Sample min, Sample max, Sample stepSize) const
The only important function to control the dsp code.
void declare(Sample *, const char *, const char *)
void addHorizontalBargraph(const char *name, Sample *prop, Sample min, Sample max) const
void openHorizontalBox(const char *key)
void addVerticalBargraph(const char *name, Sample *prop, Sample min, Sample max) const
#define VAE_PROFILER_SCOPE_NAMED(name)
Profiles a scope and names it.