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.

1053 lines
31KB

  1. /*
  2. * DISTRHO Cardinal Plugin
  3. * Copyright (C) 2021 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 <plugin.hpp>
  18. #include "DistrhoUtils.hpp"
  19. // AmalgamatedHarmonics
  20. #include "AmalgamatedHarmonics/src/AH.hpp"
  21. // AnimatedCircuits
  22. #include "AnimatedCircuits/src/plugin.hpp"
  23. // AS
  24. #define modelADSR modelASADSR
  25. #define modelVCA modelASVCA
  26. #include "AS/src/AS.hpp"
  27. #undef modelADSR
  28. #undef modelVCA
  29. // AudibleInstruments
  30. #include "AudibleInstruments/src/plugin.hpp"
  31. // Befaco
  32. #include "Befaco/src/plugin.hpp"
  33. // Bidoo
  34. #include "Bidoo/src/plugin.hpp"
  35. // BogaudioModules
  36. #define modelADSR modelBogaudioADSR
  37. #define modelLFO modelBogaudioLFO
  38. #define modelNoise modelBogaudioNoise
  39. #define modelVCA modelBogaudioVCA
  40. #define modelVCF modelBogaudioVCF
  41. #define modelVCO modelBogaudioVCO
  42. #include "BogaudioModules/src/AD.hpp"
  43. #include "BogaudioModules/src/Additator.hpp"
  44. #include "BogaudioModules/src/AddrSeqX.hpp"
  45. #include "BogaudioModules/src/ADSR.hpp"
  46. #include "BogaudioModules/src/AMRM.hpp"
  47. #include "BogaudioModules/src/Analyzer.hpp"
  48. #include "BogaudioModules/src/AnalyzerXL.hpp"
  49. #include "BogaudioModules/src/Assign.hpp"
  50. #include "BogaudioModules/src/ASR.hpp"
  51. #include "BogaudioModules/src/Arp.hpp"
  52. #include "BogaudioModules/src/Blank3.hpp"
  53. #include "BogaudioModules/src/Blank6.hpp"
  54. #include "BogaudioModules/src/Bool.hpp"
  55. #include "BogaudioModules/src/Chirp.hpp"
  56. #include "BogaudioModules/src/Clpr.hpp"
  57. #include "BogaudioModules/src/Cmp.hpp"
  58. #include "BogaudioModules/src/CmpDist.hpp"
  59. #include "BogaudioModules/src/CVD.hpp"
  60. #include "BogaudioModules/src/DADSRH.hpp"
  61. #include "BogaudioModules/src/DADSRHPlus.hpp"
  62. #include "BogaudioModules/src/Detune.hpp"
  63. #include "BogaudioModules/src/DGate.hpp"
  64. #include "BogaudioModules/src/Edge.hpp"
  65. #include "BogaudioModules/src/EightFO.hpp"
  66. #include "BogaudioModules/src/EightOne.hpp"
  67. #include "BogaudioModules/src/EQ.hpp"
  68. #include "BogaudioModules/src/EQS.hpp"
  69. #include "BogaudioModules/src/FFB.hpp"
  70. #include "BogaudioModules/src/FlipFlop.hpp"
  71. #include "BogaudioModules/src/FMOp.hpp"
  72. #include "BogaudioModules/src/Follow.hpp"
  73. #include "BogaudioModules/src/FourFO.hpp"
  74. #include "BogaudioModules/src/FourMan.hpp"
  75. #include "BogaudioModules/src/Inv.hpp"
  76. #include "BogaudioModules/src/LFO.hpp"
  77. #include "BogaudioModules/src/Lgsw.hpp"
  78. #include "BogaudioModules/src/LLFO.hpp"
  79. #include "BogaudioModules/src/LLPG.hpp"
  80. #include "BogaudioModules/src/Lmtr.hpp"
  81. #include "BogaudioModules/src/LPG.hpp"
  82. #include "BogaudioModules/src/LVCF.hpp"
  83. #include "BogaudioModules/src/LVCO.hpp"
  84. #include "BogaudioModules/src/Manual.hpp"
  85. #include "BogaudioModules/src/Matrix18.hpp"
  86. #include "BogaudioModules/src/Matrix44.hpp"
  87. #include "BogaudioModules/src/Matrix81.hpp"
  88. #include "BogaudioModules/src/Matrix88.hpp"
  89. #include "BogaudioModules/src/Matrix88Cv.hpp"
  90. #include "BogaudioModules/src/Matrix88M.hpp"
  91. #include "BogaudioModules/src/MegaGate.hpp"
  92. #include "BogaudioModules/src/Mix1.hpp"
  93. #include "BogaudioModules/src/Mix2.hpp"
  94. #include "BogaudioModules/src/Mix4.hpp"
  95. #include "BogaudioModules/src/Mix4x.hpp"
  96. #include "BogaudioModules/src/Mix8x.hpp"
  97. #include "BogaudioModules/src/Mono.hpp"
  98. #include "BogaudioModules/src/Mult.hpp"
  99. #include "BogaudioModules/src/Mumix.hpp"
  100. #include "BogaudioModules/src/Mute8.hpp"
  101. #include "BogaudioModules/src/Noise.hpp"
  102. #include "BogaudioModules/src/Nsgt.hpp"
  103. #include "BogaudioModules/src/Offset.hpp"
  104. #include "BogaudioModules/src/OneEight.hpp"
  105. #include "BogaudioModules/src/Pan.hpp"
  106. #include "BogaudioModules/src/PEQ.hpp"
  107. #include "BogaudioModules/src/PEQ6.hpp"
  108. #include "BogaudioModules/src/PEQ6XF.hpp"
  109. #include "BogaudioModules/src/PEQ14.hpp"
  110. #include "BogaudioModules/src/PEQ14XF.hpp"
  111. #include "BogaudioModules/src/Pgmr.hpp"
  112. #include "BogaudioModules/src/PgmrX.hpp"
  113. #include "BogaudioModules/src/PolyCon16.hpp"
  114. #include "BogaudioModules/src/PolyCon8.hpp"
  115. #include "BogaudioModules/src/PolyMult.hpp"
  116. #include "BogaudioModules/src/PolyOff16.hpp"
  117. #include "BogaudioModules/src/PolyOff8.hpp"
  118. #include "BogaudioModules/src/Pressor.hpp"
  119. #include "BogaudioModules/src/Pulse.hpp"
  120. #include "BogaudioModules/src/Ranalyzer.hpp"
  121. #include "BogaudioModules/src/Reftone.hpp"
  122. #include "BogaudioModules/src/RGate.hpp"
  123. #include "BogaudioModules/src/SampleHold.hpp"
  124. #include "BogaudioModules/src/Shaper.hpp"
  125. #include "BogaudioModules/src/ShaperPlus.hpp"
  126. #include "BogaudioModules/src/Sine.hpp"
  127. #include "BogaudioModules/src/Slew.hpp"
  128. #include "BogaudioModules/src/Stack.hpp"
  129. #include "BogaudioModules/src/Sums.hpp"
  130. #include "BogaudioModules/src/Switch.hpp"
  131. #include "BogaudioModules/src/Switch1616.hpp"
  132. #include "BogaudioModules/src/Switch18.hpp"
  133. #include "BogaudioModules/src/Switch44.hpp"
  134. #include "BogaudioModules/src/Switch81.hpp"
  135. #include "BogaudioModules/src/Switch88.hpp"
  136. #include "BogaudioModules/src/UMix.hpp"
  137. #include "BogaudioModules/src/Unison.hpp"
  138. #include "BogaudioModules/src/VCA.hpp"
  139. #include "BogaudioModules/src/VCAmp.hpp"
  140. #include "BogaudioModules/src/VCF.hpp"
  141. #include "BogaudioModules/src/VCM.hpp"
  142. #include "BogaudioModules/src/VCO.hpp"
  143. #include "BogaudioModules/src/Velo.hpp"
  144. #include "BogaudioModules/src/Vish.hpp"
  145. #include "BogaudioModules/src/VU.hpp"
  146. #include "BogaudioModules/src/Walk.hpp"
  147. #include "BogaudioModules/src/Walk2.hpp"
  148. #include "BogaudioModules/src/XCO.hpp"
  149. #include "BogaudioModules/src/XFade.hpp"
  150. #undef modelADSR
  151. #undef modelLFO
  152. #undef modelNoise
  153. #undef modelVCA
  154. #undef modelVCF
  155. #undef modelVCO
  156. // Cardinal (built-in)
  157. #include "Cardinal/src/plugin.hpp"
  158. // cf
  159. #include "cf/src/plugin.hpp"
  160. // ESeries
  161. #include "ESeries/src/plugin.hpp"
  162. // Fundamental
  163. #include "Fundamental/src/plugin.hpp"
  164. // GrandeModular
  165. #include "GrandeModular/src/plugin.hpp"
  166. // ImpromptuModular
  167. /* NOTE too much noise in original include, do this a different way
  168. // #include "ImpromptuModular/src/ImpromptuModular.hpp"
  169. */
  170. extern Model *modelBigButtonSeq;
  171. extern Model *modelBigButtonSeq2;
  172. extern Model *modelChordKey;
  173. extern Model *modelChordKeyExpander;
  174. extern Model *modelClocked;
  175. extern Model *modelClockedExpander;
  176. extern Model *modelClkd;
  177. extern Model *modelCvPad;
  178. extern Model *modelFoundry;
  179. extern Model *modelFoundryExpander;
  180. extern Model *modelFourView;
  181. extern Model *modelGateSeq64;
  182. extern Model *modelGateSeq64Expander;
  183. extern Model *modelHotkey;
  184. extern Model *modelPart;
  185. extern Model *modelPhraseSeq16;
  186. extern Model *modelPhraseSeq32;
  187. extern Model *modelPhraseSeqExpander;
  188. extern Model *modelProbKey;
  189. // extern Model *modelProbKeyExpander;
  190. extern Model *modelSemiModularSynth;
  191. extern Model *modelTact;
  192. extern Model *modelTact1;
  193. extern Model *modelTactG;
  194. extern Model *modelTwelveKey;
  195. extern Model *modelWriteSeq32;
  196. extern Model *modelWriteSeq64;
  197. extern Model *modelBlankPanel;
  198. // JW-Modules
  199. #define modelQuantizer modelJWQuantizer
  200. #include "JW-Modules/src/JWModules.hpp"
  201. #undef modelQuantizer
  202. // rackwindows
  203. #include "rackwindows/src/plugin.hpp"
  204. // ValleyAudio
  205. /* does not build against v2
  206. #include "ValleyAudio/src/Valley.hpp"
  207. */
  208. // ZetaCarinaeModules
  209. #include "ZetaCarinaeModules/src/plugin.hpp"
  210. // stuff that reads config files, we dont want that
  211. int loadConsoleType() { return 0; }
  212. int loadDirectOutMode() { return 0; }
  213. bool loadDarkAsDefault() { return true; }
  214. bool loadQuality() { return false; }
  215. void saveConsoleType(int) {}
  216. void saveDarkAsDefault(bool) {}
  217. void saveDirectOutMode(bool) {}
  218. void saveHighQualityAsDefault(bool) {}
  219. // plugin instances
  220. Plugin* pluginInstance__AmalgamatedHarmonics;
  221. Plugin* pluginInstance__AnimatedCircuits;
  222. Plugin* pluginInstance__AS;
  223. Plugin* pluginInstance__AudibleInstruments;
  224. Plugin* pluginInstance__Befaco;
  225. Plugin* pluginInstance__Bidoo;
  226. Plugin* pluginInstance__BogaudioModules;
  227. Plugin* pluginInstance__Cardinal;
  228. Plugin* pluginInstance__cf;
  229. Plugin* pluginInstance__ESeries;
  230. Plugin* pluginInstance__Fundamental;
  231. Plugin* pluginInstance__GrandeModular;
  232. extern Plugin* pluginInstance__ImpromptuModular;
  233. Plugin* pluginInstance__JW;
  234. Plugin* pluginInstance__rackwindows;
  235. Plugin* pluginInstance__ValleyAudio;
  236. Plugin* pluginInstance__ZetaCarinaeModules;
  237. namespace rack {
  238. namespace asset {
  239. std::string pluginManifest(const std::string& dirname);
  240. std::string pluginPath(const std::string& dirname);
  241. }
  242. // core plugins
  243. namespace core {
  244. extern Model* modelAudioInterface;
  245. extern Model* modelAudioInterface2;
  246. extern Model* modelAudioInterface16;
  247. extern Model* modelMIDI_CV;
  248. extern Model* modelMIDI_CC;
  249. extern Model* modelMIDI_Gate;
  250. extern Model* modelMIDI_Map;
  251. extern Model* modelCV_MIDI;
  252. extern Model* modelCV_CC;
  253. extern Model* modelCV_Gate;
  254. extern Model* modelBlank;
  255. extern Model* modelNotes;
  256. }
  257. // regular plugins
  258. namespace plugin {
  259. struct StaticPluginLoader {
  260. Plugin* const plugin;
  261. FILE* file;
  262. json_t* rootJ;
  263. StaticPluginLoader(Plugin* const p, const char* const name)
  264. : plugin(p),
  265. file(nullptr),
  266. rootJ(nullptr)
  267. {
  268. DEBUG("Loading plugin module %s", name);
  269. p->path = asset::pluginPath(name);
  270. const std::string manifestFilename = asset::pluginManifest(name);
  271. if ((file = std::fopen(manifestFilename.c_str(), "r")) == nullptr)
  272. {
  273. d_stderr2("Manifest file %s does not exist", manifestFilename.c_str());
  274. return;
  275. }
  276. json_error_t error;
  277. if ((rootJ = json_loadf(file, 0, &error)) == nullptr)
  278. {
  279. d_stderr2("JSON parsing error at %s %d:%d %s", manifestFilename.c_str(), error.line, error.column, error.text);
  280. return;
  281. }
  282. // force ABI, we use static plugins so this doesnt matter as long as it builds
  283. json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
  284. json_object_set(rootJ, "version", version);
  285. json_decref(version);
  286. }
  287. ~StaticPluginLoader()
  288. {
  289. if (rootJ != nullptr)
  290. {
  291. plugin->fromJson(rootJ);
  292. json_decref(rootJ);
  293. plugins.push_back(plugin);
  294. }
  295. if (file != nullptr)
  296. std::fclose(file);
  297. }
  298. bool ok() const noexcept
  299. {
  300. return rootJ != nullptr;
  301. }
  302. };
  303. static void initStatic__Core()
  304. {
  305. Plugin* const p = new Plugin;
  306. const StaticPluginLoader spl(p, "Core");
  307. if (spl.ok())
  308. {
  309. p->addModel(rack::core::modelAudioInterface);
  310. p->addModel(rack::core::modelAudioInterface2);
  311. p->addModel(rack::core::modelAudioInterface16);
  312. p->addModel(rack::core::modelMIDI_CV);
  313. p->addModel(rack::core::modelMIDI_CC);
  314. p->addModel(rack::core::modelMIDI_Gate);
  315. p->addModel(rack::core::modelMIDI_Map);
  316. p->addModel(rack::core::modelCV_MIDI);
  317. p->addModel(rack::core::modelCV_CC);
  318. p->addModel(rack::core::modelCV_Gate);
  319. p->addModel(rack::core::modelBlank);
  320. p->addModel(rack::core::modelNotes);
  321. }
  322. }
  323. static void initStatic__AmalgamatedHarmonics()
  324. {
  325. Plugin* const p = new Plugin;
  326. pluginInstance__AmalgamatedHarmonics = p;
  327. const StaticPluginLoader spl(p, "AmalgamatedHarmonics");
  328. if (spl.ok())
  329. {
  330. p->addModel(modelArp31);
  331. p->addModel(modelArp32);
  332. p->addModel(modelBombe);
  333. p->addModel(modelChord);
  334. p->addModel(modelCircle);
  335. p->addModel(modelGalaxy);
  336. p->addModel(modelGenerative);
  337. p->addModel(modelImp);
  338. p->addModel(modelImperfect2);
  339. p->addModel(modelProgress2);
  340. p->addModel(modelRuckus);
  341. p->addModel(modelScaleQuantizer2);
  342. p->addModel(modelSLN);
  343. p->addModel(modelMuxDeMux);
  344. p->addModel(modelPolyProbe);
  345. p->addModel(modelPolyScope);
  346. p->addModel(modelPolyUtils);
  347. p->addModel(modelPolyVolt);
  348. p->addModel(modelScaleQuantizer);
  349. p->addModel(modelArpeggiator2);
  350. p->addModel(modelProgress);
  351. }
  352. }
  353. static void initStatic__AnimatedCircuits()
  354. {
  355. Plugin* const p = new Plugin;
  356. pluginInstance__AnimatedCircuits = p;
  357. const StaticPluginLoader spl(p, "AnimatedCircuits");
  358. if (spl.ok())
  359. {
  360. p->addModel(model_AC_Folding);
  361. }
  362. }
  363. static void initStatic__AS()
  364. {
  365. Plugin* const p = new Plugin;
  366. pluginInstance__AS = p;
  367. const StaticPluginLoader spl(p, "AS");
  368. if (spl.ok())
  369. {
  370. #define modelADSR modelASADSR
  371. #define modelVCA modelASVCA
  372. //OSCILLATORS
  373. p->addModel(modelSineOsc);
  374. p->addModel(modelSawOsc);
  375. //TOOLS
  376. p->addModel(modelADSR);
  377. p->addModel(modelVCA);
  378. p->addModel(modelQuadVCA);
  379. p->addModel(modelTriLFO);
  380. p->addModel(modelAtNuVrTr);
  381. p->addModel(modelBPMClock);
  382. p->addModel(modelSEQ16);
  383. p->addModel(modelMixer2ch);
  384. p->addModel(modelMixer4ch);
  385. p->addModel(modelMixer8ch);
  386. p->addModel(modelMonoVUmeter);
  387. p->addModel(modelStereoVUmeter);
  388. p->addModel(modelMultiple2_5);
  389. p->addModel(modelMerge2_5);
  390. p->addModel(modelSteps);
  391. p->addModel(modelLaunchGate);
  392. p->addModel(modelKillGate);
  393. p->addModel(modelFlow);
  394. p->addModel(modelSignalDelay);
  395. p->addModel(modelTriggersMKI);
  396. p->addModel(modelTriggersMKII);
  397. p->addModel(modelTriggersMKIII);
  398. p->addModel(modelBPMCalc);
  399. p->addModel(modelBPMCalc2);
  400. p->addModel(modelCv2T);
  401. p->addModel(modelZeroCV2T);
  402. p->addModel(modelReScale);
  403. //EFFECTS
  404. p->addModel(modelDelayPlusFx);
  405. p->addModel(modelDelayPlusStereoFx);
  406. p->addModel(modelPhaserFx);
  407. p->addModel(modelReverbFx);
  408. p->addModel(modelReverbStereoFx);
  409. p->addModel(modelSuperDriveFx);
  410. p->addModel(modelSuperDriveStereoFx);
  411. p->addModel(modelTremoloFx);
  412. p->addModel(modelTremoloStereoFx);
  413. p->addModel(modelWaveShaper);
  414. p->addModel(modelWaveShaperStereo);
  415. //BLANK PANELS
  416. p->addModel(modelBlankPanel4);
  417. p->addModel(modelBlankPanel6);
  418. p->addModel(modelBlankPanel8);
  419. p->addModel(modelBlankPanelSpecial);
  420. #undef modelADSR
  421. #undef modelVCA
  422. }
  423. }
  424. static void initStatic__AudibleInstruments()
  425. {
  426. Plugin* const p = new Plugin;
  427. pluginInstance__AudibleInstruments = p;
  428. const StaticPluginLoader spl(p, "AudibleInstruments");
  429. if (spl.ok())
  430. {
  431. p->addModel(modelBraids);
  432. p->addModel(modelPlaits);
  433. p->addModel(modelElements);
  434. p->addModel(modelTides);
  435. p->addModel(modelTides2);
  436. p->addModel(modelClouds);
  437. p->addModel(modelWarps);
  438. p->addModel(modelRings);
  439. p->addModel(modelLinks);
  440. p->addModel(modelKinks);
  441. p->addModel(modelShades);
  442. p->addModel(modelBranches);
  443. p->addModel(modelBlinds);
  444. p->addModel(modelVeils);
  445. p->addModel(modelFrames);
  446. p->addModel(modelMarbles);
  447. p->addModel(modelStages);
  448. p->addModel(modelRipples);
  449. p->addModel(modelShelves);
  450. p->addModel(modelStreams);
  451. }
  452. }
  453. static void initStatic__Befaco()
  454. {
  455. Plugin* const p = new Plugin;
  456. pluginInstance__Befaco = p;
  457. const StaticPluginLoader spl(p, "Befaco");
  458. if (spl.ok())
  459. {
  460. p->addModel(modelEvenVCO);
  461. p->addModel(modelRampage);
  462. p->addModel(modelABC);
  463. p->addModel(modelSpringReverb);
  464. p->addModel(modelMixer);
  465. p->addModel(modelSlewLimiter);
  466. p->addModel(modelDualAtenuverter);
  467. }
  468. }
  469. static void initStatic__Bidoo()
  470. {
  471. Plugin* const p = new Plugin;
  472. pluginInstance__Bidoo = p;
  473. const StaticPluginLoader spl(p, "Bidoo");
  474. if (spl.ok())
  475. {
  476. p->addModel(modelTOCANTE);
  477. p->addModel(modelLATE);
  478. p->addModel(modelDIKTAT);
  479. p->addModel(modelDTROY);
  480. p->addModel(modelBORDL);
  481. p->addModel(modelZOUMAI);
  482. p->addModel(modelMU);
  483. p->addModel(modelCHUTE);
  484. p->addModel(modelLOURDE);
  485. p->addModel(modelACNE);
  486. p->addModel(modelMS);
  487. p->addModel(modelDUKE);
  488. p->addModel(modelMOIRE);
  489. p->addModel(modelPILOT);
  490. p->addModel(modelHUITRE);
  491. p->addModel(modelOUAIVE);
  492. p->addModel(modelPOUPRE);
  493. p->addModel(modelMAGMA);
  494. p->addModel(modelOAI);
  495. p->addModel(modelCANARD);
  496. p->addModel(modelEMILE);
  497. p->addModel(modelFORK);
  498. p->addModel(modelTIARE);
  499. //p->addModel(modelCLACOS);
  500. //p->addModel(modelPENEQUE);
  501. p->addModel(modelLIMONADE);
  502. p->addModel(modelLIMBO);
  503. p->addModel(modelPERCO);
  504. p->addModel(modelBAFIS);
  505. p->addModel(modelFFILTR);
  506. p->addModel(modelBAR);
  507. p->addModel(modelMINIBAR);
  508. p->addModel(modelZINC);
  509. p->addModel(modelFREIN);
  510. p->addModel(modelHCTIP);
  511. //p->addModel(modelCURT);
  512. p->addModel(modelDFUZE);
  513. p->addModel(modelREI);
  514. p->addModel(modelRABBIT);
  515. p->addModel(modelBISTROT);
  516. p->addModel(modelSIGMA);
  517. p->addModel(modelGARCON);
  518. p->addModel(modelVOID);
  519. // NOTE disabled in Cardinal due to curl usage
  520. // p->addModel(modelANTN);
  521. // intentionally remove known bad plugin
  522. if (json_t* const modules = json_object_get(spl.rootJ, "modules"))
  523. {
  524. size_t i;
  525. json_t* v;
  526. json_array_foreach(modules, i, v)
  527. {
  528. if (json_t* const slug = json_object_get(v, "slug"))
  529. {
  530. if (const char* const value = json_string_value(slug))
  531. {
  532. if (std::strcmp(value, "antN") == 0)
  533. {
  534. json_array_remove(modules, i);
  535. break;
  536. }
  537. }
  538. }
  539. }
  540. }
  541. }
  542. }
  543. static void initStatic__BogaudioModules()
  544. {
  545. Plugin* const p = new Plugin;
  546. pluginInstance__BogaudioModules = p;
  547. const StaticPluginLoader spl(p, "BogaudioModules");
  548. if (spl.ok())
  549. {
  550. #define modelADSR modelBogaudioADSR
  551. #define modelLFO modelBogaudioLFO
  552. #define modelNoise modelBogaudioNoise
  553. #define modelVCA modelBogaudioVCA
  554. #define modelVCF modelBogaudioVCF
  555. #define modelVCO modelBogaudioVCO
  556. p->addModel(modelVCO);
  557. p->addModel(modelLVCO);
  558. p->addModel(modelSine);
  559. p->addModel(modelPulse);
  560. p->addModel(modelXCO);
  561. p->addModel(modelAdditator);
  562. p->addModel(modelFMOp);
  563. p->addModel(modelChirp);
  564. p->addModel(modelLFO);
  565. p->addModel(modelLLFO);
  566. p->addModel(modelFourFO);
  567. p->addModel(modelEightFO);
  568. p->addModel(modelVCF);
  569. p->addModel(modelLVCF);
  570. p->addModel(modelFFB);
  571. p->addModel(modelEQ);
  572. p->addModel(modelEQS);
  573. p->addModel(modelLPG);
  574. p->addModel(modelLLPG);
  575. p->addModel(modelMegaGate);
  576. p->addModel(modelPEQ);
  577. p->addModel(modelPEQ6);
  578. p->addModel(modelPEQ6XF);
  579. p->addModel(modelPEQ14);
  580. p->addModel(modelPEQ14XF);
  581. p->addModel(modelDADSRH);
  582. p->addModel(modelDADSRHPlus);
  583. p->addModel(modelShaper);
  584. p->addModel(modelShaperPlus);
  585. p->addModel(modelAD);
  586. p->addModel(modelASR);
  587. p->addModel(modelADSR);
  588. p->addModel(modelVish);
  589. p->addModel(modelFollow);
  590. p->addModel(modelDGate);
  591. p->addModel(modelRGate);
  592. p->addModel(modelEdge);
  593. p->addModel(modelNoise);
  594. p->addModel(modelSampleHold);
  595. p->addModel(modelWalk2);
  596. p->addModel(modelWalk);
  597. p->addModel(modelMix8);
  598. p->addModel(modelMix8x);
  599. p->addModel(modelMix4);
  600. p->addModel(modelMix4x);
  601. p->addModel(modelMix2);
  602. p->addModel(modelMix1);
  603. p->addModel(modelVCM);
  604. p->addModel(modelMute8);
  605. p->addModel(modelPan);
  606. p->addModel(modelXFade);
  607. p->addModel(modelVCA);
  608. p->addModel(modelVCAmp);
  609. p->addModel(modelVelo);
  610. p->addModel(modelUMix);
  611. p->addModel(modelMumix);
  612. p->addModel(modelMatrix81);
  613. p->addModel(modelMatrix18);
  614. p->addModel(modelMatrix44);
  615. p->addModel(modelMatrix44Cvm);
  616. p->addModel(modelMatrix88);
  617. p->addModel(modelMatrix88Cv);
  618. p->addModel(modelMatrix88M);
  619. p->addModel(modelSwitch81);
  620. p->addModel(modelSwitch18);
  621. p->addModel(modelSwitch44);
  622. p->addModel(modelSwitch88);
  623. p->addModel(modelSwitch1616);
  624. p->addModel(modelAMRM);
  625. p->addModel(modelPressor);
  626. p->addModel(modelClpr);
  627. p->addModel(modelLmtr);
  628. p->addModel(modelNsgt);
  629. p->addModel(modelCmpDist);
  630. p->addModel(modelOneEight);
  631. p->addModel(modelEightOne);
  632. p->addModel(modelAddrSeq);
  633. p->addModel(modelAddrSeqX);
  634. p->addModel(modelPgmr);
  635. p->addModel(modelPgmrX);
  636. p->addModel(modelVU);
  637. p->addModel(modelAnalyzer);
  638. p->addModel(modelAnalyzerXL);
  639. p->addModel(modelRanalyzer);
  640. p->addModel(modelDetune);
  641. p->addModel(modelStack);
  642. p->addModel(modelReftone);
  643. p->addModel(modelMono);
  644. p->addModel(modelArp);
  645. p->addModel(modelAssign);
  646. p->addModel(modelUnison);
  647. p->addModel(modelPolyCon8);
  648. p->addModel(modelPolyCon16);
  649. p->addModel(modelPolyOff8);
  650. p->addModel(modelPolyOff16);
  651. p->addModel(modelPolyMult);
  652. p->addModel(modelBool);
  653. p->addModel(modelCmp);
  654. p->addModel(modelCVD);
  655. p->addModel(modelFlipFlop);
  656. p->addModel(modelInv);
  657. p->addModel(modelManual);
  658. p->addModel(modelFourMan);
  659. p->addModel(modelMult);
  660. p->addModel(modelOffset);
  661. p->addModel(modelSlew);
  662. p->addModel(modelSums);
  663. p->addModel(modelSwitch);
  664. p->addModel(modelLgsw);
  665. p->addModel(modelBlank3);
  666. p->addModel(modelBlank6);
  667. #ifdef EXPERIMENTAL
  668. p->addModel(modelLag);
  669. p->addModel(modelPEQ14XR);
  670. p->addModel(modelPEQ14XV);
  671. #endif
  672. #ifdef TEST
  673. p->addModel(modelTest);
  674. p->addModel(modelTest2);
  675. p->addModel(modelTestExpanderBase);
  676. p->addModel(modelTestExpanderExtension);
  677. p->addModel(modelTestGl);
  678. p->addModel(modelTestVCF);
  679. #endif
  680. #undef modelADSR
  681. #undef modelLFO
  682. #undef modelNoise
  683. #undef modelVCA
  684. #undef modelVCF
  685. #undef modelVCO
  686. }
  687. }
  688. static void initStatic__Cardinal()
  689. {
  690. Plugin* const p = new Plugin;
  691. pluginInstance__Cardinal = p;
  692. const StaticPluginLoader spl(p, "Cardinal");
  693. if (spl.ok())
  694. {
  695. p->addModel(modelHostParameters);
  696. p->addModel(modelHostTime);
  697. }
  698. }
  699. static void initStatic__cf()
  700. {
  701. Plugin* const p = new Plugin;
  702. pluginInstance__cf = p;
  703. const StaticPluginLoader spl(p, "cf");
  704. if (spl.ok())
  705. {
  706. p->addModel(modelMETRO);
  707. p->addModel(modelEACH);
  708. p->addModel(modeltrSEQ);
  709. p->addModel(modelLEDSEQ);
  710. p->addModel(modelL3DS3Q);
  711. p->addModel(modelSLIDERSEQ);
  712. p->addModel(modelPLAYER);
  713. p->addModel(modelPLAY);
  714. p->addModel(modelMONO);
  715. p->addModel(modelSTEREO);
  716. p->addModel(modelSUB);
  717. p->addModel(modelMASTER);
  718. p->addModel(modelVARIABLE);
  719. p->addModel(modelALGEBRA);
  720. p->addModel(modelFUNKTION);
  721. p->addModel(modelCHOKE);
  722. p->addModel(modelFOUR);
  723. p->addModel(modelSTEPS);
  724. p->addModel(modelPEAK);
  725. p->addModel(modelCUTS);
  726. p->addModel(modelBUFFER);
  727. p->addModel(modelDISTO);
  728. p->addModel(modelCUBE);
  729. p->addModel(modelPATCH);
  730. p->addModel(modelLABEL);
  731. p->addModel(modelDAVE);
  732. }
  733. }
  734. static void initStatic__ESeries()
  735. {
  736. Plugin* const p = new Plugin;
  737. pluginInstance__ESeries = p;
  738. const StaticPluginLoader spl(p, "ESeries");
  739. if (spl.ok())
  740. {
  741. p->addModel(modelE340);
  742. }
  743. }
  744. static void initStatic__Fundamental()
  745. {
  746. Plugin* const p = new Plugin;
  747. pluginInstance__Fundamental = p;
  748. const StaticPluginLoader spl(p, "Fundamental");
  749. if (spl.ok())
  750. {
  751. p->addModel(modelVCO);
  752. p->addModel(modelVCO2);
  753. p->addModel(modelVCF);
  754. p->addModel(modelVCA_1);
  755. p->addModel(modelVCA);
  756. p->addModel(modelLFO);
  757. p->addModel(modelLFO2);
  758. p->addModel(modelDelay);
  759. p->addModel(modelADSR);
  760. p->addModel(modelVCMixer);
  761. p->addModel(model_8vert);
  762. p->addModel(modelUnity);
  763. p->addModel(modelMutes);
  764. p->addModel(modelPulses);
  765. p->addModel(modelScope);
  766. p->addModel(modelSEQ3);
  767. p->addModel(modelSequentialSwitch1);
  768. p->addModel(modelSequentialSwitch2);
  769. p->addModel(modelOctave);
  770. p->addModel(modelQuantizer);
  771. p->addModel(modelSplit);
  772. p->addModel(modelMerge);
  773. p->addModel(modelSum);
  774. p->addModel(modelViz);
  775. p->addModel(modelMidSide);
  776. p->addModel(modelNoise);
  777. p->addModel(modelRandom);
  778. }
  779. }
  780. static void initStatic__GrandeModular()
  781. {
  782. Plugin* const p = new Plugin;
  783. pluginInstance__GrandeModular = p;
  784. const StaticPluginLoader spl(p, "GrandeModular");
  785. if (spl.ok())
  786. {
  787. p->addModel(modelClip);
  788. p->addModel(modelMergeSplit4);
  789. p->addModel(modelMicrotonalChords);
  790. p->addModel(modelMicrotonalNotes);
  791. p->addModel(modelNoteMT);
  792. p->addModel(modelPolyMergeResplit);
  793. p->addModel(modelQuant);
  794. p->addModel(modelQuantIntervals);
  795. p->addModel(modelQuantMT);
  796. p->addModel(modelSampleDelays);
  797. p->addModel(modelScale);
  798. p->addModel(modelTails);
  799. p->addModel(modelVarSampleDelays);
  800. }
  801. }
  802. static void initStatic__ImpromptuModular()
  803. {
  804. Plugin* const p = new Plugin;
  805. pluginInstance__ImpromptuModular = p;
  806. const StaticPluginLoader spl(p, "ImpromptuModular");
  807. if (spl.ok())
  808. {
  809. p->addModel(modelBigButtonSeq);
  810. p->addModel(modelBigButtonSeq2);
  811. p->addModel(modelChordKey);
  812. p->addModel(modelChordKeyExpander);
  813. p->addModel(modelClocked);
  814. p->addModel(modelClockedExpander);
  815. p->addModel(modelClkd);
  816. p->addModel(modelCvPad);
  817. p->addModel(modelFoundry);
  818. p->addModel(modelFoundryExpander);
  819. p->addModel(modelFourView);
  820. p->addModel(modelGateSeq64);
  821. p->addModel(modelGateSeq64Expander);
  822. p->addModel(modelHotkey);
  823. p->addModel(modelPart);
  824. p->addModel(modelPhraseSeq16);
  825. p->addModel(modelPhraseSeq32);
  826. p->addModel(modelPhraseSeqExpander);
  827. p->addModel(modelProbKey);
  828. // p->addModel(modelProbKeyExpander);
  829. p->addModel(modelSemiModularSynth);
  830. p->addModel(modelTact);
  831. p->addModel(modelTact1);
  832. p->addModel(modelTactG);
  833. p->addModel(modelTwelveKey);
  834. p->addModel(modelWriteSeq32);
  835. p->addModel(modelWriteSeq64);
  836. p->addModel(modelBlankPanel);
  837. }
  838. }
  839. static void initStatic__JW()
  840. {
  841. Plugin* const p = new Plugin;
  842. pluginInstance__JW = p;
  843. const StaticPluginLoader spl(p, "JW-Modules");
  844. if (spl.ok())
  845. {
  846. #define modelQuantizer modelJWQuantizer
  847. p->addModel(modelAdd5);
  848. p->addModel(modelBouncyBalls);
  849. p->addModel(modelCat);
  850. p->addModel(modelTree);
  851. p->addModel(modelFullScope);
  852. p->addModel(modelGridSeq);
  853. p->addModel(modelEightSeq);
  854. p->addModel(modelDivSeq);
  855. p->addModel(modelMinMax);
  856. p->addModel(modelNoteSeq);
  857. p->addModel(modelNoteSeqFu);
  858. p->addModel(modelNoteSeq16);
  859. p->addModel(modelTrigs);
  860. p->addModel(modelOnePattern);
  861. p->addModel(modelPatterns);
  862. p->addModel(modelQuantizer);
  863. p->addModel(modelSimpleClock);
  864. p->addModel(modelStr1ker);
  865. p->addModel(modelD1v1de);
  866. p->addModel(modelPres1t);
  867. p->addModel(modelThingThing);
  868. p->addModel(modelWavHead);
  869. p->addModel(modelXYPad);
  870. p->addModel(modelBlankPanel1hp);
  871. p->addModel(modelBlankPanelSmall);
  872. p->addModel(modelBlankPanelMedium);
  873. p->addModel(modelBlankPanelLarge);
  874. p->addModel(modelCoolBreeze);
  875. p->addModel(modelPete);
  876. #undef modelQuantizer
  877. }
  878. }
  879. static void initStatic__rackwindows()
  880. {
  881. Plugin* const p = new Plugin;
  882. pluginInstance__rackwindows = p;
  883. const StaticPluginLoader spl(p, "rackwindows");
  884. if (spl.ok())
  885. {
  886. // p->addModel(modelAcceleration);
  887. p->addModel(modelBitshiftgain);
  888. p->addModel(modelCapacitor);
  889. p->addModel(modelCapacitor_stereo);
  890. p->addModel(modelChorus);
  891. p->addModel(modelConsole);
  892. p->addModel(modelConsole_mm);
  893. p->addModel(modelDistance);
  894. p->addModel(modelGolem);
  895. p->addModel(modelHolt);
  896. p->addModel(modelHombre);
  897. p->addModel(modelInterstage);
  898. p->addModel(modelMonitoring);
  899. p->addModel(modelMv);
  900. p->addModel(modelRasp);
  901. p->addModel(modelReseq);
  902. p->addModel(modelTape);
  903. p->addModel(modelTremolo);
  904. p->addModel(modelVibrato);
  905. }
  906. }
  907. /* does not build against v2
  908. static void initStatic__ValleyAudio()
  909. {
  910. Plugin* const p = new Plugin;
  911. pluginInstance__ValleyAudio = p;
  912. const StaticPluginLoader spl(p, "ValleyAudio");
  913. if (spl.ok())
  914. {
  915. p->addModel(modelTopograph);
  916. p->addModel(modelUGraph);
  917. p->addModel(modelDexter);
  918. p->addModel(modelPlateau);
  919. p->addModel(modelInterzone);
  920. p->addModel(modelAmalgam);
  921. p->addModel(modelFeline);
  922. p->addModel(modelTerrorform);
  923. }
  924. }
  925. */
  926. static void initStatic__ZetaCarinaeModules()
  927. {
  928. Plugin* p = new Plugin;
  929. pluginInstance__ZetaCarinaeModules = p;
  930. const StaticPluginLoader spl(p, "ZetaCarinaeModules");
  931. if (spl.ok())
  932. {
  933. p->addModel(modelBrownianBridge);
  934. p->addModel(modelOrnsteinUhlenbeck);
  935. p->addModel(modelIOU);
  936. p->addModel(modelWarbler);
  937. p->addModel(modelRosenchance);
  938. p->addModel(modelGuildensTurn);
  939. p->addModel(modelRosslerRustler);
  940. p->addModel(modelFirefly);
  941. }
  942. }
  943. void initStaticPlugins()
  944. {
  945. initStatic__Core();
  946. initStatic__AmalgamatedHarmonics();
  947. initStatic__AnimatedCircuits();
  948. initStatic__AS();
  949. initStatic__AudibleInstruments();
  950. initStatic__Befaco();
  951. initStatic__Bidoo();
  952. initStatic__BogaudioModules();
  953. initStatic__Cardinal();
  954. initStatic__cf();
  955. initStatic__ESeries();
  956. initStatic__Fundamental();
  957. initStatic__GrandeModular();
  958. initStatic__ImpromptuModular();
  959. initStatic__JW();
  960. initStatic__rackwindows();
  961. /* does not build against v2
  962. initStatic__ValleyAudio();
  963. */
  964. initStatic__ZetaCarinaeModules();
  965. }
  966. void destroyStaticPlugins()
  967. {
  968. for (Plugin* p : plugins)
  969. delete p;
  970. plugins.clear();
  971. }
  972. }
  973. }