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.

2636 lines
71KB

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