|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471 |
- /*
- * Carla Native Plugins
- * Copyright (C) 2012-2014 Filipe Coelho <falktx@falktx.com>
- *
- * This program 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; either version 2 of
- * the License, or any later version.
- *
- * This program 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.
- *
- * For a full copy of the GNU General Public License see the doc/GPL.txt file.
- */
-
- #include "CarlaNative.hpp"
- #include "CarlaMathUtils.hpp"
-
- #include "Effects/Alienwah.h"
- #include "Effects/Chorus.h"
- #include "Effects/Distorsion.h"
- #include "Effects/DynamicFilter.h"
- #include "Effects/Echo.h"
- #include "Effects/Phaser.h"
- #include "Effects/Reverb.h"
-
- #include "juce_audio_basics.h"
- using juce::FloatVectorOperations;
-
- // -----------------------------------------------------------------------
-
- class FxAbstractPlugin : public NativePluginClass
- {
- protected:
- FxAbstractPlugin(const NativeHostDescriptor* const host, const uint32_t paramCount, const uint32_t programCount)
- : NativePluginClass(host),
- fParamCount(paramCount-2), // volume and pan handled by host
- fProgramCount(programCount),
- fEffect(nullptr),
- efxoutl(nullptr),
- efxoutr(nullptr),
- leakDetector_FxAbstractPlugin()
- {
- const int bufferSize(static_cast<int>(getBufferSize()));
-
- efxoutl = new float[bufferSize];
- efxoutr = new float[bufferSize];
-
- FloatVectorOperations::clear(efxoutl, bufferSize);
- FloatVectorOperations::clear(efxoutr, bufferSize);
- }
-
- ~FxAbstractPlugin() override
- {
- if (efxoutl != nullptr)
- {
- delete[] efxoutl;
- efxoutl = nullptr;
- }
-
- if (efxoutr != nullptr)
- {
- delete[] efxoutr;
- efxoutr = nullptr;
- }
-
- if (fEffect != nullptr)
- {
- delete fEffect;
- fEffect = nullptr;
- }
- }
-
- // -------------------------------------------------------------------
- // Plugin parameter calls
-
- uint32_t getParameterCount() const final
- {
- return fParamCount;
- }
-
- float getParameterValue(const uint32_t index) const final
- {
- return static_cast<float>(fEffect->getpar(static_cast<int>(index+2)));
- }
-
- // -------------------------------------------------------------------
- // Plugin midi-program calls
-
- uint32_t getMidiProgramCount() const final
- {
- return fProgramCount;
- }
-
- // -------------------------------------------------------------------
- // Plugin state calls
-
- void setParameterValue(const uint32_t index, const float value) final
- {
- fEffect->changepar(static_cast<int>(index+2), static_cast<uchar>(carla_fixValue(0.0f, 127.0f, value)));
- }
-
- void setMidiProgram(const uint8_t, const uint32_t, const uint32_t program) final
- {
- fEffect->setpreset(static_cast<uchar>(program));
-
- // reset volume and pan
- fEffect->changepar(0, 127);
- fEffect->changepar(1, 64);
- }
-
- // -------------------------------------------------------------------
- // Plugin process calls
-
- void activate() final
- {
- fEffect->cleanup();
- }
-
- void process(float** const inBuffer, float** const outBuffer, const uint32_t frames, const NativeMidiEvent* const, const uint32_t) final
- {
- const int iframes(static_cast<int>(frames));
-
- if (outBuffer[0] != inBuffer[0])
- FloatVectorOperations::copyWithMultiply(outBuffer[0], inBuffer[0], 0.5f, iframes);
- else
- FloatVectorOperations::multiply(outBuffer[0], 0.5f, iframes);
-
- if (outBuffer[1] != inBuffer[1])
- FloatVectorOperations::copyWithMultiply(outBuffer[1], inBuffer[1], 0.5f, iframes);
- else
- FloatVectorOperations::multiply(outBuffer[1], 0.5f, iframes);
-
- fEffect->out(Stereo<float*>(inBuffer[0], inBuffer[1]));
-
- FloatVectorOperations::addWithMultiply(outBuffer[0], efxoutl, 0.5f, iframes);
- FloatVectorOperations::addWithMultiply(outBuffer[1], efxoutr, 0.5f, iframes);
- }
-
- // -------------------------------------------------------------------
- // Plugin dispatcher
-
- void bufferSizeChanged(const uint32_t bufferSize) final
- {
- const int ibufferSize(static_cast<int>(getBufferSize()));
-
- delete[] efxoutl;
- delete[] efxoutr;
- efxoutl = new float[bufferSize];
- efxoutr = new float[bufferSize];
- FloatVectorOperations::clear(efxoutl, ibufferSize);
- FloatVectorOperations::clear(efxoutr, ibufferSize);
-
- doReinit(getSampleRate(), bufferSize);
- }
-
- void sampleRateChanged(const double sampleRate) final
- {
- doReinit(sampleRate, getBufferSize());
- }
-
- void doReinit(const double sampleRate, const uint32_t bufferSize)
- {
- uchar params[fParamCount];
-
- for (int i=0, count=static_cast<int>(fParamCount); i<count; ++i)
- params[i] = fEffect->getpar(i+2);
-
- reinit(static_cast<uint>(sampleRate), static_cast<int>(bufferSize));
-
- for (int i=0, count=static_cast<int>(fParamCount); i<count; ++i)
- fEffect->changepar(i+2, params[i]);
- }
-
- virtual void reinit(const uint sampleRate, const int bufferSize) = 0;
-
- // -------------------------------------------------------------------
-
- const uint32_t fParamCount;
- const uint32_t fProgramCount;
-
- Effect* fEffect;
- float* efxoutl;
- float* efxoutr;
-
- CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(FxAbstractPlugin)
- };
-
- // -----------------------------------------------------------------------
-
- class FxAlienWahPlugin : public FxAbstractPlugin
- {
- public:
- FxAlienWahPlugin(const NativeHostDescriptor* const host)
- : FxAbstractPlugin(host, 11, 4),
- leakDetector_FxAlienWahPlugin()
- {
- fEffect = new Alienwah(false, efxoutl, efxoutr, static_cast<uint>(getSampleRate()), static_cast<int>(getBufferSize()));
- }
-
- protected:
- // -------------------------------------------------------------------
- // Plugin parameter calls
-
- const NativeParameter* getParameterInfo(const uint32_t index) const override
- {
- if (index >= fParamCount)
- return nullptr;
-
- static NativeParameter param;
- static NativeParameterScalePoint scalePoints[2];
-
- int hints = NATIVE_PARAMETER_IS_ENABLED|NATIVE_PARAMETER_IS_INTEGER;
-
- param.name = nullptr;
- param.unit = nullptr;
- param.ranges.def = 1.0f;
- param.ranges.min = 0.0f;
- param.ranges.max = 127.0f;
- param.ranges.step = 1.0f;
- param.ranges.stepSmall = 1.0f;
- param.ranges.stepLarge = 20.0f;
- param.scalePointCount = 0;
- param.scalePoints = nullptr;
-
- switch (index)
- {
- case 0:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Frequency";
- param.ranges.def = 70.0f;
- break;
- case 1:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Randomness";
- param.ranges.def = 0.0f;
- break;
- case 2:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN|NATIVE_PARAMETER_USES_SCALEPOINTS;
- param.name = "LFO Type";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- param.scalePointCount = 2;
- param.scalePoints = scalePoints;
- scalePoints[0].label = "Sine";
- scalePoints[1].label = "Triangle";
- scalePoints[0].value = 0.0f;
- scalePoints[1].value = 1.0f;
- break;
- case 3:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Stereo";
- param.ranges.def = 62.0f;
- break;
- case 4:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Depth";
- param.ranges.def = 60.0f;
- break;
- case 5:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Feedback";
- param.ranges.def = 105.0f;
- break;
- case 6:
- param.name = "Delay";
- param.ranges.def = 25.0f;
- param.ranges.min = 1.0f;
- param.ranges.max = 100.0f;
- break;
- case 7:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "L/R Cross";
- param.ranges.def = 0.0f;
- break;
- case 8:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Phase";
- param.ranges.def = 64.0f;
- break;
- }
-
- param.hints = static_cast<NativeParameterHints>(hints);
-
- return ¶m;
- }
-
- // -------------------------------------------------------------------
- // Plugin midi-program calls
-
- const NativeMidiProgram* getMidiProgramInfo(const uint32_t index) const override
- {
- if (index >= fProgramCount)
- return nullptr;
-
- static NativeMidiProgram midiProg;
-
- midiProg.bank = 0;
- midiProg.program = index;
-
- switch (index)
- {
- case 0:
- midiProg.name = "AlienWah1";
- break;
- case 1:
- midiProg.name = "AlienWah2";
- break;
- case 2:
- midiProg.name = "AlienWah3";
- break;
- case 3:
- midiProg.name = "AlienWah4";
- break;
- default:
- midiProg.name = nullptr;
- break;
- }
-
- return &midiProg;
- }
-
- // -------------------------------------------------------------------
-
- void reinit(const uint sampleRate, const int bufferSize) override
- {
- delete fEffect;
- fEffect = new Alienwah(false, efxoutl, efxoutr, sampleRate, bufferSize);
- }
-
- PluginClassEND(FxAlienWahPlugin)
- CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(FxAlienWahPlugin)
- };
-
- // -----------------------------------------------------------------------
-
- class FxChorusPlugin : public FxAbstractPlugin
- {
- public:
- FxChorusPlugin(const NativeHostDescriptor* const host)
- : FxAbstractPlugin(host, 12, 10),
- leakDetector_FxChorusPlugin()
- {
- fEffect = new Chorus(false, efxoutl, efxoutr, static_cast<uint>(getSampleRate()), static_cast<int>(getBufferSize()));
- }
-
- protected:
- // -------------------------------------------------------------------
- // Plugin parameter calls
-
- const NativeParameter* getParameterInfo(const uint32_t index) const override
- {
- if (index >= fParamCount)
- return nullptr;
-
- static NativeParameter param;
- static NativeParameterScalePoint scalePoints[2];
-
- int hints = NATIVE_PARAMETER_IS_ENABLED|NATIVE_PARAMETER_IS_INTEGER;
-
- param.name = nullptr;
- param.unit = nullptr;
- param.ranges.def = 1.0f;
- param.ranges.min = 0.0f;
- param.ranges.max = 127.0f;
- param.ranges.step = 1.0f;
- param.ranges.stepSmall = 1.0f;
- param.ranges.stepLarge = 20.0f;
- param.scalePointCount = 0;
- param.scalePoints = nullptr;
-
- switch (index)
- {
- case 0:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Frequency";
- param.ranges.def = 50.0f;
- break;
- case 1:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Randomness";
- param.ranges.def = 0.0f;
- break;
- case 2:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN|NATIVE_PARAMETER_USES_SCALEPOINTS;
- param.name = "LFO Type";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- param.scalePointCount = 2;
- param.scalePoints = scalePoints;
- scalePoints[0].label = "Sine";
- scalePoints[1].label = "Triangle";
- scalePoints[0].value = 0.0f;
- scalePoints[1].value = 1.0f;
- break;
- case 3:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Stereo";
- param.ranges.def = 90.0f;
- break;
- case 4:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Depth";
- param.ranges.def = 40.0f;
- break;
- case 5:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Delay";
- param.ranges.def = 85.0f;
- break;
- case 6:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Feedback";
- param.ranges.def = 64.0f;
- break;
- case 7:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "L/R Cross";
- param.ranges.def = 119.0f;
- break;
- case 8:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN;
- param.name = "Flange Mode";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- break;
- case 9:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN;
- param.name = "Subtract Output";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- break;
- }
-
- param.hints = static_cast<NativeParameterHints>(hints);
-
- return ¶m;
- }
-
- // -------------------------------------------------------------------
- // Plugin midi-program calls
-
- const NativeMidiProgram* getMidiProgramInfo(const uint32_t index) const override
- {
- if (index >= fProgramCount)
- return nullptr;
-
- static NativeMidiProgram midiProg;
-
- midiProg.bank = 0;
- midiProg.program = index;
-
- switch (index)
- {
- case 0:
- midiProg.name = "Chorus1";
- break;
- case 1:
- midiProg.name = "Chorus2";
- break;
- case 2:
- midiProg.name = "Chorus3";
- break;
- case 3:
- midiProg.name = "Celeste1";
- break;
- case 4:
- midiProg.name = "Celeste2";
- break;
- case 5:
- midiProg.name = "Flange1";
- break;
- case 6:
- midiProg.name = "Flange2";
- break;
- case 7:
- midiProg.name = "Flange3";
- break;
- case 8:
- midiProg.name = "Flange4";
- break;
- case 9:
- midiProg.name = "Flange5";
- break;
- default:
- midiProg.name = nullptr;
- break;
- }
-
- return &midiProg;
- }
-
- // -------------------------------------------------------------------
-
- void reinit(const uint sampleRate, const int bufferSize) override
- {
- delete fEffect;
- fEffect = new Chorus(false, efxoutl, efxoutr, sampleRate, bufferSize);
- }
-
- PluginClassEND(FxChorusPlugin)
- CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(FxChorusPlugin)
- };
-
- // -----------------------------------------------------------------------
-
- class FxDistortionPlugin : public FxAbstractPlugin
- {
- public:
- FxDistortionPlugin(const NativeHostDescriptor* const host)
- : FxAbstractPlugin(host, 11, 6),
- leakDetector_FxDistortionPlugin()
- {
- fEffect = new Distorsion(false, efxoutl, efxoutr, static_cast<uint>(getSampleRate()), static_cast<int>(getBufferSize()));
- }
-
- protected:
- // -------------------------------------------------------------------
- // Plugin parameter calls
-
- const NativeParameter* getParameterInfo(const uint32_t index) const override
- {
- if (index >= fParamCount)
- return nullptr;
-
- static NativeParameter param;
- static NativeParameterScalePoint scalePoints[14];
-
- int hints = NATIVE_PARAMETER_IS_ENABLED|NATIVE_PARAMETER_IS_INTEGER;
-
- param.name = nullptr;
- param.unit = nullptr;
- param.ranges.def = 1.0f;
- param.ranges.min = 0.0f;
- param.ranges.max = 127.0f;
- param.ranges.step = 1.0f;
- param.ranges.stepSmall = 1.0f;
- param.ranges.stepLarge = 20.0f;
- param.scalePointCount = 0;
- param.scalePoints = nullptr;
-
- switch (index)
- {
- case 0:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "L/R Cross";
- param.ranges.def = 35.0f;
- break;
- case 1:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Drive";
- param.ranges.def = 56.0f;
- break;
- case 2:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Level";
- param.ranges.def = 70.0f;
- break;
- case 3:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_USES_SCALEPOINTS;
- param.name = "Type";
- param.ranges.def = 0.0f;
- param.ranges.max = 13.0f;
- param.scalePointCount = 14;
- param.scalePoints = scalePoints;
- scalePoints[ 0].label = "Arctangent";
- scalePoints[ 1].label = "Asymmetric";
- scalePoints[ 2].label = "Pow";
- scalePoints[ 3].label = "Sine";
- scalePoints[ 4].label = "Quantisize";
- scalePoints[ 5].label = "Zigzag";
- scalePoints[ 6].label = "Limiter";
- scalePoints[ 7].label = "Upper Limiter";
- scalePoints[ 8].label = "Lower Limiter";
- scalePoints[ 9].label = "Inverse Limiter";
- scalePoints[10].label = "Clip";
- scalePoints[11].label = "Asym2";
- scalePoints[12].label = "Pow2";
- scalePoints[13].label = "Sigmoid";
- scalePoints[ 0].value = 0.0f;
- scalePoints[ 1].value = 1.0f;
- scalePoints[ 2].value = 2.0f;
- scalePoints[ 3].value = 3.0f;
- scalePoints[ 4].value = 4.0f;
- scalePoints[ 5].value = 5.0f;
- scalePoints[ 6].value = 6.0f;
- scalePoints[ 7].value = 7.0f;
- scalePoints[ 8].value = 8.0f;
- scalePoints[ 9].value = 9.0f;
- scalePoints[10].value = 10.0f;
- scalePoints[11].value = 11.0f;
- scalePoints[12].value = 12.0f;
- scalePoints[13].value = 13.0f;
- break;
- case 4:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN;
- param.name = "Negate";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- break;
- case 5:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Low-Pass Filter";
- param.ranges.def = 96.0f;
- break;
- case 6:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "High-Pass Filter";
- param.ranges.def = 0.0f;
- break;
- case 7:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN;
- param.name = "Stereo";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- break;
- case 8:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN;
- param.name = "Pre-Filtering";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- break;
- }
-
- param.hints = static_cast<NativeParameterHints>(hints);
-
- return ¶m;
- }
-
- // -------------------------------------------------------------------
- // Plugin midi-program calls
-
- const NativeMidiProgram* getMidiProgramInfo(const uint32_t index) const override
- {
- if (index >= fProgramCount)
- return nullptr;
-
- static NativeMidiProgram midiProg;
-
- midiProg.bank = 0;
- midiProg.program = index;
-
- switch (index)
- {
- case 0:
- midiProg.name = "Overdrive 1";
- break;
- case 1:
- midiProg.name = "Overdrive 2";
- break;
- case 2:
- midiProg.name = "A. Exciter 1";
- break;
- case 3:
- midiProg.name = "A. Exciter 2";
- break;
- case 4:
- midiProg.name = "Guitar Amp";
- break;
- case 5:
- midiProg.name = "Quantisize";
- break;
- default:
- midiProg.name = nullptr;
- break;
- }
-
- return &midiProg;
- }
-
- // -------------------------------------------------------------------
-
- void reinit(const uint sampleRate, const int bufferSize) override
- {
- delete fEffect;
- fEffect = new Distorsion(false, efxoutl, efxoutr, sampleRate, bufferSize);
- }
-
- PluginClassEND(FxDistortionPlugin)
- CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(FxDistortionPlugin)
- };
-
- // -----------------------------------------------------------------------
-
- class FxDynamicFilterPlugin : public FxAbstractPlugin
- {
- public:
- FxDynamicFilterPlugin(const NativeHostDescriptor* const host)
- : FxAbstractPlugin(host, 10, 5),
- leakDetector_FxDynamicFilterPlugin()
- {
- fEffect = new DynamicFilter(false, efxoutl, efxoutr, static_cast<uint>(getSampleRate()), static_cast<int>(getBufferSize()));
- }
-
- protected:
- // -------------------------------------------------------------------
- // Plugin parameter calls
-
- const NativeParameter* getParameterInfo(const uint32_t index) const override
- {
- if (index >= fParamCount)
- return nullptr;
-
- static NativeParameter param;
- static NativeParameterScalePoint scalePoints[2];
-
- int hints = NATIVE_PARAMETER_IS_ENABLED|NATIVE_PARAMETER_IS_INTEGER;
-
- param.name = nullptr;
- param.unit = nullptr;
- param.ranges.def = 1.0f;
- param.ranges.min = 0.0f;
- param.ranges.max = 127.0f;
- param.ranges.step = 1.0f;
- param.ranges.stepSmall = 1.0f;
- param.ranges.stepLarge = 20.0f;
- param.scalePointCount = 0;
- param.scalePoints = nullptr;
-
- switch (index)
- {
- case 0:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Frequency";
- param.ranges.def = 80.0f;
- break;
- case 1:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Randomness";
- param.ranges.def = 0.0f;
- break;
- case 2:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN|NATIVE_PARAMETER_USES_SCALEPOINTS;
- param.name = "LFO Type";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- param.scalePointCount = 2;
- param.scalePoints = scalePoints;
- scalePoints[0].label = "Sine";
- scalePoints[1].label = "Triangle";
- scalePoints[0].value = 0.0f;
- scalePoints[1].value = 1.0f;
- break;
- case 3:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Stereo";
- param.ranges.def = 64.0f;
- break;
- case 4:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Depth";
- param.ranges.def = 0.0f;
- break;
- case 5:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Amp sns";
- param.ranges.def = 90.0f;
- break;
- case 6:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN;
- param.name = "Amp sns inv";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- break;
- case 7:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Amp Smooth";
- param.ranges.def = 60.0f;
- break;
- }
-
- param.hints = static_cast<NativeParameterHints>(hints);
-
- return ¶m;
- }
-
- // -------------------------------------------------------------------
- // Plugin midi-program calls
-
- const NativeMidiProgram* getMidiProgramInfo(const uint32_t index) const override
- {
- if (index >= fProgramCount)
- return nullptr;
-
- static NativeMidiProgram midiProg;
-
- midiProg.bank = 0;
- midiProg.program = index;
-
- switch (index)
- {
- case 0:
- midiProg.name = "WahWah";
- break;
- case 1:
- midiProg.name = "AutoWah";
- break;
- case 2:
- midiProg.name = "Sweep";
- break;
- case 3:
- midiProg.name = "VocalMorph1";
- break;
- case 4:
- midiProg.name = "VocalMorph2";
- break;
- default:
- midiProg.name = nullptr;
- break;
- }
-
- return &midiProg;
- }
-
- // -------------------------------------------------------------------
-
- void reinit(const uint sampleRate, const int bufferSize) override
- {
- delete fEffect;
- fEffect = new DynamicFilter(false, efxoutl, efxoutr, sampleRate, bufferSize);
- }
-
- PluginClassEND(FxDynamicFilterPlugin)
- CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(FxDynamicFilterPlugin)
- };
-
- // -----------------------------------------------------------------------
-
- class FxEchoPlugin : public FxAbstractPlugin
- {
- public:
- FxEchoPlugin(const NativeHostDescriptor* const host)
- : FxAbstractPlugin(host, 7, 9),
- leakDetector_FxEchoPlugin()
- {
- fEffect = new Echo(false, efxoutl, efxoutr, static_cast<uint>(getSampleRate()), static_cast<int>(getBufferSize()));
- }
-
- protected:
- // -------------------------------------------------------------------
- // Plugin parameter calls
-
- const NativeParameter* getParameterInfo(const uint32_t index) const override
- {
- if (index >= fParamCount)
- return nullptr;
-
- static NativeParameter param;
-
- int hints = NATIVE_PARAMETER_IS_ENABLED|NATIVE_PARAMETER_IS_INTEGER;
-
- param.name = nullptr;
- param.unit = nullptr;
- param.ranges.def = 1.0f;
- param.ranges.min = 0.0f;
- param.ranges.max = 127.0f;
- param.ranges.step = 1.0f;
- param.ranges.stepSmall = 1.0f;
- param.ranges.stepLarge = 20.0f;
- param.scalePointCount = 0;
- param.scalePoints = nullptr;
-
- switch (index)
- {
- case 0:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Delay";
- param.ranges.def = 35.0f;
- break;
- case 1:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "L/R Delay";
- param.ranges.def = 64.0f;
- break;
- case 2:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "L/R Cross";
- param.ranges.def = 30.0f;
- break;
- case 3:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Feedback";
- param.ranges.def = 59.0f;
- break;
- case 4:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "High Damp";
- param.ranges.def = 0.0f;
- break;
- }
-
- param.hints = static_cast<NativeParameterHints>(hints);
-
- return ¶m;
- }
-
- // -------------------------------------------------------------------
- // Plugin midi-program calls
-
- const NativeMidiProgram* getMidiProgramInfo(const uint32_t index) const override
- {
- if (index >= fProgramCount)
- return nullptr;
-
- static NativeMidiProgram midiProg;
-
- midiProg.bank = 0;
- midiProg.program = index;
-
- switch (index)
- {
- case 0:
- midiProg.name = "Echo 1";
- break;
- case 1:
- midiProg.name = "Echo 2";
- break;
- case 2:
- midiProg.name = "Echo 3";
- break;
- case 3:
- midiProg.name = "Simple Echo";
- break;
- case 4:
- midiProg.name = "Canyon";
- break;
- case 5:
- midiProg.name = "Panning Echo 1";
- break;
- case 6:
- midiProg.name = "Panning Echo 2";
- break;
- case 7:
- midiProg.name = "Panning Echo 3";
- break;
- case 8:
- midiProg.name = "Feedback Echo";
- break;
- default:
- midiProg.name = nullptr;
- break;
- }
-
- return &midiProg;
- }
-
- // -------------------------------------------------------------------
-
- void reinit(const uint sampleRate, const int bufferSize) override
- {
- delete fEffect;
- fEffect = new Echo(false, efxoutl, efxoutr, sampleRate, bufferSize);
- }
-
- PluginClassEND(FxEchoPlugin)
- CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(FxEchoPlugin)
- };
-
- // -----------------------------------------------------------------------
-
- class FxPhaserPlugin : public FxAbstractPlugin
- {
- public:
- FxPhaserPlugin(const NativeHostDescriptor* const host)
- : FxAbstractPlugin(host, 15, 12),
- leakDetector_FxPhaserPlugin()
- {
- fEffect = new Phaser(false, efxoutl, efxoutr, static_cast<uint>(getSampleRate()), static_cast<int>(getBufferSize()));
- }
-
- protected:
- // -------------------------------------------------------------------
- // Plugin parameter calls
-
- const NativeParameter* getParameterInfo(const uint32_t index) const override
- {
- if (index >= fParamCount)
- return nullptr;
-
- static NativeParameter param;
- static NativeParameterScalePoint scalePoints[2];
-
- int hints = NATIVE_PARAMETER_IS_ENABLED|NATIVE_PARAMETER_IS_INTEGER;
-
- param.name = nullptr;
- param.unit = nullptr;
- param.ranges.def = 1.0f;
- param.ranges.min = 0.0f;
- param.ranges.max = 127.0f;
- param.ranges.step = 1.0f;
- param.ranges.stepSmall = 1.0f;
- param.ranges.stepLarge = 20.0f;
- param.scalePointCount = 0;
- param.scalePoints = nullptr;
-
- switch (index)
- {
- case 0:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Frequency";
- param.ranges.def = 36.0f;
- break;
- case 1:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Randomness";
- param.ranges.def = 0.0f;
- break;
- case 2:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN|NATIVE_PARAMETER_USES_SCALEPOINTS;
- param.name = "LFO Type";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- param.scalePointCount = 2;
- param.scalePoints = scalePoints;
- scalePoints[0].label = "Sine";
- scalePoints[1].label = "Triangle";
- scalePoints[0].value = 0.0f;
- scalePoints[1].value = 1.0f;
- break;
- case 3:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "LFO Stereo";
- param.ranges.def = 64.0f;
- break;
- case 4:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Depth";
- param.ranges.def = 110.0f;
- break;
- case 5:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Feedback";
- param.ranges.def = 64.0f;
- break;
- case 6:
- param.name = "Stages";
- param.ranges.def = 1.0f;
- param.ranges.min = 1.0f;
- param.ranges.max = 12.0f;
- break;
- case 7:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "L/R Cross|Offset";
- param.ranges.def = 0.0f;
- break;
- case 8:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN;
- param.name = "Subtract Output";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- break;
- case 9:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Phase|Width";
- param.ranges.def = 20.0f;
- break;
- case 10:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN;
- param.name = "Hyper";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- break;
- case 11:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Distortion";
- param.ranges.def = 0.0f;
- break;
- case 12:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE|NATIVE_PARAMETER_IS_BOOLEAN;
- param.name = "Analog";
- param.ranges.def = 0.0f;
- param.ranges.max = 1.0f;
- break;
- }
-
- param.hints = static_cast<NativeParameterHints>(hints);
-
- return ¶m;
- }
-
- // -------------------------------------------------------------------
- // Plugin midi-program calls
-
- const NativeMidiProgram* getMidiProgramInfo(const uint32_t index) const override
- {
- if (index >= fProgramCount)
- return nullptr;
-
- static NativeMidiProgram midiProg;
-
- midiProg.bank = 0;
- midiProg.program = index;
-
- switch (index)
- {
- case 0:
- midiProg.name = "Phaser 1";
- break;
- case 1:
- midiProg.name = "Phaser 2";
- break;
- case 2:
- midiProg.name = "Phaser 3";
- break;
- case 3:
- midiProg.name = "Phaser 4";
- break;
- case 4:
- midiProg.name = "Phaser 5";
- break;
- case 5:
- midiProg.name = "Phaser 6";
- break;
- case 6:
- midiProg.name = "APhaser 1";
- break;
- case 7:
- midiProg.name = "APhaser 2";
- break;
- case 8:
- midiProg.name = "APhaser 3";
- break;
- case 9:
- midiProg.name = "APhaser 4";
- break;
- case 10:
- midiProg.name = "APhaser 5";
- break;
- case 11:
- midiProg.name = "APhaser 6";
- break;
- default:
- midiProg.name = nullptr;
- break;
- }
-
- return &midiProg;
- }
-
- // -------------------------------------------------------------------
-
- void reinit(const uint sampleRate, const int bufferSize) override
- {
- delete fEffect;
- fEffect = new Phaser(false, efxoutl, efxoutr, sampleRate, bufferSize);
- }
-
- PluginClassEND(FxPhaserPlugin)
- CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(FxPhaserPlugin)
- };
-
- // -----------------------------------------------------------------------
-
- class FxReverbPlugin : public FxAbstractPlugin
- {
- public:
- FxReverbPlugin(const NativeHostDescriptor* const host)
- : FxAbstractPlugin(host, 13, 13),
- leakDetector_FxReverbPlugin()
- {
- fEffect = new Reverb(false, efxoutl, efxoutr, static_cast<uint>(getSampleRate()), static_cast<int>(getBufferSize()));
- }
-
- protected:
- // -------------------------------------------------------------------
- // Plugin parameter calls
-
- const NativeParameter* getParameterInfo(const uint32_t index) const override
- {
- if (index >= fParamCount)
- return nullptr;
-
- static NativeParameter param;
- static NativeParameterScalePoint scalePoints[3];
-
- int hints = NATIVE_PARAMETER_IS_ENABLED|NATIVE_PARAMETER_IS_INTEGER;
-
- param.name = nullptr;
- param.unit = nullptr;
- param.ranges.def = 1.0f;
- param.ranges.min = 0.0f;
- param.ranges.max = 127.0f;
- param.ranges.step = 1.0f;
- param.ranges.stepSmall = 1.0f;
- param.ranges.stepLarge = 20.0f;
- param.scalePointCount = 0;
- param.scalePoints = nullptr;
-
- switch (index)
- {
- case 0:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Time";
- param.ranges.def = 63.0f;
- break;
- case 1:
- param.name = "Delay";
- param.ranges.def = 24.0f;
- break;
- case 2:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Feedback";
- param.ranges.def = 0.0f;
- break;
- case 3:
- hints = 0x0;
- param.name = "bw";
- break;
- case 4:
- hints = 0x0;
- param.name = "E/R";
- break;
- case 5:
- param.name = "Low-Pass Filter";
- param.ranges.def = 85.0f;
- break;
- case 6:
- param.name = "High-Pass Filter";
- param.ranges.def = 5.0f;
- break;
- case 7:
- hints |= NATIVE_PARAMETER_IS_AUTOMABLE;
- param.name = "Damp";
- param.ranges.def = 83.0f;
- param.ranges.min = 64.0f;
- break;
- case 8:
- hints |= NATIVE_PARAMETER_USES_SCALEPOINTS;
- param.name = "Type";
- param.ranges.def = 1.0f;
- param.ranges.max = 2.0f;
- param.scalePointCount = 3;
- param.scalePoints = scalePoints;
- scalePoints[0].label = "Random";
- scalePoints[1].label = "Freeverb";
- scalePoints[2].label = "Bandwidth";
- scalePoints[0].value = 0.0f;
- scalePoints[1].value = 1.0f;
- scalePoints[2].value = 2.0f;
- break;
- case 9:
- param.name = "Room size";
- param.ranges.def = 64.0f;
- param.ranges.min = 1.0f;
- break;
- case 10:
- param.name = "Bandwidth";
- param.ranges.def = 20.0f;
- break;
- }
-
- param.hints = static_cast<NativeParameterHints>(hints);
-
- return ¶m;
- }
-
- // -------------------------------------------------------------------
- // Plugin midi-program calls
-
- const NativeMidiProgram* getMidiProgramInfo(const uint32_t index) const override
- {
- if (index >= fProgramCount)
- return nullptr;
-
- static NativeMidiProgram midiProg;
-
- midiProg.bank = 0;
- midiProg.program = index;
-
- switch (index)
- {
- case 0:
- midiProg.name = "Cathedral1";
- break;
- case 1:
- midiProg.name = "Cathedral2";
- break;
- case 2:
- midiProg.name = "Cathedral3";
- break;
- case 3:
- midiProg.name = "Hall1";
- break;
- case 4:
- midiProg.name = "Hall2";
- break;
- case 5:
- midiProg.name = "Room1";
- break;
- case 6:
- midiProg.name = "Room2";
- break;
- case 7:
- midiProg.name = "Basement";
- break;
- case 8:
- midiProg.name = "Tunnel";
- break;
- case 9:
- midiProg.name = "Echoed1";
- break;
- case 10:
- midiProg.name = "Echoed2";
- break;
- case 11:
- midiProg.name = "VeryLong1";
- break;
- case 12:
- midiProg.name = "VeryLong2";
- break;
- default:
- midiProg.name = nullptr;
- break;
- }
-
- return &midiProg;
- }
-
- // -------------------------------------------------------------------
-
- void reinit(const uint sampleRate, const int bufferSize) override
- {
- delete fEffect;
- fEffect = new Reverb(false, efxoutl, efxoutr, sampleRate, bufferSize);
- }
-
- PluginClassEND(FxReverbPlugin)
- CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(FxReverbPlugin)
- };
-
- // -----------------------------------------------------------------------
-
- static const NativePluginDescriptor fxAlienWahDesc = {
- /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
- /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE|NATIVE_PLUGIN_USES_PANNING|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
- /* supports */ static_cast<NativePluginSupports>(0x0),
- /* audioIns */ 2,
- /* audioOuts */ 2,
- /* midiIns */ 0,
- /* midiOuts */ 0,
- /* paramIns */ 11-2,
- /* paramOuts */ 0,
- /* name */ "ZynAlienWah",
- /* label */ "zynalienwah",
- /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
- /* copyright */ "GNU GPL v2+",
- PluginDescriptorFILL(FxAlienWahPlugin)
- };
-
- static const NativePluginDescriptor fxChorusDesc = {
- /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
- /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE|NATIVE_PLUGIN_USES_PANNING|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
- /* supports */ static_cast<NativePluginSupports>(0x0),
- /* audioIns */ 2,
- /* audioOuts */ 2,
- /* midiIns */ 0,
- /* midiOuts */ 0,
- /* paramIns */ 12-2,
- /* paramOuts */ 0,
- /* name */ "ZynChorus",
- /* label */ "zynchorus",
- /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
- /* copyright */ "GNU GPL v2+",
- PluginDescriptorFILL(FxChorusPlugin)
- };
-
- static const NativePluginDescriptor fxDistortionDesc = {
- /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
- /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
- /* supports */ static_cast<NativePluginSupports>(0x0),
- /* audioIns */ 2,
- /* audioOuts */ 2,
- /* midiIns */ 0,
- /* midiOuts */ 0,
- /* paramIns */ 11-2,
- /* paramOuts */ 0,
- /* name */ "ZynDistortion",
- /* label */ "zyndistortion",
- /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
- /* copyright */ "GNU GPL v2+",
- PluginDescriptorFILL(FxDistortionPlugin)
- };
-
- static const NativePluginDescriptor fxDynamicFilterDesc = {
- /* category */ NATIVE_PLUGIN_CATEGORY_FILTER,
- /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
- /* supports */ static_cast<NativePluginSupports>(0x0),
- /* audioIns */ 2,
- /* audioOuts */ 2,
- /* midiIns */ 0,
- /* midiOuts */ 0,
- /* paramIns */ 10-2,
- /* paramOuts */ 0,
- /* name */ "ZynDynamicFilter",
- /* label */ "zyndynamicfilter",
- /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
- /* copyright */ "GNU GPL v2+",
- PluginDescriptorFILL(FxDynamicFilterPlugin)
- };
-
- static const NativePluginDescriptor fxEchoDesc = {
- /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
- /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE|NATIVE_PLUGIN_USES_PANNING|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
- /* supports */ static_cast<NativePluginSupports>(0x0),
- /* audioIns */ 2,
- /* audioOuts */ 2,
- /* midiIns */ 0,
- /* midiOuts */ 0,
- /* paramIns */ 7-2,
- /* paramOuts */ 0,
- /* name */ "ZynEcho",
- /* label */ "zynecho",
- /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
- /* copyright */ "GNU GPL v2+",
- PluginDescriptorFILL(FxEchoPlugin)
- };
-
- static const NativePluginDescriptor fxPhaserDesc = {
- /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
- /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
- /* supports */ static_cast<NativePluginSupports>(0x0),
- /* audioIns */ 2,
- /* audioOuts */ 2,
- /* midiIns */ 0,
- /* midiOuts */ 0,
- /* paramIns */ 15-2,
- /* paramOuts */ 0,
- /* name */ "ZynPhaser",
- /* label */ "zynphaser",
- /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
- /* copyright */ "GNU GPL v2+",
- PluginDescriptorFILL(FxPhaserPlugin)
- };
-
- static const NativePluginDescriptor fxReverbDesc = {
- /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
- /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING|NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
- /* supports */ static_cast<NativePluginSupports>(0x0),
- /* audioIns */ 2,
- /* audioOuts */ 2,
- /* midiIns */ 0,
- /* midiOuts */ 0,
- /* paramIns */ 13-2,
- /* paramOuts */ 0,
- /* name */ "ZynReverb",
- /* label */ "zynreverb",
- /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
- /* copyright */ "GNU GPL v2+",
- PluginDescriptorFILL(FxReverbPlugin)
- };
-
- // -----------------------------------------------------------------------
-
- CARLA_EXPORT
- void carla_register_native_plugin_zynaddsubfx_fx();
-
- CARLA_EXPORT
- void carla_register_native_plugin_zynaddsubfx_fx()
- {
- carla_register_native_plugin(&fxAlienWahDesc);
- carla_register_native_plugin(&fxChorusDesc);
- carla_register_native_plugin(&fxDistortionDesc);
- carla_register_native_plugin(&fxDynamicFilterDesc);
- carla_register_native_plugin(&fxEchoDesc);
- carla_register_native_plugin(&fxPhaserDesc);
- carla_register_native_plugin(&fxReverbDesc);
- }
-
- // -----------------------------------------------------------------------
|