diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-07-22 16:05:42 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-07-22 16:05:42 +0200 |
commit | b11ed1fabd9c6db06e7aa7d4ad046d934bd113a7 (patch) | |
tree | c18b6fcf81fd1555b2328017b3e037e006ca38e6 /plugins/LV2/src/Aura/Aura.cpp | |
parent | 01d03573656f991814489e4c0fa03e7345a41015 (diff) | |
download | airwindows-lv2-port-b11ed1fabd9c6db06e7aa7d4ad046d934bd113a7.tar.gz airwindows-lv2-port-b11ed1fabd9c6db06e7aa7d4ad046d934bd113a7.tar.bz2 airwindows-lv2-port-b11ed1fabd9c6db06e7aa7d4ad046d934bd113a7.zip |
LV2: Added Aura, Average and AverMatrix plugins.
Tried a way to get the units/labels for the AverMatrix controls to
better fit. It's not perfect, and I'm not sure if it's possible to make
it fit 100% either. I'll have to explore this some more.
Diffstat (limited to 'plugins/LV2/src/Aura/Aura.cpp')
-rw-r--r-- | plugins/LV2/src/Aura/Aura.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/LV2/src/Aura/Aura.cpp b/plugins/LV2/src/Aura/Aura.cpp new file mode 100644 index 0000000..cb205ce --- /dev/null +++ b/plugins/LV2/src/Aura/Aura.cpp @@ -0,0 +1,25 @@ +#include "Aura.h" +#include <iostream> +#include <lv2wrapper.h> + +Aura::Aura(double rate) + : LV2Plugin(rate) +{ +} + +void Aura::run(uint32_t num_samples) +{ + A = *params[0]; + B = *params[1]; + + processReplacing(const_cast<float **>(in), out, num_samples); +} + +// +// Include the processing code from the VST version. +// +#include <cmath> +#include "../../../LinuxVST/src/Aura/AuraProc.cpp" + +// Create the LV2Wrapper and register the plugin +LV2Wrapper<Aura> plugin; |