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.

2608 lines
70KB

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