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.

2631 lines
71KB

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