Audio plugin host https://kx.studio/carla
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.

827 lines
21KB

  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2012-2013 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 2 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 doc/GPL.txt file.
  16. */
  17. // for UINT32_MAX
  18. #define __STDC_LIMIT_MACROS
  19. #include <cstdint>
  20. #include "CarlaNative.hpp"
  21. #include "CarlaMIDI.h"
  22. #include "CarlaThread.hpp"
  23. #include "LinkedList.hpp"
  24. #include "zynaddsubfx/DSP/FFTwrapper.h"
  25. #include "zynaddsubfx/Misc/Master.h"
  26. #include "zynaddsubfx/Misc/Part.h"
  27. #include "zynaddsubfx/Misc/Util.h"
  28. #ifdef WANT_ZYNADDSUBFX_UI
  29. # ifdef override
  30. # define override_hack
  31. # undef override
  32. # endif
  33. # include "zynaddsubfx/UI/common.H"
  34. # include "zynaddsubfx/UI/MasterUI.h"
  35. # include <FL/Fl_Shared_Image.H>
  36. # include <FL/Fl_Tiled_Image.H>
  37. # include <FL/Fl_Theme.H>
  38. # ifdef override_hack
  39. # define override
  40. # undef override_hack
  41. # endif
  42. #endif
  43. #include <ctime>
  44. #include <set>
  45. #include <string>
  46. #ifdef HAVE_JUCE
  47. # include "juce_audio_basics.h"
  48. using juce::FloatVectorOperations;
  49. #endif
  50. #ifdef WANT_ZYNADDSUBFX_UI
  51. static Fl_Tiled_Image* gModuleBackdrop = nullptr;
  52. static CarlaString gPixmapPath;
  53. extern CarlaString gUiPixmapPath;
  54. void set_module_parameters(Fl_Widget* o)
  55. {
  56. CARLA_ASSERT(gModuleBackdrop != nullptr);
  57. o->box(FL_DOWN_FRAME);
  58. o->align(o->align() | FL_ALIGN_IMAGE_BACKDROP);
  59. o->color(FL_BLACK);
  60. o->labeltype(FL_SHADOW_LABEL);
  61. if (gModuleBackdrop != nullptr)
  62. o->image(gModuleBackdrop);
  63. }
  64. #endif
  65. // -----------------------------------------------------------------------
  66. class ZynAddSubFxPrograms
  67. {
  68. public:
  69. ZynAddSubFxPrograms()
  70. : fInitiated(false)
  71. {
  72. }
  73. ~ZynAddSubFxPrograms()
  74. {
  75. if (! fInitiated)
  76. return;
  77. for (auto it = fPrograms.begin(); it.valid(); it.next())
  78. {
  79. const ProgramInfo* const& pInfo(it.getValue());
  80. delete pInfo;
  81. }
  82. fPrograms.clear();
  83. FFT_cleanup();
  84. }
  85. void init()
  86. {
  87. if (fInitiated)
  88. return;
  89. fInitiated = true;
  90. fPrograms.append(new ProgramInfo(0, 0, "default"));
  91. Master& master(Master::getInstance());
  92. pthread_mutex_lock(&master.mutex);
  93. // refresh banks
  94. master.bank.rescanforbanks();
  95. for (uint32_t i=0, size = master.bank.banks.size(); i < size; ++i)
  96. {
  97. if (master.bank.banks[i].dir.empty())
  98. continue;
  99. master.bank.loadbank(master.bank.banks[i].dir);
  100. for (unsigned int instrument = 0; instrument < BANK_SIZE; ++instrument)
  101. {
  102. const std::string insName(master.bank.getname(instrument));
  103. if (insName.empty() || insName[0] == '\0' || insName[0] == ' ')
  104. continue;
  105. fPrograms.append(new ProgramInfo(i+1, instrument, insName.c_str()));
  106. }
  107. }
  108. pthread_mutex_unlock(&master.mutex);
  109. }
  110. void load(Master* const master, const uint8_t channel, const uint32_t bank, const uint32_t program)
  111. {
  112. if (bank == 0)
  113. {
  114. pthread_mutex_lock(&master->mutex);
  115. master->partonoff(channel, 1);
  116. master->part[channel]->defaults();
  117. master->part[channel]->applyparameters(false);
  118. pthread_mutex_unlock(&master->mutex);
  119. return;
  120. }
  121. const std::string& bankdir(master->bank.banks[bank-1].dir);
  122. if (! bankdir.empty())
  123. {
  124. pthread_mutex_lock(&master->mutex);
  125. master->partonoff(channel, 1);
  126. master->bank.loadbank(bankdir);
  127. master->bank.loadfromslot(program, master->part[channel]);
  128. master->part[channel]->applyparameters(false);
  129. pthread_mutex_unlock(&master->mutex);
  130. }
  131. }
  132. uint32_t count()
  133. {
  134. return fPrograms.count();
  135. }
  136. const NativeMidiProgram* getInfo(const uint32_t index)
  137. {
  138. if (index >= fPrograms.count())
  139. return nullptr;
  140. const ProgramInfo*& pInfo(fPrograms.getAt(index));
  141. fRetProgram.bank = pInfo->bank;
  142. fRetProgram.program = pInfo->prog;
  143. fRetProgram.name = pInfo->name;
  144. return &fRetProgram;
  145. }
  146. private:
  147. struct ProgramInfo {
  148. uint32_t bank;
  149. uint32_t prog;
  150. const char* name;
  151. ProgramInfo(uint32_t bank_, uint32_t prog_, const char* name_)
  152. : bank(bank_),
  153. prog(prog_),
  154. name(carla_strdup(name_)) {}
  155. ~ProgramInfo()
  156. {
  157. if (name != nullptr)
  158. {
  159. delete[] name;
  160. name = nullptr;
  161. }
  162. }
  163. #ifdef CARLA_PROPER_CPP11_SUPPORT
  164. ProgramInfo() = delete;
  165. ProgramInfo(ProgramInfo&) = delete;
  166. ProgramInfo(const ProgramInfo&) = delete;
  167. ProgramInfo& operator=(ProgramInfo&);
  168. ProgramInfo& operator=(const ProgramInfo&);
  169. #endif
  170. };
  171. bool fInitiated;
  172. NativeMidiProgram fRetProgram;
  173. LinkedList<const ProgramInfo*> fPrograms;
  174. CARLA_DECLARE_NON_COPY_CLASS(ZynAddSubFxPrograms)
  175. };
  176. static ZynAddSubFxPrograms sPrograms;
  177. // -----------------------------------------------------------------------
  178. class ZynAddSubFxInstanceCount
  179. {
  180. public:
  181. ZynAddSubFxInstanceCount()
  182. : fCount(0)
  183. {
  184. }
  185. ~ZynAddSubFxInstanceCount()
  186. {
  187. CARLA_ASSERT(fCount == 0);
  188. }
  189. void addOne(const NativeHostDescriptor* const host)
  190. {
  191. if (fCount++ == 0)
  192. {
  193. CARLA_ASSERT(synth == nullptr);
  194. CARLA_ASSERT(denormalkillbuf == nullptr);
  195. reinit(host);
  196. #ifdef WANT_ZYNADDSUBFX_UI
  197. if (gPixmapPath.isEmpty())
  198. {
  199. gPixmapPath = host->resourceDir;
  200. gPixmapPath += "/zynaddsubfx/";
  201. gUiPixmapPath = gPixmapPath;
  202. }
  203. #endif
  204. }
  205. }
  206. void removeOne()
  207. {
  208. if (--fCount == 0)
  209. {
  210. CARLA_ASSERT(synth != nullptr);
  211. CARLA_ASSERT(denormalkillbuf != nullptr);
  212. Master::deleteInstance();
  213. delete[] denormalkillbuf;
  214. denormalkillbuf = nullptr;
  215. delete synth;
  216. synth = nullptr;
  217. }
  218. }
  219. void reinit(const NativeHostDescriptor* const host)
  220. {
  221. Master::deleteInstance();
  222. if (denormalkillbuf != nullptr)
  223. {
  224. delete[] denormalkillbuf;
  225. denormalkillbuf = nullptr;
  226. }
  227. if (synth != nullptr)
  228. {
  229. delete synth;
  230. synth = nullptr;
  231. }
  232. synth = new SYNTH_T();
  233. synth->buffersize = host->get_buffer_size(host->handle);
  234. synth->samplerate = host->get_sample_rate(host->handle);
  235. if (synth->buffersize > 32)
  236. synth->buffersize = 32;
  237. synth->alias();
  238. config.init();
  239. config.cfg.SoundBufferSize = synth->buffersize;
  240. config.cfg.SampleRate = synth->samplerate;
  241. config.cfg.GzipCompression = 0;
  242. sprng(std::time(nullptr));
  243. denormalkillbuf = new float[synth->buffersize];
  244. for (int i=0; i < synth->buffersize; ++i)
  245. denormalkillbuf[i] = (RND - 0.5f) * 1e-16;
  246. Master::getInstance();
  247. }
  248. void maybeReinit(const NativeHostDescriptor* const host)
  249. {
  250. if (host->get_buffer_size(host->handle) == static_cast<uint32_t>(synth->buffersize) &&
  251. host->get_sample_rate(host->handle) == static_cast<double>(synth->samplerate))
  252. return;
  253. reinit(host);
  254. }
  255. private:
  256. int fCount;
  257. CARLA_DECLARE_NON_COPY_CLASS(ZynAddSubFxInstanceCount)
  258. };
  259. static ZynAddSubFxInstanceCount sInstanceCount;
  260. // -----------------------------------------------------------------------
  261. class ZynAddSubFxThread : public CarlaThread
  262. {
  263. public:
  264. ZynAddSubFxThread(Master* const master, const NativeHostDescriptor* const host)
  265. : CarlaThread("ZynAddSubFxThread"),
  266. fMaster(master),
  267. kHost(host),
  268. #ifdef WANT_ZYNADDSUBFX_UI
  269. fUi(nullptr),
  270. fUiClosed(0),
  271. fNextUiAction(-1),
  272. #endif
  273. fChangeProgram(false),
  274. fNextChannel(0),
  275. fNextBank(0),
  276. fNextProgram(0)
  277. {
  278. }
  279. ~ZynAddSubFxThread()
  280. {
  281. #ifdef WANT_ZYNADDSUBFX_UI
  282. // must be closed by now
  283. CARLA_ASSERT(fUi == nullptr);
  284. #endif
  285. }
  286. void loadProgramLater(const uint8_t channel, const uint32_t bank, const uint32_t program)
  287. {
  288. fNextChannel = channel;
  289. fNextBank = bank;
  290. fNextProgram = program;
  291. fChangeProgram = true;
  292. }
  293. void stopLoadProgramLater()
  294. {
  295. fChangeProgram = false;
  296. fNextChannel = 0;
  297. fNextBank = 0;
  298. fNextProgram = 0;
  299. }
  300. void setMaster(Master* const master)
  301. {
  302. fMaster = master;
  303. }
  304. #ifdef WANT_ZYNADDSUBFX_UI
  305. void uiHide()
  306. {
  307. fNextUiAction = 0;
  308. }
  309. void uiShow()
  310. {
  311. fNextUiAction = 1;
  312. }
  313. void uiRepaint()
  314. {
  315. if (fUi != nullptr)
  316. fNextUiAction = 2;
  317. }
  318. void uiChangeName(const char* const name)
  319. {
  320. if (fUi != nullptr)
  321. {
  322. Fl::lock();
  323. fUi->masterwindow->label(name);
  324. Fl::unlock();
  325. }
  326. }
  327. #endif
  328. protected:
  329. void run() override
  330. {
  331. while (! shouldExit())
  332. {
  333. #ifdef WANT_ZYNADDSUBFX_UI
  334. Fl::lock();
  335. if (fNextUiAction == 2) // repaint
  336. {
  337. CARLA_ASSERT(fUi != nullptr);
  338. if (fUi != nullptr)
  339. fUi->refresh_master_ui();
  340. }
  341. else if (fNextUiAction == 1) // init/show
  342. {
  343. static bool initialized = false;
  344. if (! initialized)
  345. {
  346. initialized = true;
  347. fl_register_images();
  348. Fl_Dial::default_style(Fl_Dial::PIXMAP_DIAL);
  349. if (Fl_Shared_Image* const img = Fl_Shared_Image::get(gPixmapPath + "knob.png"))
  350. Fl_Dial::default_image(img);
  351. if (Fl_Shared_Image* const img = Fl_Shared_Image::get(gPixmapPath + "window_backdrop.png"))
  352. Fl::scheme_bg(new Fl_Tiled_Image(img));
  353. if(Fl_Shared_Image* const img = Fl_Shared_Image::get(gPixmapPath + "module_backdrop.png"))
  354. gModuleBackdrop = new Fl_Tiled_Image(img);
  355. Fl::background(50, 50, 50);
  356. Fl::background2(70, 70, 70);
  357. Fl::foreground(255, 255, 255);
  358. Fl_Theme::set("Cairo");
  359. }
  360. CARLA_ASSERT(fUi == nullptr);
  361. if (fUi == nullptr)
  362. {
  363. fUiClosed = 0;
  364. fUi = new MasterUI(fMaster, &fUiClosed);
  365. fUi->masterwindow->label(kHost->uiName);
  366. fUi->showUI();
  367. }
  368. }
  369. else if (fNextUiAction == 0) // close
  370. {
  371. CARLA_ASSERT(fUi != nullptr);
  372. if (fUi != nullptr)
  373. {
  374. delete fUi;
  375. fUi = nullptr;
  376. }
  377. }
  378. fNextUiAction = -1;
  379. if (fUiClosed != 0)
  380. {
  381. fUiClosed = 0;
  382. fNextUiAction = 0;
  383. kHost->ui_closed(kHost->handle);
  384. }
  385. Fl::check();
  386. Fl::unlock();
  387. #endif
  388. if (fChangeProgram)
  389. {
  390. fChangeProgram = false;
  391. sPrograms.load(fMaster, fNextChannel, fNextBank, fNextProgram);
  392. fNextChannel = 0;
  393. fNextBank = 0;
  394. fNextProgram = 0;
  395. #ifdef WANT_ZYNADDSUBFX_UI
  396. if (fUi != nullptr)
  397. {
  398. Fl::lock();
  399. fUi->refresh_master_ui();
  400. Fl::unlock();
  401. }
  402. #endif
  403. carla_msleep(15);
  404. }
  405. else
  406. {
  407. carla_msleep(30);
  408. }
  409. }
  410. #ifdef WANT_ZYNADDSUBFX_UI
  411. if (shouldExit() || fUi != nullptr)
  412. {
  413. Fl::lock();
  414. delete fUi;
  415. fUi = nullptr;
  416. Fl::check();
  417. Fl::unlock();
  418. }
  419. #endif
  420. }
  421. private:
  422. Master* fMaster;
  423. const NativeHostDescriptor* const kHost;
  424. #ifdef WANT_ZYNADDSUBFX_UI
  425. MasterUI* fUi;
  426. int fUiClosed;
  427. volatile int fNextUiAction;
  428. #endif
  429. volatile bool fChangeProgram;
  430. volatile uint8_t fNextChannel;
  431. volatile uint32_t fNextBank;
  432. volatile uint32_t fNextProgram;
  433. };
  434. // -----------------------------------------------------------------------
  435. class ZynAddSubFxPlugin : public NativePluginClass
  436. {
  437. public:
  438. ZynAddSubFxPlugin(const NativeHostDescriptor* const host)
  439. : NativePluginClass(host),
  440. fMaster(new Master()),
  441. fSampleRate(getSampleRate()),
  442. fIsActive(false),
  443. fThread(fMaster, host)
  444. {
  445. fThread.start();
  446. for (int i = 0; i < NUM_MIDI_PARTS; ++i)
  447. fMaster->partonoff(i, 1);
  448. sPrograms.init();
  449. }
  450. ~ZynAddSubFxPlugin() override
  451. {
  452. deleteMaster();
  453. }
  454. protected:
  455. // -------------------------------------------------------------------
  456. // Plugin midi-program calls
  457. uint32_t getMidiProgramCount() const override
  458. {
  459. return sPrograms.count();
  460. }
  461. const NativeMidiProgram* getMidiProgramInfo(const uint32_t index) const override
  462. {
  463. return sPrograms.getInfo(index);
  464. }
  465. // -------------------------------------------------------------------
  466. // Plugin state calls
  467. void setMidiProgram(const uint8_t channel, const uint32_t bank, const uint32_t program) override
  468. {
  469. if (bank >= fMaster->bank.banks.size())
  470. return;
  471. if (program >= BANK_SIZE)
  472. return;
  473. if (isOffline() || ! fIsActive)
  474. {
  475. sPrograms.load(fMaster, channel, bank, program);
  476. #ifdef WANT_ZYNADDSUBFX_UI
  477. fThread.uiRepaint();
  478. #endif
  479. }
  480. else
  481. fThread.loadProgramLater(channel, bank, program);
  482. }
  483. void setCustomData(const char* const key, const char* const value) override
  484. {
  485. CARLA_SAFE_ASSERT_RETURN(key != nullptr,);
  486. CARLA_SAFE_ASSERT_RETURN(value != nullptr,);
  487. if (std::strcmp(key, "CarlaAlternateFile1") == 0) // xmz
  488. fMaster->loadXML(value);
  489. else if (std::strcmp(key, "CarlaAlternateFile2") == 0) // xiz
  490. fMaster->part[0]->loadXMLinstrument(value);
  491. }
  492. // -------------------------------------------------------------------
  493. // Plugin process calls
  494. void activate() override
  495. {
  496. fIsActive = true;
  497. }
  498. void deactivate() override
  499. {
  500. fIsActive = false;
  501. }
  502. void process(float**, float** const outBuffer, const uint32_t frames, const NativeMidiEvent* const midiEvents, const uint32_t midiEventCount) override
  503. {
  504. if (pthread_mutex_trylock(&fMaster->mutex) != 0)
  505. {
  506. #ifdef HAVE_JUCE
  507. FloatVectorOperations::clear(outBuffer[0], frames);
  508. FloatVectorOperations::clear(outBuffer[1], frames);
  509. #else
  510. carla_zeroFloat(outBuffer[0], frames);
  511. carla_zeroFloat(outBuffer[1], frames);
  512. #endif
  513. return;
  514. }
  515. for (uint32_t i=0; i < midiEventCount; ++i)
  516. {
  517. const NativeMidiEvent* const midiEvent(&midiEvents[i]);
  518. const uint8_t status = MIDI_GET_STATUS_FROM_DATA(midiEvent->data);
  519. const uint8_t channel = MIDI_GET_CHANNEL_FROM_DATA(midiEvent->data);
  520. if (MIDI_IS_STATUS_NOTE_OFF(status))
  521. {
  522. const uint8_t note = midiEvent->data[1];
  523. fMaster->noteOff(channel, note);
  524. }
  525. else if (MIDI_IS_STATUS_NOTE_ON(status))
  526. {
  527. const uint8_t note = midiEvent->data[1];
  528. const uint8_t velo = midiEvent->data[2];
  529. fMaster->noteOn(channel, note, velo);
  530. }
  531. else if (MIDI_IS_STATUS_POLYPHONIC_AFTERTOUCH(status))
  532. {
  533. const uint8_t note = midiEvent->data[1];
  534. const uint8_t pressure = midiEvent->data[2];
  535. fMaster->polyphonicAftertouch(channel, note, pressure);
  536. }
  537. else if (MIDI_IS_STATUS_CONTROL_CHANGE(status))
  538. {
  539. const uint8_t control = midiEvent->data[1];
  540. const uint8_t value = midiEvent->data[2];
  541. fMaster->setController(channel, control, value);
  542. }
  543. else if (MIDI_IS_STATUS_PITCH_WHEEL_CONTROL(status))
  544. {
  545. const uint8_t lsb = midiEvent->data[1];
  546. const uint8_t msb = midiEvent->data[2];
  547. const int value = ((msb << 7) | lsb) - 8192;
  548. fMaster->setController(channel, C_pitchwheel, value);
  549. }
  550. }
  551. fMaster->GetAudioOutSamples(frames, fSampleRate, outBuffer[0], outBuffer[1]);
  552. pthread_mutex_unlock(&fMaster->mutex);
  553. }
  554. #ifdef WANT_ZYNADDSUBFX_UI
  555. // -------------------------------------------------------------------
  556. // Plugin UI calls
  557. void uiShow(const bool show) override
  558. {
  559. if (show)
  560. fThread.uiShow();
  561. else
  562. fThread.uiHide();
  563. }
  564. #endif
  565. // -------------------------------------------------------------------
  566. // Plugin state calls
  567. char* getState() const override
  568. {
  569. config.save();
  570. char* data = nullptr;
  571. fMaster->getalldata(&data);
  572. return data;
  573. }
  574. void setState(const char* const data) override
  575. {
  576. fThread.stopLoadProgramLater();
  577. fMaster->putalldata((char*)data, 0);
  578. fMaster->applyparameters(true);
  579. }
  580. // -------------------------------------------------------------------
  581. // Plugin dispatcher
  582. // TODO - save&load current state
  583. void bufferSizeChanged(const uint32_t) final
  584. {
  585. deleteMaster();
  586. sInstanceCount.maybeReinit(getHostHandle());
  587. initMaster();
  588. }
  589. void sampleRateChanged(const double sampleRate) final
  590. {
  591. fSampleRate = sampleRate;
  592. deleteMaster();
  593. sInstanceCount.maybeReinit(getHostHandle());
  594. initMaster();
  595. }
  596. void initMaster()
  597. {
  598. fMaster = new Master();
  599. fThread.setMaster(fMaster);
  600. fThread.start();
  601. for (int i = 0; i < NUM_MIDI_PARTS; ++i)
  602. fMaster->partonoff(i, 1);
  603. }
  604. void deleteMaster()
  605. {
  606. //ensure that everything has stopped
  607. pthread_mutex_lock(&fMaster->mutex);
  608. pthread_mutex_unlock(&fMaster->mutex);
  609. fThread.stop(-1);
  610. delete fMaster;
  611. fMaster = nullptr;
  612. }
  613. #ifdef WANT_ZYNADDSUBFX_UI
  614. void uiNameChanged(const char* const uiName) override
  615. {
  616. fThread.uiChangeName(uiName);
  617. }
  618. #endif
  619. // -------------------------------------------------------------------
  620. private:
  621. Master* fMaster;
  622. unsigned fSampleRate;
  623. bool fIsActive;
  624. ZynAddSubFxThread fThread;
  625. public:
  626. static NativePluginHandle _instantiate(const NativeHostDescriptor* host)
  627. {
  628. sInstanceCount.addOne(host);
  629. return new ZynAddSubFxPlugin(host);
  630. }
  631. static void _cleanup(NativePluginHandle handle)
  632. {
  633. delete (ZynAddSubFxPlugin*)handle;
  634. sInstanceCount.removeOne();
  635. }
  636. CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ZynAddSubFxPlugin)
  637. };
  638. // -----------------------------------------------------------------------
  639. static const NativePluginDescriptor zynaddsubfxDesc = {
  640. /* category */ PLUGIN_CATEGORY_SYNTH,
  641. #ifdef WANT_ZYNADDSUBFX_UI
  642. /* hints */ static_cast<NativePluginHints>(PLUGIN_IS_SYNTH|PLUGIN_HAS_UI|PLUGIN_USES_STATE),
  643. #else
  644. /* hints */ static_cast<NativePluginHints>(PLUGIN_IS_SYNTH|PLUGIN_USES_STATE),
  645. #endif
  646. /* supports */ static_cast<NativePluginSupports>(PLUGIN_SUPPORTS_CONTROL_CHANGES|PLUGIN_SUPPORTS_NOTE_AFTERTOUCH|PLUGIN_SUPPORTS_PITCHBEND|PLUGIN_SUPPORTS_ALL_SOUND_OFF),
  647. /* audioIns */ 0,
  648. /* audioOuts */ 2,
  649. /* midiIns */ 1,
  650. /* midiOuts */ 0,
  651. /* paramIns */ 0,
  652. /* paramOuts */ 0,
  653. /* name */ "ZynAddSubFX",
  654. /* label */ "zynaddsubfx",
  655. /* maker */ "falkTX",
  656. /* copyright */ "GNU GPL v2+",
  657. PluginDescriptorFILL(ZynAddSubFxPlugin)
  658. };
  659. // -----------------------------------------------------------------------
  660. CARLA_EXPORT
  661. void carla_register_native_plugin_zynaddsubfx_synth()
  662. {
  663. carla_register_native_plugin(&zynaddsubfxDesc);
  664. }
  665. // -----------------------------------------------------------------------