You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2268 lines
62KB

  1. /*
  2. * DISTRHO Cardinal Plugin
  3. * Copyright (C) 2021-2022 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 3 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the LICENSE file.
  16. */
  17. #include "rack.hpp"
  18. #include "plugin.hpp"
  19. #include "DistrhoUtils.hpp"
  20. // Cardinal (built-in)
  21. #include "Cardinal/src/plugin.hpp"
  22. #ifndef NOPLUGINS
  23. // 21kHz
  24. #include "21kHz/src/21kHz.hpp"
  25. // 8Mode
  26. #include "8Mode/src/8mode.hpp"
  27. // AmalgamatedHarmonics
  28. #include "AmalgamatedHarmonics/src/AH.hpp"
  29. // AnimatedCircuits
  30. #include "AnimatedCircuits/src/plugin.hpp"
  31. // Aria
  32. /* NOTE too much noise in original include, do this a different way
  33. // #include "AriaModules/src/plugin.hpp"
  34. */
  35. #define modelBlank modelAriaBlank
  36. extern Model* modelSplort;
  37. extern Model* modelSmerge;
  38. extern Model* modelSpleet;
  39. extern Model* modelSwerge;
  40. extern Model* modelSplirge;
  41. // extern Model* modelSrot;
  42. extern Model* modelQqqq;
  43. extern Model* modelQuack;
  44. extern Model* modelQ;
  45. extern Model* modelQuale;
  46. extern Model* modelDarius;
  47. extern Model* modelSolomon4;
  48. extern Model* modelSolomon8;
  49. extern Model* modelSolomon16;
  50. extern Model* modelPsychopump;
  51. extern Model* modelPokies4;
  52. extern Model* modelGrabby;
  53. extern Model* modelRotatoes4;
  54. extern Model* modelUndular;
  55. extern Model* modelBlank;
  56. #undef modelBlank
  57. // AudibleInstruments
  58. #include "AudibleInstruments/src/plugin.hpp"
  59. // Autinn
  60. /* NOTE too much noise in original include, do this a different way
  61. // #include "Autinn/src/Autinn.hpp"
  62. */
  63. #define modelChord modelAutinnChord
  64. #define modelVibrato modelAutinnVibrato
  65. extern Model* modelJette;
  66. extern Model* modelFlora;
  67. extern Model* modelOxcart;
  68. extern Model* modelDeadband;
  69. extern Model* modelDigi;
  70. extern Model* modelFlopper;
  71. extern Model* modelAmp;
  72. extern Model* modelDC;
  73. extern Model* modelSjip;
  74. extern Model* modelBass;
  75. extern Model* modelSquare;
  76. extern Model* modelSaw;
  77. extern Model* modelBoomerang;
  78. extern Model* modelVibrato;
  79. extern Model* modelVectorDriver; //deprecated
  80. extern Model* modelCVConverter;
  81. extern Model* modelZod;
  82. extern Model* modelTriBand;
  83. extern Model* modelMixer6;
  84. extern Model* modelNon;
  85. extern Model* modelFil;
  86. extern Model* modelNap;
  87. extern Model* modelMelody;
  88. extern Model* modelChord;
  89. #undef modelChord
  90. #undef modelVibrato
  91. // Axioma
  92. #include "Axioma/src/plugin.hpp"
  93. // BaconPlugs
  94. #define INCLUDE_COMPONENTS_HPP
  95. #include "BaconPlugs/src/BaconPlugs.hpp"
  96. #undef INCLUDE_COMPONENTS_HPP
  97. #undef SCREW_WIDTH
  98. #undef RACK_HEIGHT
  99. // Befaco
  100. #define modelADSR modelBefacoADSR
  101. #define modelMixer modelBefacoMixer
  102. #include "Befaco/src/plugin.hpp"
  103. #undef modelADSR
  104. #undef modelMixer
  105. // Bidoo
  106. #include "Bidoo/src/plugin.hpp"
  107. // BogaudioModules - force dark skin as default
  108. #include <mutex>
  109. #include <string>
  110. #include <unordered_map>
  111. #include <unordered_set>
  112. #include <vector>
  113. #define private public
  114. #include "BogaudioModules/src/skins.hpp"
  115. #undef private
  116. // BogaudioModules
  117. #define modelADSR modelBogaudioADSR
  118. #define modelLFO modelBogaudioLFO
  119. #define modelNoise modelBogaudioNoise
  120. #define modelVCA modelBogaudioVCA
  121. #define modelVCF modelBogaudioVCF
  122. #define modelVCO modelBogaudioVCO
  123. extern Model* modelVCO;
  124. extern Model* modelLVCO;
  125. extern Model* modelSine;
  126. extern Model* modelPulse;
  127. extern Model* modelXCO;
  128. extern Model* modelAdditator;
  129. extern Model* modelFMOp;
  130. extern Model* modelChirp;
  131. extern Model* modelLFO;
  132. extern Model* modelLLFO;
  133. extern Model* modelFourFO;
  134. extern Model* modelEightFO;
  135. extern Model* modelVCF;
  136. extern Model* modelLVCF;
  137. extern Model* modelFFB;
  138. extern Model* modelEQ;
  139. extern Model* modelEQS;
  140. extern Model* modelLPG;
  141. extern Model* modelLLPG;
  142. extern Model* modelMegaGate;
  143. extern Model* modelPEQ;
  144. extern Model* modelPEQ6;
  145. extern Model* modelPEQ6XF;
  146. extern Model* modelPEQ14;
  147. extern Model* modelPEQ14XF;
  148. extern Model* modelDADSRH;
  149. extern Model* modelDADSRHPlus;
  150. extern Model* modelShaper;
  151. extern Model* modelShaperPlus;
  152. extern Model* modelAD;
  153. extern Model* modelASR;
  154. extern Model* modelADSR;
  155. extern Model* modelVish;
  156. extern Model* modelFollow;
  157. extern Model* modelDGate;
  158. extern Model* modelRGate;
  159. extern Model* modelEdge;
  160. extern Model* modelNoise;
  161. extern Model* modelSampleHold;
  162. extern Model* modelWalk2;
  163. extern Model* modelWalk;
  164. extern Model* modelMix8;
  165. extern Model* modelMix8x;
  166. extern Model* modelMix4;
  167. extern Model* modelMix4x;
  168. extern Model* modelMix2;
  169. extern Model* modelMix1;
  170. extern Model* modelVCM;
  171. extern Model* modelMute8;
  172. extern Model* modelPan;
  173. extern Model* modelXFade;
  174. extern Model* modelVCA;
  175. extern Model* modelVCAmp;
  176. extern Model* modelVelo;
  177. extern Model* modelUMix;
  178. extern Model* modelMumix;
  179. extern Model* modelMatrix81;
  180. extern Model* modelMatrix18;
  181. extern Model* modelMatrix44;
  182. extern Model* modelMatrix44Cvm;
  183. extern Model* modelMatrix88;
  184. extern Model* modelMatrix88Cv;
  185. extern Model* modelMatrix88M;
  186. extern Model* modelSwitch81;
  187. extern Model* modelSwitch18;
  188. extern Model* modelSwitch44;
  189. extern Model* modelSwitch88;
  190. extern Model* modelSwitch1616;
  191. extern Model* modelAMRM;
  192. extern Model* modelPressor;
  193. extern Model* modelClpr;
  194. extern Model* modelLmtr;
  195. extern Model* modelNsgt;
  196. extern Model* modelCmpDist;
  197. extern Model* modelOneEight;
  198. extern Model* modelEightOne;
  199. extern Model* modelAddrSeq;
  200. extern Model* modelAddrSeqX;
  201. extern Model* modelPgmr;
  202. extern Model* modelPgmrX;
  203. extern Model* modelVU;
  204. extern Model* modelAnalyzer;
  205. extern Model* modelAnalyzerXL;
  206. extern Model* modelRanalyzer;
  207. extern Model* modelDetune;
  208. extern Model* modelStack;
  209. extern Model* modelReftone;
  210. extern Model* modelMono;
  211. extern Model* modelArp;
  212. extern Model* modelAssign;
  213. extern Model* modelUnison;
  214. extern Model* modelPolyCon8;
  215. extern Model* modelPolyCon16;
  216. extern Model* modelPolyOff8;
  217. extern Model* modelPolyOff16;
  218. extern Model* modelPolyMult;
  219. extern Model* modelBool;
  220. extern Model* modelCmp;
  221. extern Model* modelCVD;
  222. extern Model* modelFlipFlop;
  223. extern Model* modelInv;
  224. extern Model* modelManual;
  225. extern Model* modelFourMan;
  226. extern Model* modelMult;
  227. extern Model* modelOffset;
  228. extern Model* modelSlew;
  229. extern Model* modelSums;
  230. extern Model* modelSwitch;
  231. extern Model* modelLgsw;
  232. extern Model* modelBlank3;
  233. extern Model* modelBlank6;
  234. #ifdef EXPERIMENTAL
  235. extern Model* modelLag;
  236. extern Model* modelPEQ14XR;
  237. extern Model* modelPEQ14XV;
  238. #endif
  239. #ifdef TEST
  240. extern Model* modelTest;
  241. extern Model* modelTest2;
  242. extern Model* modelTestExpanderBase;
  243. extern Model* modelTestExpanderExtension;
  244. extern Model* modelTestGl;
  245. extern Model* modelTestVCF;
  246. #endif
  247. #undef modelADSR
  248. #undef modelLFO
  249. #undef modelNoise
  250. #undef modelVCA
  251. #undef modelVCF
  252. #undef modelVCO
  253. // cf
  254. #include "cf/src/plugin.hpp"
  255. // ChowDSP
  256. #include "ChowDSP/src/plugin.hpp"
  257. #define init initChowDSP
  258. #include "ChowDSP/src/plugin.cpp"
  259. #undef init
  260. // DrumKit
  261. #include "DrumKit/src/DrumKit.hpp"
  262. void setupSamples();
  263. // ESeries
  264. #include "ESeries/src/plugin.hpp"
  265. // ExpertSleepers-Encoders
  266. #include "ExpertSleepers-Encoders/src/Encoders.hpp"
  267. // Extratone
  268. #include "Extratone/src/plugin.hpp"
  269. // FehlerFabrik
  270. #include "FehlerFabrik/src/plugin.hpp"
  271. // Fundamental
  272. #ifdef WITH_FUNDAMENTAL
  273. #include "Fundamental/src/plugin.hpp"
  274. #endif
  275. // GlueTheGiant
  276. #include "GlueTheGiant/src/plugin.hpp"
  277. bool audition_mixer = false;
  278. bool audition_depot = false;
  279. int gtg_default_theme = 1;
  280. int loadGtgPluginDefault(const char*, int) { return 1; }
  281. void saveGtgPluginDefault(const char*, int) {}
  282. // GoodSheperd
  283. #include "GoodSheperd/src/plugin.hpp"
  284. // GrandeModular
  285. #include "GrandeModular/src/plugin.hpp"
  286. // Hampton Harmonics
  287. #define modelArp modelHamptonHarmonicsArp
  288. #define modelProgress modelHamptonHarmonicsProgress
  289. #include "HamptonHarmonics/src/plugin.hpp"
  290. #undef modelProgress
  291. #undef modelArp
  292. // HetrickCV
  293. #define modelASR modelHetrickCVASR
  294. #define modelBlankPanel modelHetrickCVBlankPanel
  295. #define modelFlipFlop modelHetrickCVFlipFlop
  296. #define modelMidSide modelHetrickCVMidSide
  297. #define modelMinMax modelHetrickCVMinMax
  298. extern Model* modelTwoToFour;
  299. extern Model* modelAnalogToDigital;
  300. extern Model* modelASR;
  301. extern Model* modelBinaryGate;
  302. extern Model* modelBinaryNoise;
  303. extern Model* modelBitshift;
  304. extern Model* modelBlankPanel;
  305. extern Model* modelBoolean3;
  306. extern Model* modelChaos1Op;
  307. extern Model* modelChaos2Op;
  308. extern Model* modelChaos3Op;
  309. extern Model* modelChaoticAttractors;
  310. extern Model* modelClockedNoise;
  311. extern Model* modelComparator;
  312. extern Model* modelContrast;
  313. extern Model* modelCrackle;
  314. extern Model* modelDataCompander;
  315. extern Model* modelDelta;
  316. extern Model* modelDigitalToAnalog;
  317. extern Model* modelDust;
  318. extern Model* modelExponent;
  319. extern Model* modelFBSineChaos;
  320. extern Model* modelFlipFlop;
  321. extern Model* modelFlipPan;
  322. extern Model* modelGateJunction;
  323. extern Model* modelGingerbread;
  324. extern Model* modelLogicCombine;
  325. extern Model* modelMidSide;
  326. extern Model* modelMinMax;
  327. extern Model* modelRandomGates;
  328. extern Model* modelRotator;
  329. extern Model* modelRungler;
  330. extern Model* modelScanner;
  331. extern Model* modelWaveshape;
  332. extern Model* modelXYToPolar;
  333. #undef modelASR
  334. #undef modelBlankPanel
  335. #undef modelFlipFlop
  336. #undef modelMidSide
  337. #undef modelMinMax
  338. // ImpromptuModular
  339. /* NOTE too much noise in original include, do this a different way
  340. // #include "ImpromptuModular/src/ImpromptuModular.hpp"
  341. */
  342. extern Model* modelAdaptiveQuantizer;
  343. extern Model* modelBigButtonSeq;
  344. extern Model* modelBigButtonSeq2;
  345. extern Model* modelChordKey;
  346. extern Model* modelChordKeyExpander;
  347. extern Model* modelClocked;
  348. extern Model* modelClockedExpander;
  349. extern Model* modelClkd;
  350. extern Model* modelCvPad;
  351. extern Model* modelFoundry;
  352. extern Model* modelFoundryExpander;
  353. extern Model* modelFourView;
  354. extern Model* modelGateSeq64;
  355. extern Model* modelGateSeq64Expander;
  356. extern Model* modelHotkey;
  357. extern Model* modelPart;
  358. extern Model* modelPhraseSeq16;
  359. extern Model* modelPhraseSeq32;
  360. extern Model* modelPhraseSeqExpander;
  361. extern Model* modelProbKey;
  362. // extern Model* modelProbKeyExpander;
  363. extern Model* modelSemiModularSynth;
  364. extern Model* modelTact;
  365. extern Model* modelTact1;
  366. extern Model* modelTactG;
  367. extern Model* modelTwelveKey;
  368. extern Model* modelWriteSeq32;
  369. extern Model* modelWriteSeq64;
  370. extern Model* modelBlankPanel;
  371. // ihtsyn
  372. #include "ihtsyn/src/plugin.hpp"
  373. // JW-Modules
  374. #define modelQuantizer modelJWQuantizer
  375. #include "JW-Modules/src/JWModules.hpp"
  376. #undef modelQuantizer
  377. // LifeFormModular
  378. /* NOTE too much noise in original include, do this a different way
  379. // #include "LifeFormModular/src/plugin.hpp"
  380. */
  381. extern Model* modelTimeDiktat;
  382. extern Model* modelSequenceModeler;
  383. extern Model* modelPitchDiktat;
  384. extern Model* modelPitchIntegrator;
  385. extern Model* modelBurstIntegrator;
  386. extern Model* modelQuadModulator;
  387. extern Model* modelImpulseControl;
  388. extern Model* modelQuadSteppedOffset;
  389. extern Model* modelPercussiveVibration;
  390. extern Model* modelQuadUtility;
  391. extern Model* modelAdditiveVibration;
  392. extern Model* modelComplexOsc;
  393. extern Model* modelDriftgen;
  394. // LittleUtils
  395. #include "LittleUtils/src/plugin.hpp"
  396. // LomasModules
  397. #include "LomasModules/src/plugin.hpp"
  398. #undef DR_WAV_IMPLEMENTATION
  399. // LyraeModules
  400. /* NOTE too much noise in original include, do this a different way
  401. // #include "LyraeModules/src/plugin.hpp"
  402. */
  403. #define modelDelta modelLyraeDelta
  404. extern Model* modelSulafat;
  405. extern Model* modelGamma;
  406. extern Model* modelDelta;
  407. extern Model* modelVega;
  408. extern Model* modelBD383238;
  409. extern Model* modelZeta;
  410. #undef modelDelta
  411. // MindMeldModular
  412. /* NOTE too much noise in original include, do this a different way
  413. // #include "MindMeldModular/src/MindMeldModular.hpp"
  414. */
  415. extern Model* modelMixMasterJr;
  416. extern Model* modelAuxExpanderJr;
  417. extern Model* modelMixMaster;
  418. extern Model* modelAuxExpander;
  419. extern Model* modelMeld;
  420. extern Model* modelUnmeld;
  421. extern Model* modelMSMelder;
  422. extern Model* modelEqMaster;
  423. extern Model* modelEqExpander;
  424. extern Model* modelBassMaster;
  425. extern Model* modelBassMasterJr;
  426. extern Model* modelShapeMaster;
  427. // ML_modules
  428. /* NOTE too much noise in original include, do this a different way
  429. // #include "ML_modules/src/ML_modules.hpp"
  430. */
  431. #define modelQuantizer modelMLQuantizer
  432. #define modelSH8 modelMLSH8
  433. extern Model* modelQuantizer;
  434. extern Model* modelQuantum;
  435. extern Model* modelTrigBuf;
  436. extern Model* modelSeqSwitch;
  437. extern Model* modelSeqSwitch2;
  438. extern Model* modelShiftRegister;
  439. extern Model* modelShiftRegister2;
  440. extern Model* modelFreeVerb;
  441. extern Model* modelSum8;
  442. extern Model* modelSum8mk2;
  443. extern Model* modelSum8mk3;
  444. extern Model* modelSH8;
  445. extern Model* modelConstants;
  446. extern Model* modelCounter;
  447. extern Model* modelTrigDelay;
  448. extern Model* modelBPMdetect;
  449. extern Model* modelVoltMeter;
  450. extern Model* modelOctaFlop;
  451. extern Model* modelOctaTrig;
  452. extern Model* modelOctaSwitch;
  453. extern Model* modelTrigSwitch;
  454. extern Model* modelTrigSwitch2;
  455. extern Model* modelTrigSwitch3;
  456. extern Model* modelTrigSwitch3_2;
  457. extern Model* modelOctaPlus;
  458. extern Model* modelOctaTimes;
  459. extern Model* modelCloner;
  460. extern Model* modelPolySplitter;
  461. extern Model* modelArpeggiator;
  462. #undef modelQuantizer
  463. #undef modelSH8
  464. // MockbaModular
  465. #define modelBlank modelMockbaModularBlank
  466. #define modelComparator modelMockbaModularComparator
  467. #include "MockbaModular/src/plugin.hpp"
  468. #undef modelBlank
  469. #undef modelComparator
  470. #include "MockbaModular/src/MockbaModular.hpp"
  471. #undef min
  472. #define saveBack ignoreMockbaModular1
  473. #define loadBack ignoreMockbaModular2
  474. #include "MockbaModular/src/MockbaModular.cpp"
  475. #undef saveBack
  476. #undef loadBack
  477. std::string loadBack(int) { return "res/Empty_gray.svg"; }
  478. // Mog
  479. #include "Mog/src/plugin.hpp"
  480. // mscHack
  481. /* NOTE too much noise in original include, do this a different way
  482. // #include "mscHack/src/mscHack.hpp"
  483. */
  484. extern Model* modelCompressor;
  485. extern Model* modelSynthDrums;
  486. extern Model* modelSEQ_6x32x16;
  487. extern Model* modelMasterClockx8;
  488. extern Model* modelMasterClockx4;
  489. extern Model* modelSEQ_Envelope_8;
  490. extern Model* modelSeq_Triad2;
  491. extern Model* modelARP700;
  492. extern Model* modelMix_24_4_4;
  493. extern Model* modelMix_16_4_4;
  494. extern Model* modelMix_9_3_4;
  495. extern Model* modelMix_4_0_4;
  496. extern Model* modelASAF8;
  497. extern Model* modelPingPong;
  498. extern Model* modelStepDelay;
  499. extern Model* modelOsc_3Ch;
  500. extern Model* modelDronez;
  501. extern Model* modelMorze;
  502. extern Model* modelWindz;
  503. extern Model* modelLorenz;
  504. extern Model* modelAlienz;
  505. extern Model* modelOSC_WaveMorph_3;
  506. extern Model* modelMaude_221;
  507. // Orbits
  508. #include "Orbits/src/plugin.hpp"
  509. // Prism
  510. # include "Prism/src/plugin.hpp"
  511. // rackwindows
  512. #include "rackwindows/src/plugin.hpp"
  513. // repelzen
  514. #define modelBlank modelrepelzenBlank
  515. #define modelMixer modelrepelzenMixer
  516. #define modelWerner modelrepelzenWerner
  517. #define tanh_pade repelzentanh_pade
  518. #include "repelzen/src/repelzen.hpp"
  519. #undef modelBlank
  520. #undef modelMixer
  521. #undef modelWerner
  522. #undef tanh_pade
  523. // sonusmodular
  524. #include "sonusmodular/src/sonusmodular.hpp"
  525. // stocaudio
  526. #include "stocaudio/src/plugin.hpp"
  527. // substation
  528. /* NOTE too much noise in original include, do this a different way
  529. // "substation-opensource/src/_plugin.hpp"
  530. */
  531. namespace slime {
  532. namespace plugin {
  533. namespace substation {
  534. extern Model* modelClock;
  535. extern Model* modelPolySequencer;
  536. extern Model* modelSubOscillator;
  537. extern Model* modelMixer;
  538. extern Model* modelFilter;
  539. extern Model* modelEnvelopes;
  540. extern Model* modelQuantizer;
  541. extern Model* modelVCA;
  542. extern Model* modelBlank4;
  543. extern Model* modelBlank7;
  544. extern Model* modelFilterPlus;
  545. }}}
  546. // ValleyAudio
  547. #include "ValleyAudio/src/Valley.hpp"
  548. // ZetaCarinaeModules
  549. #include "ZetaCarinaeModules/src/plugin.hpp"
  550. // ZZC
  551. #define DISPLAYS_H
  552. #define ZZC_SHARED_H
  553. #define ZZC_WIDGETS_H
  554. #define modelClock modelZZCClock
  555. #include "ZZC/src/ZZC.hpp"
  556. #undef modelClock
  557. #endif // NOPLUGINS
  558. // known terminal modules
  559. std::vector<Model*> hostTerminalModels;
  560. // stuff that reads config files, we dont want that
  561. int loadConsoleType() { return 0; }
  562. int loadDirectOutMode() { return 0; }
  563. void saveConsoleType(int) {}
  564. void saveDarkAsDefault(bool) {}
  565. void saveDirectOutMode(bool) {}
  566. void saveHighQualityAsDefault(bool) {}
  567. // plugin instances
  568. Plugin* pluginInstance__Cardinal;
  569. #ifndef NOPLUGINS
  570. Plugin* pluginInstance__21kHz;
  571. Plugin* pluginInstance__8Mode;
  572. Plugin* pluginInstance__AmalgamatedHarmonics;
  573. Plugin* pluginInstance__AnimatedCircuits;
  574. Plugin* pluginInstance__Aria;
  575. Plugin* pluginInstance__AudibleInstruments;
  576. extern Plugin* pluginInstance__Autinn;
  577. Plugin* pluginInstance__Axioma;
  578. Plugin* pluginInstance__Bacon;
  579. Plugin* pluginInstance__Befaco;
  580. Plugin* pluginInstance__Bidoo;
  581. Plugin* pluginInstance__BogaudioModules;
  582. Plugin* pluginInstance__cf;
  583. Plugin* pluginInstance__ChowDSP;
  584. extern Plugin* pluginInstance__DrumKit;
  585. Plugin* pluginInstance__ESeries;
  586. Plugin* pluginInstance__ExpertSleepersEncoders;
  587. Plugin* pluginInstance__Extratone;
  588. Plugin* pluginInstance__FehlerFabrik;
  589. #ifdef WITH_FUNDAMENTAL
  590. Plugin* pluginInstance__Fundamental;
  591. #endif
  592. Plugin* pluginInstance__GlueTheGiant;
  593. Plugin* pluginInstance__GoodSheperd;
  594. Plugin* pluginInstance__GrandeModular;
  595. Plugin* pluginInstance__HamptonHarmonics;
  596. Plugin* pluginInstance__HetrickCV;
  597. extern Plugin* pluginInstance__ImpromptuModular;
  598. Plugin* pluginInstance__ihtsyn;
  599. Plugin* pluginInstance__JW;
  600. Plugin* pluginInstance__LifeFormModular;
  601. Plugin* pluginInstance__LittleUtils;
  602. Plugin* pluginInstance__Lomas;
  603. Plugin* pluginInstance__Lyrae;
  604. extern Plugin* pluginInstance__MindMeld;
  605. Plugin* pluginInstance__ML;
  606. Plugin* pluginInstance__MockbaModular;
  607. Plugin* pluginInstance__Mog;
  608. extern Plugin* pluginInstance__mscHack;
  609. Plugin* pluginInstance__Orbits;
  610. Plugin* pluginInstance__Prism;
  611. Plugin* pluginInstance__rackwindows;
  612. Plugin* pluginInstance__repelzen;
  613. Plugin* pluginInstance__sonusmodular;
  614. Plugin* pluginInstance__stocaudio;
  615. Plugin* pluginInstance__substation;
  616. Plugin* pluginInstance__ValleyAudio;
  617. Plugin* pluginInstance__ZetaCarinaeModules;
  618. Plugin* pluginInstance__ZZC;
  619. #endif // NOPLUGINS
  620. namespace rack {
  621. namespace asset {
  622. std::string pluginManifest(const std::string& dirname);
  623. std::string pluginPath(const std::string& dirname);
  624. }
  625. namespace plugin {
  626. struct StaticPluginLoader {
  627. Plugin* const plugin;
  628. FILE* file;
  629. json_t* rootJ;
  630. StaticPluginLoader(Plugin* const p, const char* const name)
  631. : plugin(p),
  632. file(nullptr),
  633. rootJ(nullptr)
  634. {
  635. #ifdef DEBUG
  636. DEBUG("Loading plugin module %s", name);
  637. #endif
  638. p->path = asset::pluginPath(name);
  639. const std::string manifestFilename = asset::pluginManifest(name);
  640. if ((file = std::fopen(manifestFilename.c_str(), "r")) == nullptr)
  641. {
  642. d_stderr2("Manifest file %s does not exist", manifestFilename.c_str());
  643. return;
  644. }
  645. json_error_t error;
  646. if ((rootJ = json_loadf(file, 0, &error)) == nullptr)
  647. {
  648. d_stderr2("JSON parsing error at %s %d:%d %s", manifestFilename.c_str(), error.line, error.column, error.text);
  649. return;
  650. }
  651. // force ABI, we use static plugins so this doesnt matter as long as it builds
  652. json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
  653. json_object_set(rootJ, "version", version);
  654. json_decref(version);
  655. }
  656. ~StaticPluginLoader()
  657. {
  658. if (rootJ != nullptr)
  659. {
  660. plugin->fromJson(rootJ);
  661. json_decref(rootJ);
  662. plugins.push_back(plugin);
  663. }
  664. if (file != nullptr)
  665. std::fclose(file);
  666. }
  667. bool ok() const noexcept
  668. {
  669. return rootJ != nullptr;
  670. }
  671. void removeModule(const char* const slugToRemove) const noexcept
  672. {
  673. json_t* const modules = json_object_get(rootJ, "modules");
  674. DISTRHO_SAFE_ASSERT_RETURN(modules != nullptr,);
  675. size_t i;
  676. json_t* v;
  677. json_array_foreach(modules, i, v)
  678. {
  679. if (json_t* const slug = json_object_get(v, "slug"))
  680. {
  681. if (const char* const value = json_string_value(slug))
  682. {
  683. if (std::strcmp(value, slugToRemove) == 0)
  684. {
  685. json_array_remove(modules, i);
  686. break;
  687. }
  688. }
  689. }
  690. }
  691. }
  692. };
  693. static void initStatic__Cardinal()
  694. {
  695. Plugin* const p = new Plugin;
  696. pluginInstance__Cardinal = p;
  697. const StaticPluginLoader spl(p, "Cardinal");
  698. if (spl.ok())
  699. {
  700. p->addModel(modelCardinalBlank);
  701. p->addModel(modelExpanderInputMIDI);
  702. p->addModel(modelExpanderOutputMIDI);
  703. p->addModel(modelGlBars);
  704. p->addModel(modelHostAudio2);
  705. p->addModel(modelHostAudio8);
  706. p->addModel(modelHostCV);
  707. p->addModel(modelHostMIDI);
  708. p->addModel(modelHostMIDICC);
  709. p->addModel(modelHostMIDIGate);
  710. p->addModel(modelHostMIDIMap);
  711. p->addModel(modelHostParameters);
  712. p->addModel(modelHostTime);
  713. p->addModel(modelTextEditor);
  714. #ifndef STATIC_BUILD
  715. p->addModel(modelAudioFile);
  716. p->addModel(modelCarla);
  717. p->addModel(modelIldaeil);
  718. #else
  719. spl.removeModule("AudioFile");
  720. spl.removeModule("Carla");
  721. spl.removeModule("Ildaeil");
  722. #endif
  723. #if defined(HAVE_X11) && !defined(HEADLESS) && !defined(STATIC_BUILD)
  724. p->addModel(modelMPV);
  725. #else
  726. spl.removeModule("MPV");
  727. #endif
  728. hostTerminalModels = {
  729. modelHostAudio2,
  730. modelHostAudio8,
  731. modelHostCV,
  732. modelHostMIDI,
  733. modelHostMIDICC,
  734. modelHostMIDIGate,
  735. modelHostMIDIMap,
  736. modelHostParameters,
  737. modelHostTime,
  738. };
  739. }
  740. }
  741. #ifndef NOPLUGINS
  742. static void initStatic__21kHz()
  743. {
  744. Plugin* const p = new Plugin;
  745. pluginInstance__21kHz = p;
  746. const StaticPluginLoader spl(p, "21kHz");
  747. if (spl.ok())
  748. {
  749. p->addModel(modelPalmLoop);
  750. p->addModel(modelD_Inf);
  751. p->addModel(modelTachyonEntangler);
  752. }
  753. }
  754. static void initStatic__8Mode()
  755. {
  756. Plugin* const p = new Plugin;
  757. pluginInstance__8Mode = p;
  758. const StaticPluginLoader spl(p, "8Mode");
  759. if (spl.ok())
  760. {
  761. p->addModel(modelsoftSN);
  762. }
  763. }
  764. static void initStatic__AmalgamatedHarmonics()
  765. {
  766. Plugin* const p = new Plugin;
  767. pluginInstance__AmalgamatedHarmonics = p;
  768. const StaticPluginLoader spl(p, "AmalgamatedHarmonics");
  769. if (spl.ok())
  770. {
  771. p->addModel(modelArp31);
  772. p->addModel(modelArp32);
  773. p->addModel(modelBombe);
  774. p->addModel(modelChord);
  775. p->addModel(modelCircle);
  776. p->addModel(modelGalaxy);
  777. p->addModel(modelGenerative);
  778. p->addModel(modelImp);
  779. p->addModel(modelImperfect2);
  780. p->addModel(modelProgress2);
  781. p->addModel(modelRuckus);
  782. p->addModel(modelScaleQuantizer2);
  783. p->addModel(modelSLN);
  784. p->addModel(modelMuxDeMux);
  785. p->addModel(modelPolyProbe);
  786. p->addModel(modelPolyScope);
  787. p->addModel(modelPolyUtils);
  788. p->addModel(modelPolyVolt);
  789. p->addModel(modelScaleQuantizer);
  790. p->addModel(modelArpeggiator2);
  791. p->addModel(modelProgress);
  792. }
  793. }
  794. static void initStatic__AnimatedCircuits()
  795. {
  796. Plugin* const p = new Plugin;
  797. pluginInstance__AnimatedCircuits = p;
  798. const StaticPluginLoader spl(p, "AnimatedCircuits");
  799. if (spl.ok())
  800. {
  801. p->addModel(model_AC_Folding);
  802. p->addModel(model_AC_LFold);
  803. }
  804. }
  805. static void initStatic__Aria()
  806. {
  807. Plugin* const p = new Plugin;
  808. pluginInstance__Aria = p;
  809. const StaticPluginLoader spl(p, "AriaModules");
  810. if (spl.ok())
  811. {
  812. #define modelBlank modelAriaBlank
  813. p->addModel(modelSplort);
  814. p->addModel(modelSmerge);
  815. p->addModel(modelSpleet);
  816. p->addModel(modelSwerge);
  817. p->addModel(modelSplirge);
  818. p->addModel(modelQqqq);
  819. p->addModel(modelQuack);
  820. p->addModel(modelQ);
  821. p->addModel(modelQuale);
  822. p->addModel(modelDarius);
  823. p->addModel(modelSolomon4);
  824. p->addModel(modelSolomon8);
  825. p->addModel(modelSolomon16);
  826. p->addModel(modelPsychopump);
  827. p->addModel(modelPokies4);
  828. p->addModel(modelGrabby);
  829. p->addModel(modelRotatoes4);
  830. p->addModel(modelUndular);
  831. p->addModel(modelBlank);
  832. #undef modelBlank
  833. // NOTE disabled in Cardinal due to online requirement
  834. spl.removeModule("Arcane");
  835. spl.removeModule("Atout");
  836. spl.removeModule("Aleister");
  837. }
  838. }
  839. static void initStatic__AudibleInstruments()
  840. {
  841. Plugin* const p = new Plugin;
  842. pluginInstance__AudibleInstruments = p;
  843. const StaticPluginLoader spl(p, "AudibleInstruments");
  844. if (spl.ok())
  845. {
  846. p->addModel(modelBraids);
  847. p->addModel(modelPlaits);
  848. p->addModel(modelElements);
  849. p->addModel(modelTides);
  850. p->addModel(modelTides2);
  851. p->addModel(modelClouds);
  852. p->addModel(modelWarps);
  853. p->addModel(modelRings);
  854. p->addModel(modelLinks);
  855. p->addModel(modelKinks);
  856. p->addModel(modelShades);
  857. p->addModel(modelBranches);
  858. p->addModel(modelBlinds);
  859. p->addModel(modelVeils);
  860. p->addModel(modelFrames);
  861. p->addModel(modelMarbles);
  862. p->addModel(modelStages);
  863. p->addModel(modelRipples);
  864. p->addModel(modelShelves);
  865. p->addModel(modelStreams);
  866. }
  867. }
  868. static void initStatic__Autinn()
  869. {
  870. Plugin* const p = new Plugin;
  871. pluginInstance__Autinn = p;
  872. const StaticPluginLoader spl(p, "Autinn");
  873. if (spl.ok())
  874. {
  875. #define modelChord modelAutinnChord
  876. #define modelVibrato modelAutinnVibrato
  877. p->addModel(modelAmp);
  878. p->addModel(modelDeadband);
  879. p->addModel(modelBass);
  880. p->addModel(modelCVConverter);
  881. p->addModel(modelDC);
  882. p->addModel(modelDigi);
  883. p->addModel(modelFlopper);
  884. p->addModel(modelFlora);
  885. p->addModel(modelJette);
  886. p->addModel(modelBoomerang);
  887. p->addModel(modelOxcart);
  888. p->addModel(modelSaw);
  889. p->addModel(modelSjip);
  890. p->addModel(modelSquare);
  891. p->addModel(modelVibrato);
  892. p->addModel(modelVectorDriver);
  893. p->addModel(modelZod);
  894. p->addModel(modelTriBand);
  895. p->addModel(modelMixer6);
  896. p->addModel(modelNon);
  897. p->addModel(modelFil);
  898. p->addModel(modelNap);
  899. p->addModel(modelMelody);
  900. p->addModel(modelChord);
  901. #undef modelChord
  902. #undef modelVibrato
  903. }
  904. }
  905. static void initStatic__Axioma()
  906. {
  907. Plugin* const p = new Plugin;
  908. pluginInstance__Axioma = p;
  909. const StaticPluginLoader spl(p, "Axioma");
  910. if (spl.ok())
  911. {
  912. p->addModel(modelTheBifurcator);
  913. p->addModel(modelTesseract);
  914. p->addModel(modelIkeda);
  915. p->addModel(modelRhodonea);
  916. }
  917. }
  918. static void initStatic__Bacon()
  919. {
  920. Plugin* const p = new Plugin;
  921. pluginInstance__Bacon = p;
  922. const StaticPluginLoader spl(p, "BaconPlugs");
  923. if (spl.ok())
  924. {
  925. p->addModel(modelHarMoNee);
  926. p->addModel(modelGlissinator);
  927. p->addModel(modelPolyGnome);
  928. p->addModel(modelQuantEyes);
  929. p->addModel(modelSampleDelay);
  930. #ifdef BUILD_SORTACHORUS
  931. p->addModel(modelSortaChorus);
  932. #endif
  933. p->addModel(modelChipNoise);
  934. p->addModel(modelChipWaves);
  935. p->addModel(modelChipYourWave);
  936. p->addModel(modelOpen303);
  937. #ifdef BUILD_GENERICLSFR
  938. p->addModel(modelGenericLFSR);
  939. #endif
  940. p->addModel(modelKarplusStrongPoly);
  941. p->addModel(modelALingADing);
  942. p->addModel(modelBitulator);
  943. #ifdef BUILD_PHASER
  944. p->addModel(modelPhaser);
  945. #endif
  946. p->addModel(modelPolyGenerator);
  947. }
  948. }
  949. static void initStatic__Befaco()
  950. {
  951. Plugin* const p = new Plugin;
  952. pluginInstance__Befaco = p;
  953. const StaticPluginLoader spl(p, "Befaco");
  954. if (spl.ok())
  955. {
  956. #define modelADSR modelBefacoADSR
  957. #define modelMixer modelBefacoMixer
  958. p->addModel(modelEvenVCO);
  959. p->addModel(modelRampage);
  960. p->addModel(modelABC);
  961. p->addModel(modelSpringReverb);
  962. p->addModel(modelMixer);
  963. p->addModel(modelSlewLimiter);
  964. p->addModel(modelDualAtenuverter);
  965. p->addModel(modelPercall);
  966. p->addModel(modelHexmixVCA);
  967. p->addModel(modelChoppingKinky);
  968. p->addModel(modelKickall);
  969. p->addModel(modelSamplingModulator);
  970. p->addModel(modelMorphader);
  971. p->addModel(modelADSR);
  972. p->addModel(modelSTMix);
  973. p->addModel(modelMuxlicer);
  974. p->addModel(modelMex);
  975. #undef modelADSR
  976. #undef modelMixer
  977. }
  978. }
  979. static void initStatic__Bidoo()
  980. {
  981. Plugin* const p = new Plugin;
  982. pluginInstance__Bidoo = p;
  983. const StaticPluginLoader spl(p, "Bidoo");
  984. if (spl.ok())
  985. {
  986. p->addModel(modelTOCANTE);
  987. p->addModel(modelLATE);
  988. p->addModel(modelDIKTAT);
  989. p->addModel(modelDTROY);
  990. p->addModel(modelBORDL);
  991. p->addModel(modelZOUMAI);
  992. p->addModel(modelMU);
  993. p->addModel(modelCHUTE);
  994. p->addModel(modelLOURDE);
  995. p->addModel(modelDILEMO);
  996. p->addModel(modelLAMBDA);
  997. p->addModel(modelBANCAU);
  998. p->addModel(modelACNE);
  999. p->addModel(modelMS);
  1000. p->addModel(modelDUKE);
  1001. p->addModel(modelMOIRE);
  1002. p->addModel(modelPILOT);
  1003. p->addModel(modelHUITRE);
  1004. p->addModel(modelOUAIVE);
  1005. p->addModel(modelEDSAROS);
  1006. p->addModel(modelPOUPRE);
  1007. p->addModel(modelMAGMA);
  1008. p->addModel(modelOAI);
  1009. p->addModel(modelCANARD);
  1010. p->addModel(modelEMILE);
  1011. p->addModel(modelFORK);
  1012. p->addModel(modelTIARE);
  1013. p->addModel(modelLIMONADE);
  1014. p->addModel(modelLIMBO);
  1015. p->addModel(modelPERCO);
  1016. p->addModel(modelBAFIS);
  1017. p->addModel(modelBAR);
  1018. p->addModel(modelMINIBAR);
  1019. p->addModel(modelZINC);
  1020. p->addModel(modelFREIN);
  1021. p->addModel(modelHCTIP);
  1022. p->addModel(modelSPORE);
  1023. p->addModel(modelDFUZE);
  1024. p->addModel(modelREI);
  1025. p->addModel(modelRABBIT);
  1026. p->addModel(modelBISTROT);
  1027. p->addModel(modelSIGMA);
  1028. p->addModel(modelFLAME);
  1029. p->addModel(modelVOID);
  1030. // NOTE disabled in Cardinal due to curl usage
  1031. // p->addModel(modelANTN);
  1032. spl.removeModule("antN");
  1033. }
  1034. }
  1035. static void initStatic__BogaudioModules()
  1036. {
  1037. Plugin* const p = new Plugin;
  1038. pluginInstance__BogaudioModules = p;
  1039. const StaticPluginLoader spl(p, "BogaudioModules");
  1040. if (spl.ok())
  1041. {
  1042. // Make sure to use dark theme as default
  1043. Skins& skins(Skins::skins());
  1044. skins._default = "dark";
  1045. #define modelADSR modelBogaudioADSR
  1046. #define modelLFO modelBogaudioLFO
  1047. #define modelNoise modelBogaudioNoise
  1048. #define modelVCA modelBogaudioVCA
  1049. #define modelVCF modelBogaudioVCF
  1050. #define modelVCO modelBogaudioVCO
  1051. p->addModel(modelVCO);
  1052. p->addModel(modelLVCO);
  1053. p->addModel(modelSine);
  1054. p->addModel(modelPulse);
  1055. p->addModel(modelXCO);
  1056. p->addModel(modelAdditator);
  1057. p->addModel(modelFMOp);
  1058. p->addModel(modelChirp);
  1059. p->addModel(modelLFO);
  1060. p->addModel(modelLLFO);
  1061. p->addModel(modelFourFO);
  1062. p->addModel(modelEightFO);
  1063. p->addModel(modelVCF);
  1064. p->addModel(modelLVCF);
  1065. p->addModel(modelFFB);
  1066. p->addModel(modelEQ);
  1067. p->addModel(modelEQS);
  1068. p->addModel(modelLPG);
  1069. p->addModel(modelLLPG);
  1070. p->addModel(modelMegaGate);
  1071. p->addModel(modelPEQ);
  1072. p->addModel(modelPEQ6);
  1073. p->addModel(modelPEQ6XF);
  1074. p->addModel(modelPEQ14);
  1075. p->addModel(modelPEQ14XF);
  1076. p->addModel(modelDADSRH);
  1077. p->addModel(modelDADSRHPlus);
  1078. p->addModel(modelShaper);
  1079. p->addModel(modelShaperPlus);
  1080. p->addModel(modelAD);
  1081. p->addModel(modelASR);
  1082. p->addModel(modelADSR);
  1083. p->addModel(modelVish);
  1084. p->addModel(modelFollow);
  1085. p->addModel(modelDGate);
  1086. p->addModel(modelRGate);
  1087. p->addModel(modelEdge);
  1088. p->addModel(modelNoise);
  1089. p->addModel(modelSampleHold);
  1090. p->addModel(modelWalk2);
  1091. p->addModel(modelWalk);
  1092. p->addModel(modelMix8);
  1093. p->addModel(modelMix8x);
  1094. p->addModel(modelMix4);
  1095. p->addModel(modelMix4x);
  1096. p->addModel(modelMix2);
  1097. p->addModel(modelMix1);
  1098. p->addModel(modelVCM);
  1099. p->addModel(modelMute8);
  1100. p->addModel(modelPan);
  1101. p->addModel(modelXFade);
  1102. p->addModel(modelVCA);
  1103. p->addModel(modelVCAmp);
  1104. p->addModel(modelVelo);
  1105. p->addModel(modelUMix);
  1106. p->addModel(modelMumix);
  1107. p->addModel(modelMatrix81);
  1108. p->addModel(modelMatrix18);
  1109. p->addModel(modelMatrix44);
  1110. p->addModel(modelMatrix44Cvm);
  1111. p->addModel(modelMatrix88);
  1112. p->addModel(modelMatrix88Cv);
  1113. p->addModel(modelMatrix88M);
  1114. p->addModel(modelSwitch81);
  1115. p->addModel(modelSwitch18);
  1116. p->addModel(modelSwitch44);
  1117. p->addModel(modelSwitch88);
  1118. p->addModel(modelSwitch1616);
  1119. p->addModel(modelAMRM);
  1120. p->addModel(modelPressor);
  1121. p->addModel(modelClpr);
  1122. p->addModel(modelLmtr);
  1123. p->addModel(modelNsgt);
  1124. p->addModel(modelCmpDist);
  1125. p->addModel(modelOneEight);
  1126. p->addModel(modelEightOne);
  1127. p->addModel(modelAddrSeq);
  1128. p->addModel(modelAddrSeqX);
  1129. p->addModel(modelPgmr);
  1130. p->addModel(modelPgmrX);
  1131. p->addModel(modelVU);
  1132. p->addModel(modelAnalyzer);
  1133. p->addModel(modelAnalyzerXL);
  1134. p->addModel(modelRanalyzer);
  1135. p->addModel(modelDetune);
  1136. p->addModel(modelStack);
  1137. p->addModel(modelReftone);
  1138. p->addModel(modelMono);
  1139. p->addModel(modelArp);
  1140. p->addModel(modelAssign);
  1141. p->addModel(modelUnison);
  1142. p->addModel(modelPolyCon8);
  1143. p->addModel(modelPolyCon16);
  1144. p->addModel(modelPolyOff8);
  1145. p->addModel(modelPolyOff16);
  1146. p->addModel(modelPolyMult);
  1147. p->addModel(modelBool);
  1148. p->addModel(modelCmp);
  1149. p->addModel(modelCVD);
  1150. p->addModel(modelFlipFlop);
  1151. p->addModel(modelInv);
  1152. p->addModel(modelManual);
  1153. p->addModel(modelFourMan);
  1154. p->addModel(modelMult);
  1155. p->addModel(modelOffset);
  1156. p->addModel(modelSlew);
  1157. p->addModel(modelSums);
  1158. p->addModel(modelSwitch);
  1159. p->addModel(modelLgsw);
  1160. p->addModel(modelBlank3);
  1161. p->addModel(modelBlank6);
  1162. #ifdef EXPERIMENTAL
  1163. p->addModel(modelLag);
  1164. p->addModel(modelPEQ14XR);
  1165. p->addModel(modelPEQ14XV);
  1166. #endif
  1167. #ifdef TEST
  1168. p->addModel(modelTest);
  1169. p->addModel(modelTest2);
  1170. p->addModel(modelTestExpanderBase);
  1171. p->addModel(modelTestExpanderExtension);
  1172. p->addModel(modelTestGl);
  1173. p->addModel(modelTestVCF);
  1174. #endif
  1175. #undef modelADSR
  1176. #undef modelLFO
  1177. #undef modelNoise
  1178. #undef modelVCA
  1179. #undef modelVCF
  1180. #undef modelVCO
  1181. }
  1182. }
  1183. static void initStatic__cf()
  1184. {
  1185. Plugin* const p = new Plugin;
  1186. pluginInstance__cf = p;
  1187. const StaticPluginLoader spl(p, "cf");
  1188. if (spl.ok())
  1189. {
  1190. p->addModel(modelMETRO);
  1191. p->addModel(modelEACH);
  1192. p->addModel(modeltrSEQ);
  1193. p->addModel(modelLEDSEQ);
  1194. p->addModel(modelL3DS3Q);
  1195. p->addModel(modelSLIDERSEQ);
  1196. p->addModel(modelPLAYER);
  1197. p->addModel(modelPLAY);
  1198. p->addModel(modelMONO);
  1199. p->addModel(modelSTEREO);
  1200. p->addModel(modelSUB);
  1201. p->addModel(modelMASTER);
  1202. p->addModel(modelVARIABLE);
  1203. p->addModel(modelALGEBRA);
  1204. p->addModel(modelFUNKTION);
  1205. p->addModel(modelCHOKE);
  1206. p->addModel(modelFOUR);
  1207. p->addModel(modelSTEPS);
  1208. p->addModel(modelPEAK);
  1209. p->addModel(modelCUTS);
  1210. p->addModel(modelBUFFER);
  1211. p->addModel(modelDISTO);
  1212. p->addModel(modelCUBE);
  1213. p->addModel(modelPATCH);
  1214. p->addModel(modelLABEL);
  1215. p->addModel(modelDAVE);
  1216. }
  1217. }
  1218. static void initStatic__ChowDSP()
  1219. {
  1220. Plugin* const p = new Plugin;
  1221. pluginInstance__ChowDSP = p;
  1222. const StaticPluginLoader spl(p, "ChowDSP");
  1223. if (spl.ok())
  1224. {
  1225. p->addModel(modelChowTape);
  1226. p->addModel(modelChowPhaserFeedback);
  1227. p->addModel(modelChowPhaserMod);
  1228. p->addModel(modelChowFDN);
  1229. p->addModel(modelChowRNN);
  1230. p->addModel(modelChowModal);
  1231. p->addModel(modelChowDer);
  1232. p->addModel(modelWarp);
  1233. p->addModel(modelWerner);
  1234. p->addModel(modelChowPulse);
  1235. p->addModel(modelChowTapeCompression);
  1236. p->addModel(modelChowTapeChew);
  1237. p->addModel(modelChowTapeDegrade);
  1238. p->addModel(modelChowTapeLoss);
  1239. p->addModel(modelChowChorus);
  1240. // Credit crashes on save, see https://github.com/DISTRHO/Cardinal/issues/98
  1241. // p->addModel(modelCredit);
  1242. spl.removeModule("Credit");
  1243. }
  1244. }
  1245. static void initStatic__DrumKit()
  1246. {
  1247. Plugin* const p = new Plugin;
  1248. pluginInstance__DrumKit = p;
  1249. const StaticPluginLoader spl(p, "DrumKit");
  1250. if (spl.ok())
  1251. {
  1252. setupSamples();
  1253. p->addModel(modelBD9);
  1254. p->addModel(modelSnare);
  1255. p->addModel(modelClosedHH);
  1256. p->addModel(modelOpenHH);
  1257. p->addModel(modelDMX);
  1258. p->addModel(modelCR78);
  1259. p->addModel(modelSBD);
  1260. p->addModel(modelGnome);
  1261. p->addModel(modelSequencer);
  1262. p->addModel(modelTomi);
  1263. p->addModel(modelBaronial);
  1264. p->addModel(modelMarionette);
  1265. }
  1266. }
  1267. static void initStatic__ESeries()
  1268. {
  1269. Plugin* const p = new Plugin;
  1270. pluginInstance__ESeries = p;
  1271. const StaticPluginLoader spl(p, "ESeries");
  1272. if (spl.ok())
  1273. {
  1274. p->addModel(modelE340);
  1275. }
  1276. }
  1277. static void initStatic__ExpertSleepersEncoders()
  1278. {
  1279. Plugin* const p = new Plugin;
  1280. pluginInstance__ExpertSleepersEncoders = p;
  1281. const StaticPluginLoader spl(p, "ExpertSleepers-Encoders");
  1282. if (spl.ok())
  1283. {
  1284. p->addModel(model8GT);
  1285. p->addModel(model8CV);
  1286. p->addModel(modelES40);
  1287. p->addModel(modelES5);
  1288. p->addModel(modelSMUX);
  1289. p->addModel(modelCalibrator);
  1290. }
  1291. }
  1292. static void initStatic__Extratone()
  1293. {
  1294. Plugin* const p = new Plugin;
  1295. pluginInstance__Extratone = p;
  1296. const StaticPluginLoader spl(p, "Extratone");
  1297. if (spl.ok())
  1298. {
  1299. p->addModel(modelModulo);
  1300. p->addModel(modelMesoglea);
  1301. p->addModel(modelMesoglea2);
  1302. p->addModel(modelOpabinia);
  1303. p->addModel(modelSplitterburst);
  1304. p->addModel(modelPuzzlebox);
  1305. p->addModel(modelDarwinism);
  1306. // p->addModel(modelHalluciMemory);
  1307. p->addModel(modelIchneumonid);
  1308. p->addModel(modelMeganeura);
  1309. p->addModel(modelPureneura);
  1310. p->addModel(modelMesohyl);
  1311. p->addModel(modelXtrtnBlank);
  1312. }
  1313. }
  1314. static void initStatic__FehlerFabrik()
  1315. {
  1316. Plugin* const p = new Plugin;
  1317. pluginInstance__FehlerFabrik = p;
  1318. const StaticPluginLoader spl(p, "FehlerFabrik");
  1319. if (spl.ok())
  1320. {
  1321. p->addModel(modelPSIOP);
  1322. p->addModel(modelPlanck);
  1323. p->addModel(modelLuigi);
  1324. p->addModel(modelAspect);
  1325. p->addModel(modelMonte);
  1326. p->addModel(modelArpanet);
  1327. p->addModel(modelSigma);
  1328. p->addModel(modelFax);
  1329. p->addModel(modelRasoir);
  1330. p->addModel(modelChi);
  1331. p->addModel(modelNova);
  1332. p->addModel(modelLilt);
  1333. p->addModel(modelBotzinger);
  1334. }
  1335. }
  1336. #ifdef WITH_FUNDAMENTAL
  1337. static void initStatic__Fundamental()
  1338. {
  1339. Plugin* const p = new Plugin;
  1340. pluginInstance__Fundamental = p;
  1341. const StaticPluginLoader spl(p, "Fundamental");
  1342. if (spl.ok())
  1343. {
  1344. p->addModel(modelVCO);
  1345. p->addModel(modelVCO2);
  1346. p->addModel(modelVCF);
  1347. p->addModel(modelVCA_1);
  1348. p->addModel(modelVCA);
  1349. p->addModel(modelLFO);
  1350. p->addModel(modelLFO2);
  1351. p->addModel(modelDelay);
  1352. p->addModel(modelADSR);
  1353. p->addModel(modelMixer);
  1354. p->addModel(modelVCMixer);
  1355. p->addModel(model_8vert);
  1356. p->addModel(modelUnity);
  1357. p->addModel(modelMutes);
  1358. p->addModel(modelPulses);
  1359. p->addModel(modelScope);
  1360. p->addModel(modelSEQ3);
  1361. p->addModel(modelSequentialSwitch1);
  1362. p->addModel(modelSequentialSwitch2);
  1363. p->addModel(modelOctave);
  1364. p->addModel(modelQuantizer);
  1365. p->addModel(modelSplit);
  1366. p->addModel(modelMerge);
  1367. p->addModel(modelSum);
  1368. p->addModel(modelViz);
  1369. p->addModel(modelMidSide);
  1370. p->addModel(modelNoise);
  1371. p->addModel(modelRandom);
  1372. // show all plugins, helping those familiar with v1 Rack modules
  1373. if (json_t* const modules = json_object_get(spl.rootJ, "modules"))
  1374. {
  1375. size_t i;
  1376. json_t* v;
  1377. json_array_foreach(modules, i, v)
  1378. {
  1379. json_object_set(v, "hidden", json_false());
  1380. }
  1381. }
  1382. }
  1383. }
  1384. #endif
  1385. static void initStatic__GlueTheGiant()
  1386. {
  1387. Plugin* const p = new Plugin;
  1388. pluginInstance__GlueTheGiant = p;
  1389. const StaticPluginLoader spl(p, "GlueTheGiant");
  1390. if (spl.ok())
  1391. {
  1392. p->addModel(modelGigBus);
  1393. p->addModel(modelMiniBus);
  1394. p->addModel(modelSchoolBus);
  1395. p->addModel(modelMetroCityBus);
  1396. p->addModel(modelBusDepot);
  1397. p->addModel(modelBusRoute);
  1398. p->addModel(modelRoad);
  1399. p->addModel(modelEnterBus);
  1400. p->addModel(modelExitBus);
  1401. }
  1402. }
  1403. static void initStatic__GoodSheperd()
  1404. {
  1405. Plugin* const p = new Plugin;
  1406. pluginInstance__GoodSheperd = p;
  1407. const StaticPluginLoader spl(p, "GoodSheperd");
  1408. if (spl.ok())
  1409. {
  1410. p->addModel(modelHurdle);
  1411. p->addModel(modelSEQ3st);
  1412. p->addModel(modelStable16);
  1413. p->addModel(modelStall);
  1414. p->addModel(modelSwitch1);
  1415. p->addModel(modelSeqtrol);
  1416. }
  1417. }
  1418. static void initStatic__GrandeModular()
  1419. {
  1420. Plugin* const p = new Plugin;
  1421. pluginInstance__GrandeModular = p;
  1422. const StaticPluginLoader spl(p, "GrandeModular");
  1423. if (spl.ok())
  1424. {
  1425. p->addModel(modelClip);
  1426. p->addModel(modelLFO3);
  1427. p->addModel(modelMerge8);
  1428. p->addModel(modelMergeSplit4);
  1429. p->addModel(modelMicrotonalChords);
  1430. p->addModel(modelMicrotonalNotes);
  1431. p->addModel(modelNoteMT);
  1432. p->addModel(modelPolyMergeResplit);
  1433. p->addModel(modelPolySplit);
  1434. p->addModel(modelQuant);
  1435. p->addModel(modelQuantIntervals);
  1436. p->addModel(modelQuantMT);
  1437. p->addModel(modelSampleDelays);
  1438. p->addModel(modelScale);
  1439. p->addModel(modelSplit8);
  1440. p->addModel(modelTails);
  1441. p->addModel(modelVarSampleDelays);
  1442. p->addModel(modelVCA3);
  1443. }
  1444. }
  1445. static void initStatic__HamptonHarmonics()
  1446. {
  1447. Plugin* const p = new Plugin;
  1448. pluginInstance__HamptonHarmonics = p;
  1449. const StaticPluginLoader spl(p, "HamptonHarmonics");
  1450. if (spl.ok())
  1451. {
  1452. #define modelArp modelHamptonHarmonicsArp
  1453. #define modelProgress modelHamptonHarmonicsProgress
  1454. p->addModel(modelArp);
  1455. p->addModel(modelProgress);
  1456. #undef modelProgress
  1457. #undef modelArp
  1458. }
  1459. }
  1460. static void initStatic__HetrickCV()
  1461. {
  1462. Plugin* const p = new Plugin;
  1463. pluginInstance__HetrickCV = p;
  1464. const StaticPluginLoader spl(p, "HetrickCV");
  1465. if (spl.ok())
  1466. {
  1467. #define modelASR modelHetrickCVASR
  1468. #define modelBlankPanel modelHetrickCVBlankPanel
  1469. #define modelFlipFlop modelHetrickCVFlipFlop
  1470. #define modelMidSide modelHetrickCVMidSide
  1471. #define modelMinMax modelHetrickCVMinMax
  1472. p->addModel(modelTwoToFour);
  1473. p->addModel(modelAnalogToDigital);
  1474. p->addModel(modelASR);
  1475. p->addModel(modelBinaryGate);
  1476. p->addModel(modelBinaryNoise);
  1477. p->addModel(modelBitshift);
  1478. p->addModel(modelBlankPanel);
  1479. p->addModel(modelBoolean3);
  1480. p->addModel(modelChaos1Op);
  1481. p->addModel(modelChaos2Op);
  1482. p->addModel(modelChaos3Op);
  1483. p->addModel(modelChaoticAttractors);
  1484. p->addModel(modelClockedNoise);
  1485. p->addModel(modelComparator);
  1486. p->addModel(modelContrast);
  1487. p->addModel(modelCrackle);
  1488. p->addModel(modelDataCompander);
  1489. p->addModel(modelDelta);
  1490. p->addModel(modelDigitalToAnalog);
  1491. p->addModel(modelDust);
  1492. p->addModel(modelExponent);
  1493. p->addModel(modelFBSineChaos);
  1494. p->addModel(modelFlipFlop);
  1495. p->addModel(modelFlipPan);
  1496. p->addModel(modelGateJunction);
  1497. p->addModel(modelGingerbread);
  1498. p->addModel(modelLogicCombine);
  1499. p->addModel(modelMidSide);
  1500. p->addModel(modelMinMax);
  1501. p->addModel(modelRandomGates);
  1502. p->addModel(modelRotator);
  1503. p->addModel(modelRungler);
  1504. p->addModel(modelScanner);
  1505. p->addModel(modelWaveshape);
  1506. p->addModel(modelXYToPolar);
  1507. #undef modelASR
  1508. #undef modelBlankPanel
  1509. #undef modelFlipFlop
  1510. #undef modelMidSide
  1511. #undef modelMinMax
  1512. }
  1513. }
  1514. static void initStatic__ImpromptuModular()
  1515. {
  1516. Plugin* const p = new Plugin;
  1517. pluginInstance__ImpromptuModular = p;
  1518. const StaticPluginLoader spl(p, "ImpromptuModular");
  1519. if (spl.ok())
  1520. {
  1521. p->addModel(modelAdaptiveQuantizer);
  1522. p->addModel(modelBigButtonSeq);
  1523. p->addModel(modelBigButtonSeq2);
  1524. p->addModel(modelChordKey);
  1525. p->addModel(modelChordKeyExpander);
  1526. p->addModel(modelClocked);
  1527. p->addModel(modelClockedExpander);
  1528. p->addModel(modelClkd);
  1529. p->addModel(modelCvPad);
  1530. p->addModel(modelFoundry);
  1531. p->addModel(modelFoundryExpander);
  1532. p->addModel(modelFourView);
  1533. p->addModel(modelGateSeq64);
  1534. p->addModel(modelGateSeq64Expander);
  1535. p->addModel(modelHotkey);
  1536. p->addModel(modelPart);
  1537. p->addModel(modelPhraseSeq16);
  1538. p->addModel(modelPhraseSeq32);
  1539. p->addModel(modelPhraseSeqExpander);
  1540. p->addModel(modelProbKey);
  1541. // p->addModel(modelProbKeyExpander);
  1542. p->addModel(modelSemiModularSynth);
  1543. p->addModel(modelTact);
  1544. p->addModel(modelTact1);
  1545. p->addModel(modelTactG);
  1546. p->addModel(modelTwelveKey);
  1547. p->addModel(modelWriteSeq32);
  1548. p->addModel(modelWriteSeq64);
  1549. p->addModel(modelBlankPanel);
  1550. }
  1551. }
  1552. static void initStatic__ihtsyn()
  1553. {
  1554. Plugin* const p = new Plugin;
  1555. pluginInstance__ihtsyn = p;
  1556. const StaticPluginLoader spl(p, "ihtsyn");
  1557. if (spl.ok())
  1558. {
  1559. p->addModel(modelPitchMangler);
  1560. p->addModel(modelTwistedVerb);
  1561. p->addModel(modelHiVerb);
  1562. p->addModel(modelMVerb);
  1563. }
  1564. }
  1565. static void initStatic__JW()
  1566. {
  1567. Plugin* const p = new Plugin;
  1568. pluginInstance__JW = p;
  1569. const StaticPluginLoader spl(p, "JW-Modules");
  1570. if (spl.ok())
  1571. {
  1572. #define modelQuantizer modelJWQuantizer
  1573. p->addModel(modelAdd5);
  1574. p->addModel(modelBouncyBalls);
  1575. p->addModel(modelCat);
  1576. p->addModel(modelTree);
  1577. p->addModel(modelFullScope);
  1578. p->addModel(modelGridSeq);
  1579. p->addModel(modelEightSeq);
  1580. p->addModel(modelDivSeq);
  1581. p->addModel(modelMinMax);
  1582. p->addModel(modelNoteSeq);
  1583. p->addModel(modelNoteSeqFu);
  1584. p->addModel(modelNoteSeq16);
  1585. p->addModel(modelTrigs);
  1586. p->addModel(modelOnePattern);
  1587. p->addModel(modelPatterns);
  1588. p->addModel(modelQuantizer);
  1589. p->addModel(modelSimpleClock);
  1590. p->addModel(modelD1v1de);
  1591. p->addModel(modelPres1t);
  1592. p->addModel(modelThingThing);
  1593. p->addModel(modelWavHead);
  1594. p->addModel(modelXYPad);
  1595. p->addModel(modelBlankPanel1hp);
  1596. p->addModel(modelBlankPanelSmall);
  1597. p->addModel(modelBlankPanelMedium);
  1598. p->addModel(modelBlankPanelLarge);
  1599. p->addModel(modelCoolBreeze);
  1600. p->addModel(modelPete);
  1601. #ifndef STATIC_BUILD
  1602. p->addModel(modelStr1ker);
  1603. #else
  1604. spl.removeModule("Str1ker");
  1605. #endif
  1606. #undef modelQuantizer
  1607. }
  1608. }
  1609. static void initStatic__LifeFormModular()
  1610. {
  1611. Plugin* const p = new Plugin;
  1612. pluginInstance__LifeFormModular= p;
  1613. const StaticPluginLoader spl(p, "LifeFormModular");
  1614. if (spl.ok())
  1615. {
  1616. p->addModel(modelTimeDiktat);
  1617. p->addModel(modelSequenceModeler);
  1618. p->addModel(modelPitchDiktat);
  1619. p->addModel(modelPitchIntegrator);
  1620. p->addModel(modelBurstIntegrator);
  1621. p->addModel(modelQuadModulator);
  1622. p->addModel(modelImpulseControl);
  1623. p->addModel(modelQuadSteppedOffset);
  1624. p->addModel(modelPercussiveVibration);
  1625. p->addModel(modelQuadUtility);
  1626. p->addModel(modelAdditiveVibration);
  1627. p->addModel(modelComplexOsc);
  1628. p->addModel(modelDriftgen);
  1629. }
  1630. }
  1631. static void initStatic__LittleUtils()
  1632. {
  1633. Plugin* const p = new Plugin;
  1634. pluginInstance__LittleUtils = p;
  1635. const StaticPluginLoader spl(p, "LittleUtils");
  1636. if (spl.ok())
  1637. {
  1638. p->addModel(modelButtonModule);
  1639. p->addModel(modelPulseGenerator);
  1640. p->addModel(modelBias_Semitone);
  1641. p->addModel(modelMulDiv);
  1642. p->addModel(modelTeleportInModule);
  1643. p->addModel(modelTeleportOutModule);
  1644. }
  1645. }
  1646. static void initStatic__Lomas()
  1647. {
  1648. Plugin* const p = new Plugin;
  1649. pluginInstance__Lomas = p;
  1650. const StaticPluginLoader spl(p, "LomasModules");
  1651. if (spl.ok())
  1652. {
  1653. p->addModel(modelAdvancedSampler);
  1654. p->addModel(modelGateSequencer);
  1655. }
  1656. }
  1657. static void initStatic__Lyrae()
  1658. {
  1659. Plugin* const p = new Plugin;
  1660. pluginInstance__Lyrae = p;
  1661. const StaticPluginLoader spl(p, "LyraeModules");
  1662. if (spl.ok())
  1663. {
  1664. #define modelDelta modelLyraeDelta
  1665. p->addModel(modelSulafat);
  1666. p->addModel(modelGamma);
  1667. p->addModel(modelDelta);
  1668. p->addModel(modelVega);
  1669. p->addModel(modelBD383238);
  1670. p->addModel(modelZeta);
  1671. #undef modelDelta
  1672. }
  1673. }
  1674. static void initStatic__MindMeld()
  1675. {
  1676. Plugin* const p = new Plugin;
  1677. pluginInstance__MindMeld = p;
  1678. const StaticPluginLoader spl(p, "MindMeldModular");
  1679. if (spl.ok())
  1680. {
  1681. p->addModel(modelMixMasterJr);
  1682. p->addModel(modelAuxExpanderJr);
  1683. p->addModel(modelMixMaster);
  1684. p->addModel(modelAuxExpander);
  1685. p->addModel(modelMeld);
  1686. p->addModel(modelUnmeld);
  1687. p->addModel(modelMSMelder);
  1688. p->addModel(modelEqMaster);
  1689. p->addModel(modelEqExpander);
  1690. p->addModel(modelBassMaster);
  1691. p->addModel(modelBassMasterJr);
  1692. p->addModel(modelShapeMaster);
  1693. }
  1694. }
  1695. static void initStatic__ML()
  1696. {
  1697. Plugin* const p = new Plugin;
  1698. pluginInstance__ML = p;
  1699. const StaticPluginLoader spl(p, "ML_modules");
  1700. if (spl.ok())
  1701. {
  1702. #define modelQuantizer modelMLQuantizer
  1703. #define modelSH8 modelMLSH8
  1704. p->addModel(modelQuantizer);
  1705. p->addModel(modelQuantum);
  1706. p->addModel(modelTrigBuf);
  1707. p->addModel(modelSeqSwitch);
  1708. p->addModel(modelSeqSwitch2);
  1709. p->addModel(modelShiftRegister);
  1710. p->addModel(modelShiftRegister2);
  1711. p->addModel(modelFreeVerb);
  1712. p->addModel(modelSum8);
  1713. p->addModel(modelSum8mk2);
  1714. p->addModel(modelSum8mk3);
  1715. p->addModel(modelSH8);
  1716. p->addModel(modelConstants);
  1717. p->addModel(modelCounter);
  1718. p->addModel(modelTrigDelay);
  1719. p->addModel(modelBPMdetect);
  1720. p->addModel(modelVoltMeter);
  1721. p->addModel(modelOctaFlop);
  1722. p->addModel(modelOctaTrig);
  1723. p->addModel(modelOctaSwitch);
  1724. p->addModel(modelTrigSwitch);
  1725. p->addModel(modelTrigSwitch2);
  1726. p->addModel(modelTrigSwitch3);
  1727. p->addModel(modelTrigSwitch3_2);
  1728. p->addModel(modelOctaPlus);
  1729. p->addModel(modelOctaTimes);
  1730. p->addModel(modelCloner);
  1731. p->addModel(modelPolySplitter);
  1732. p->addModel(modelArpeggiator);
  1733. #undef modelQuantizer
  1734. #undef modelSH8
  1735. }
  1736. }
  1737. static void initStatic__MockbaModular()
  1738. {
  1739. Plugin* const p = new Plugin;
  1740. pluginInstance__MockbaModular = p;
  1741. const StaticPluginLoader spl(p, "MockbaModular");
  1742. if (spl.ok())
  1743. {
  1744. #define modelBlank modelMockbaModularBlank
  1745. #define modelComparator modelMockbaModularComparator
  1746. p->addModel(modelBlank);
  1747. p->addModel(modelFeidah);
  1748. p->addModel(modelFeidahS);
  1749. p->addModel(modelFiltah);
  1750. p->addModel(modelMixah);
  1751. p->addModel(modelMixah3);
  1752. p->addModel(modelDividah);
  1753. p->addModel(modelCountah);
  1754. p->addModel(modelSelectah);
  1755. p->addModel(modelShapah);
  1756. p->addModel(modelHoldah);
  1757. p->addModel(modelPannah);
  1758. p->addModel(modelReVoltah);
  1759. p->addModel(modelCZSaw);
  1760. p->addModel(modelCZSquare);
  1761. p->addModel(modelCZPulse);
  1762. p->addModel(modelCZDblSine);
  1763. p->addModel(modelCZSawPulse);
  1764. p->addModel(modelCZReso1);
  1765. p->addModel(modelCZReso2);
  1766. p->addModel(modelCZReso3);
  1767. p->addModel(modelCZOsc);
  1768. p->addModel(modelMaugTriangle);
  1769. p->addModel(modelMaugShark);
  1770. p->addModel(modelMaugSaw);
  1771. p->addModel(modelMaugSaw2);
  1772. p->addModel(modelMaugSquare);
  1773. p->addModel(modelMaugSquare2);
  1774. p->addModel(modelMaugSquare3);
  1775. p->addModel(modelMaugOsc);
  1776. p->addModel(modelComparator);
  1777. p->addModel(modelDualBUFFER);
  1778. p->addModel(modelDualNOT);
  1779. p->addModel(modelDualOR);
  1780. p->addModel(modelDualNOR);
  1781. p->addModel(modelDualAND);
  1782. p->addModel(modelDualNAND);
  1783. p->addModel(modelDualXOR);
  1784. p->addModel(modelDualXNOR);
  1785. p->addModel(modelPSelectah);
  1786. // require input files to work
  1787. spl.removeModule("UDPClockMaster");
  1788. spl.removeModule("UDPClockSlave");
  1789. #undef modelBlank
  1790. #undef modelComparator
  1791. }
  1792. }
  1793. static void initStatic__Mog()
  1794. {
  1795. Plugin* const p = new Plugin;
  1796. pluginInstance__Mog = p;
  1797. const StaticPluginLoader spl(p, "Mog");
  1798. if (spl.ok())
  1799. {
  1800. p->addModel(modelNetwork);
  1801. p->addModel(modelNexus);
  1802. }
  1803. }
  1804. static void initStatic__mscHack()
  1805. {
  1806. Plugin* const p = new Plugin;
  1807. pluginInstance__mscHack = p;
  1808. const StaticPluginLoader spl(p, "mscHack");
  1809. if (spl.ok())
  1810. {
  1811. p->addModel(modelCompressor);
  1812. p->addModel(modelSynthDrums);
  1813. p->addModel(modelSEQ_6x32x16);
  1814. p->addModel(modelMasterClockx4);
  1815. //p->addModel(modelMasterClockx8);
  1816. p->addModel(modelSEQ_Envelope_8);
  1817. p->addModel(modelSeq_Triad2);
  1818. p->addModel(modelARP700);
  1819. p->addModel(modelMix_4_0_4);
  1820. p->addModel(modelMix_9_3_4);
  1821. p->addModel(modelMix_16_4_4);
  1822. p->addModel(modelMix_24_4_4);
  1823. p->addModel(modelASAF8);
  1824. p->addModel(modelPingPong);
  1825. p->addModel(modelStepDelay);
  1826. p->addModel(modelOsc_3Ch);
  1827. p->addModel(modelDronez);
  1828. p->addModel(modelMorze);
  1829. p->addModel(modelWindz);
  1830. p->addModel(modelLorenz);
  1831. p->addModel(modelAlienz);
  1832. p->addModel(modelOSC_WaveMorph_3);
  1833. p->addModel(modelMaude_221);
  1834. }
  1835. }
  1836. static void initStatic__Orbits()
  1837. {
  1838. Plugin* const p = new Plugin;
  1839. pluginInstance__Orbits = p;
  1840. const StaticPluginLoader spl(p, "Orbits");
  1841. if (spl.ok())
  1842. {
  1843. p->addModel(modelRareBreeds_Orbits_Eugene);
  1844. p->addModel(modelRareBreeds_Orbits_Polygene);
  1845. }
  1846. }
  1847. static void initStatic__Prism()
  1848. {
  1849. Plugin* const p = new Plugin;
  1850. pluginInstance__Prism = p;
  1851. const StaticPluginLoader spl(p, "Prism");
  1852. if (spl.ok())
  1853. {
  1854. p->addModel(modelRainbow);
  1855. p->addModel(modelRainbowScaleExpander);
  1856. p->addModel(modelDroplet);
  1857. }
  1858. }
  1859. static void initStatic__rackwindows()
  1860. {
  1861. Plugin* const p = new Plugin;
  1862. pluginInstance__rackwindows = p;
  1863. const StaticPluginLoader spl(p, "rackwindows");
  1864. if (spl.ok())
  1865. {
  1866. // p->addModel(modelAcceleration);
  1867. p->addModel(modelBitshiftgain);
  1868. p->addModel(modelCapacitor);
  1869. p->addModel(modelCapacitor_stereo);
  1870. p->addModel(modelChorus);
  1871. p->addModel(modelConsole);
  1872. p->addModel(modelConsole_mm);
  1873. p->addModel(modelDistance);
  1874. p->addModel(modelGolem);
  1875. p->addModel(modelHolt);
  1876. p->addModel(modelHombre);
  1877. p->addModel(modelInterstage);
  1878. p->addModel(modelMonitoring);
  1879. p->addModel(modelMv);
  1880. p->addModel(modelRasp);
  1881. p->addModel(modelReseq);
  1882. p->addModel(modelTape);
  1883. p->addModel(modelTremolo);
  1884. p->addModel(modelVibrato);
  1885. }
  1886. }
  1887. static void initStatic__repelzen()
  1888. {
  1889. Plugin* const p = new Plugin;
  1890. pluginInstance__repelzen = p;
  1891. const StaticPluginLoader spl(p, "repelzen");
  1892. if (spl.ok())
  1893. {
  1894. #define modelBlank modelrepelzenBlank
  1895. #define modelMixer modelrepelzenMixer
  1896. #define modelWerner modelrepelzenWerner
  1897. p->addModel(modelBlank);
  1898. p->addModel(modelBurst);
  1899. p->addModel(modelFolder);
  1900. p->addModel(modelErwin);
  1901. p->addModel(modelWerner);
  1902. p->addModel(modelMixer);
  1903. #undef modelBlank
  1904. #undef modelMixer
  1905. #undef modelWerner
  1906. }
  1907. }
  1908. static void initStatic__sonusmodular()
  1909. {
  1910. Plugin* const p = new Plugin;
  1911. pluginInstance__sonusmodular = p;
  1912. const StaticPluginLoader spl(p, "sonusmodular");
  1913. if (spl.ok())
  1914. {
  1915. p->addModel(modelAddiction);
  1916. p->addModel(modelBitter);
  1917. p->addModel(modelBymidside);
  1918. p->addModel(modelCampione);
  1919. p->addModel(modelChainsaw);
  1920. p->addModel(modelCtrl);
  1921. p->addModel(modelDeathcrush);
  1922. p->addModel(modelFraction);
  1923. p->addModel(modelHarmony);
  1924. p->addModel(modelLadrone);
  1925. p->addModel(modelLuppolo);
  1926. p->addModel(modelLuppolo3);
  1927. p->addModel(modelMicromacro);
  1928. p->addModel(modelMrcheb);
  1929. p->addModel(modelMultimulti);
  1930. p->addModel(modelNeurosc);
  1931. p->addModel(modelOktagon);
  1932. p->addModel(modelOsculum);
  1933. p->addModel(modelParamath);
  1934. p->addModel(modelPiconoise);
  1935. p->addModel(modelPith);
  1936. p->addModel(modelPusher);
  1937. p->addModel(modelRingo);
  1938. p->addModel(modelScramblase);
  1939. p->addModel(modelTropicana);
  1940. p->addModel(modelTwoff);
  1941. p->addModel(modelYabp);
  1942. }
  1943. }
  1944. static void initStatic__stocaudio()
  1945. {
  1946. Plugin* const p = new Plugin;
  1947. pluginInstance__stocaudio = p;
  1948. const StaticPluginLoader spl(p, "stocaudio");
  1949. if (spl.ok())
  1950. {
  1951. p->addModel(modelPolyturing);
  1952. p->addModel(modelPolydelay);
  1953. p->addModel(modelSpread);
  1954. }
  1955. }
  1956. static void initStatic__substation()
  1957. {
  1958. Plugin* const p = new Plugin;
  1959. pluginInstance__substation = p;
  1960. const StaticPluginLoader spl(p, "substation-opensource");
  1961. if (spl.ok())
  1962. {
  1963. p->addModel(slime::plugin::substation::modelClock);
  1964. p->addModel(slime::plugin::substation::modelEnvelopes);
  1965. p->addModel(slime::plugin::substation::modelFilter);
  1966. p->addModel(slime::plugin::substation::modelMixer);
  1967. p->addModel(slime::plugin::substation::modelQuantizer);
  1968. p->addModel(slime::plugin::substation::modelPolySequencer);
  1969. p->addModel(slime::plugin::substation::modelVCA);
  1970. p->addModel(slime::plugin::substation::modelSubOscillator);
  1971. p->addModel(slime::plugin::substation::modelBlank4);
  1972. p->addModel(slime::plugin::substation::modelBlank7);
  1973. p->addModel(slime::plugin::substation::modelFilterPlus);
  1974. }
  1975. }
  1976. static void initStatic__ValleyAudio()
  1977. {
  1978. Plugin* const p = new Plugin;
  1979. pluginInstance__ValleyAudio = p;
  1980. const StaticPluginLoader spl(p, "ValleyAudio");
  1981. if (spl.ok())
  1982. {
  1983. p->addModel(modelTopograph);
  1984. p->addModel(modelUGraph);
  1985. p->addModel(modelDexter);
  1986. p->addModel(modelPlateau);
  1987. p->addModel(modelInterzone);
  1988. p->addModel(modelAmalgam);
  1989. p->addModel(modelFeline);
  1990. p->addModel(modelTerrorform);
  1991. }
  1992. }
  1993. static void initStatic__ZetaCarinaeModules()
  1994. {
  1995. Plugin* p = new Plugin;
  1996. pluginInstance__ZetaCarinaeModules = p;
  1997. const StaticPluginLoader spl(p, "ZetaCarinaeModules");
  1998. if (spl.ok())
  1999. {
  2000. p->addModel(modelBrownianBridge);
  2001. p->addModel(modelOrnsteinUhlenbeck);
  2002. p->addModel(modelIOU);
  2003. p->addModel(modelWarbler);
  2004. p->addModel(modelRosenchance);
  2005. p->addModel(modelGuildensTurn);
  2006. p->addModel(modelRosslerRustler);
  2007. p->addModel(modelFirefly);
  2008. }
  2009. }
  2010. static void initStatic__ZZC()
  2011. {
  2012. Plugin* p = new Plugin;
  2013. pluginInstance__ZZC = p;
  2014. const StaticPluginLoader spl(p, "ZZC");
  2015. if (spl.ok())
  2016. {
  2017. #define modelClock modelZZCClock
  2018. p->addModel(modelClock);
  2019. p->addModel(modelDivider);
  2020. p->addModel(modelFN3);
  2021. p->addModel(modelSCVCA);
  2022. p->addModel(modelSH8);
  2023. p->addModel(modelSRC);
  2024. p->addModel(modelDiv);
  2025. p->addModel(modelDivExp);
  2026. p->addModel(modelPolygate);
  2027. #undef modelClock
  2028. }
  2029. }
  2030. #endif // NOPLUGINS
  2031. void initStaticPlugins()
  2032. {
  2033. initStatic__Cardinal();
  2034. #ifndef NOPLUGINS
  2035. initStatic__21kHz();
  2036. initStatic__8Mode();
  2037. initStatic__AmalgamatedHarmonics();
  2038. initStatic__AnimatedCircuits();
  2039. initStatic__Aria();
  2040. initStatic__AudibleInstruments();
  2041. initStatic__Autinn();
  2042. initStatic__Axioma();
  2043. initStatic__Bacon();
  2044. initStatic__Befaco();
  2045. initStatic__Bidoo();
  2046. initStatic__BogaudioModules();
  2047. initStatic__cf();
  2048. initStatic__ChowDSP();
  2049. initStatic__DrumKit();
  2050. initStatic__ESeries();
  2051. initStatic__ExpertSleepersEncoders();
  2052. initStatic__Extratone();
  2053. initStatic__FehlerFabrik();
  2054. #ifdef WITH_FUNDAMENTAL
  2055. initStatic__Fundamental();
  2056. #endif
  2057. initStatic__GlueTheGiant();
  2058. initStatic__GoodSheperd();
  2059. initStatic__GrandeModular();
  2060. initStatic__HamptonHarmonics();
  2061. initStatic__HetrickCV();
  2062. initStatic__ImpromptuModular();
  2063. initStatic__ihtsyn();
  2064. initStatic__JW();
  2065. initStatic__LifeFormModular();
  2066. initStatic__LittleUtils();
  2067. initStatic__Lomas();
  2068. initStatic__Lyrae();
  2069. initStatic__MindMeld();
  2070. initStatic__ML();
  2071. initStatic__MockbaModular();
  2072. initStatic__Mog();
  2073. initStatic__mscHack();
  2074. initStatic__Orbits();
  2075. initStatic__Prism();
  2076. initStatic__rackwindows();
  2077. initStatic__repelzen();
  2078. initStatic__sonusmodular();
  2079. initStatic__stocaudio();
  2080. initStatic__substation();
  2081. initStatic__ValleyAudio();
  2082. initStatic__ZetaCarinaeModules();
  2083. initStatic__ZZC();
  2084. #endif // NOPLUGINS
  2085. }
  2086. void destroyStaticPlugins()
  2087. {
  2088. for (Plugin* p : plugins)
  2089. delete p;
  2090. plugins.clear();
  2091. }
  2092. }
  2093. }