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.

3172 lines
85KB

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