|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543 |
- /*
- * Carla Native Plugins
- * Copyright (C) 2012-2016 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 "CarlaDefines.h"
-
- #define PLUGINVERSION
- #define SOURCE_DIR "/usr/share/zynaddsubfx/examples"
- #undef override
-
- // base c-style headers
- #include "zynaddsubfx/tlsf/tlsf.h"
- #include "zynaddsubfx/rtosc/rtosc.h"
-
- // C-code includes
- extern "C" {
- #include "zynaddsubfx/tlsf/tlsf.c"
- #undef TLSF_64BIT
- #undef tlsf_decl
- #undef tlsf_fls_sizet
- #undef tlsf_cast
- #undef tlsf_min
- #undef tlsf_max
- #undef tlsf_assert
- #undef _tlsf_glue2
- #undef _tlsf_glue
- #undef tlsf_static_assert
- #undef tlsf_insist
-
- #include "zynaddsubfx/rtosc/dispatch.c"
- #include "zynaddsubfx/rtosc/rtosc.c"
- }
-
- // rtosc includes
- #include "zynaddsubfx/rtosc/cpp/midimapper.cpp"
- #include "zynaddsubfx/rtosc/cpp/miditable.cpp"
- #undef RTOSC_INVALID_MIDI
- #undef MAX_UNHANDLED_PATH
- #include "zynaddsubfx/rtosc/cpp/ports.cpp"
- #undef __builtin_expect
- #include "zynaddsubfx/rtosc/cpp/subtree-serialize.cpp"
- #include "zynaddsubfx/rtosc/cpp/thread-link.cpp"
- #undef off_t
- #include "zynaddsubfx/rtosc/cpp/undo-history.cpp"
-
- // zynaddsubfx includes
- #include "zynaddsubfx/version.cpp"
-
- #include "zynaddsubfx/Containers/MultiPseudoStack.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Containers/NotePool.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Containers/ScratchString.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/DSP/AnalogFilter.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/DSP/FFTwrapper.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/DSP/Filter.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/DSP/FormantFilter.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/DSP/SVFilter.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/DSP/Unison.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/Alienwah.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/Chorus.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/Distorsion.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/DynamicFilter.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/Echo.cpp"
- #undef MAX_DELAY
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/Effect.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/EffectLFO.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/EffectMgr.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/EQ.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/Phaser.cpp"
- #undef PHASER_LFO_SHAPE
- #undef ONE_
- #undef ZERO_
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Effects/Reverb.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/Allocator.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/Bank.cpp"
- #undef INSTRUMENT_EXTENSION
- #undef FORCE_BANK_DIR_FILE
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/BankDb.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/CallbackRepeater.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/Config.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/Master.cpp"
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/Microtonal.cpp"
- #undef MAX_LINE_SIZE
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/MiddleWare.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/Part.cpp"
- #undef CLONE
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/PresetExtractor.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/Recorder.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/Util.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/WavFile.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/WaveShapeSmps.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Misc/XMLwrapper.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Params/ADnoteParameters.cpp"
- #undef EXPAND
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Params/Controller.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Params/EnvelopeParams.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Params/FilterParams.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Params/LFOParams.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Params/PADnoteParameters.cpp"
- #undef PC
- #undef P_C
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Params/Presets.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Params/PresetsArray.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Params/PresetsStore.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Params/SUBnoteParameters.cpp"
- #undef doPaste
- #undef doPPaste
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Synth/ADnote.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Synth/Envelope.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Synth/LFO.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Synth/ModFilter.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Synth/OscilGen.cpp"
- #undef PC
- #undef DIFF
- #undef PRESERVE
- #undef RESTORE
- #undef FUNC
- #undef FILTER
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Synth/PADnote.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Synth/Resonance.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Synth/SUBnote.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Synth/SynthNote.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/Synth/WatchPoint.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/UI/ConnectionDummy.cpp"
- #undef rBegin
- #undef rObject
- #undef rStdString
- #undef rStdStringCb
- #undef rChangeCb
- #define rChangeCb
-
- #include "zynaddsubfx/globals.cpp"
-
- // Dummy variables and functions for linking purposes
- class WavFile;
- namespace Nio {
- void masterSwap(Master*){}
- bool setSource(std::string){return true;}
- bool setSink(std::string){return true;}
- std::set<std::string> getSources(void){return std::set<std::string>();}
- std::set<std::string> getSinks(void){return std::set<std::string>();}
- std::string getSource(void){return "";}
- std::string getSink(void){return "";}
- void waveNew(WavFile*){}
- void waveStart(){}
- void waveStop(){}
- }
|