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.

2578 lines
69KB

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