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.

2899 lines
77KB

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