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.

2585 lines
70KB

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