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.

3273 lines
88KB

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