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.

_data.cpp 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2012-2017 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. #include "CarlaNative.h"
  18. #include "CarlaMIDI.h"
  19. #include "CarlaUtils.hpp"
  20. #ifndef CARLA_EXTERNAL_PLUGINS_INCLUDED_DIRECTLY
  21. # define DESCFUNCS \
  22. nullptr, nullptr, nullptr, nullptr, nullptr, \
  23. nullptr, nullptr, nullptr, nullptr, nullptr, \
  24. nullptr, nullptr, nullptr, nullptr, nullptr, \
  25. nullptr, nullptr, nullptr, nullptr, nullptr, nullptr
  26. static const NativePluginDescriptor sNativePluginDescriptors[] = {
  27. #endif
  28. // --------------------------------------------------------------------------------------------------------------------
  29. // DISTRHO Plugins
  30. {
  31. /* category */ NATIVE_PLUGIN_CATEGORY_EQ,
  32. #ifdef HAVE_DGL
  33. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  34. |NATIVE_PLUGIN_HAS_UI
  35. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  36. |NATIVE_PLUGIN_USES_PARENT_ID),
  37. #else
  38. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE),
  39. #endif
  40. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  41. /* audioIns */ 2,
  42. /* audioOuts */ 2,
  43. /* midiIns */ 0,
  44. /* midiOuts */ 0,
  45. /* paramIns */ 6,
  46. /* paramOuts */ 0,
  47. /* name */ "3 Band EQ",
  48. /* label */ "3bandeq",
  49. /* maker */ "falkTX, Michael Gruhn",
  50. /* copyright */ "LGPL",
  51. DESCFUNCS
  52. },
  53. {
  54. /* category */ NATIVE_PLUGIN_CATEGORY_EQ,
  55. #ifdef HAVE_DGL
  56. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  57. |NATIVE_PLUGIN_HAS_UI
  58. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  59. |NATIVE_PLUGIN_USES_PARENT_ID),
  60. #else
  61. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE),
  62. #endif
  63. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  64. /* audioIns */ 2,
  65. /* audioOuts */ 6,
  66. /* midiIns */ 0,
  67. /* midiOuts */ 0,
  68. /* paramIns */ 6,
  69. /* paramOuts */ 0,
  70. /* name */ "3 Band Splitter",
  71. /* label */ "3bandsplitter",
  72. /* maker */ "falkTX, Michael Gruhn",
  73. /* copyright */ "LGPL",
  74. DESCFUNCS
  75. },
  76. {
  77. /* category */ NATIVE_PLUGIN_CATEGORY_SYNTH,
  78. #ifdef HAVE_DGL
  79. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  80. |NATIVE_PLUGIN_IS_SYNTH
  81. |NATIVE_PLUGIN_HAS_UI
  82. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  83. |NATIVE_PLUGIN_USES_PARENT_ID),
  84. #else
  85. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  86. |NATIVE_PLUGIN_IS_SYNTH),
  87. #endif
  88. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  89. /* audioIns */ 0,
  90. /* audioOuts */ 1,
  91. /* midiIns */ 1,
  92. /* midiOuts */ 0,
  93. /* paramIns */ 1,
  94. /* paramOuts */ 0,
  95. /* name */ "Kars",
  96. /* label */ "kars",
  97. /* maker */ "falkTX, Chris Cannam",
  98. /* copyright */ "ISC",
  99. DESCFUNCS
  100. },
  101. {
  102. /* category */ NATIVE_PLUGIN_CATEGORY_SYNTH,
  103. #ifdef HAVE_DGL
  104. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  105. |NATIVE_PLUGIN_IS_SYNTH
  106. |NATIVE_PLUGIN_HAS_UI
  107. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  108. |NATIVE_PLUGIN_USES_PARENT_ID),
  109. #else
  110. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  111. |NATIVE_PLUGIN_IS_SYNTH),
  112. #endif
  113. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_CONTROL_CHANGES
  114. |NATIVE_PLUGIN_SUPPORTS_ALL_SOUND_OFF),
  115. /* audioIns */ 0,
  116. /* audioOuts */ 1,
  117. /* midiIns */ 1,
  118. /* midiOuts */ 0,
  119. /* paramIns */ 8,
  120. /* paramOuts */ 0,
  121. /* name */ "Nekobi",
  122. /* label */ "nekobi",
  123. /* maker */ "falkTX, Sean Bolton and others",
  124. /* copyright */ "GPL v2+",
  125. DESCFUNCS
  126. },
  127. {
  128. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  129. #ifdef HAVE_DGL
  130. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  131. |NATIVE_PLUGIN_HAS_UI
  132. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  133. |NATIVE_PLUGIN_USES_PARENT_ID),
  134. #else
  135. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE),
  136. #endif
  137. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  138. /* audioIns */ 2,
  139. /* audioOuts */ 2,
  140. /* midiIns */ 0,
  141. /* midiOuts */ 0,
  142. /* paramIns */ 2,
  143. /* paramOuts */ 0,
  144. /* name */ "Ping Pong Pan",
  145. /* label */ "pingpongpan",
  146. /* maker */ "falkTX, Michael Gruhn",
  147. /* copyright */ "LGPL",
  148. DESCFUNCS
  149. },
  150. #ifdef HAVE_DGL
  151. #ifdef HAVE_PROJECTM
  152. {
  153. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  154. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  155. |NATIVE_PLUGIN_HAS_UI
  156. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  157. |NATIVE_PLUGIN_USES_PARENT_ID),
  158. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  159. /* audioIns */ 1,
  160. /* audioOuts */ 1,
  161. /* midiIns */ 0,
  162. /* midiOuts */ 0,
  163. /* paramIns */ 0,
  164. /* paramOuts */ 0,
  165. /* name */ "ProM",
  166. /* label */ "prom",
  167. /* maker */ "falkTX",
  168. /* copyright */ "LGPL",
  169. DESCFUNCS
  170. },
  171. #endif // HAVE_PROJECTM
  172. #endif // HAVE_DGL
  173. // --------------------------------------------------------------------------------------------------------------------
  174. // DISTRHO plugins (Juice)
  175. {
  176. /* category */ NATIVE_PLUGIN_CATEGORY_DYNAMICS,
  177. #ifdef HAVE_DGL
  178. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  179. |NATIVE_PLUGIN_HAS_UI
  180. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  181. |NATIVE_PLUGIN_USES_PARENT_ID
  182. |NATIVE_PLUGIN_USES_TIME),
  183. #else
  184. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  185. |NATIVE_PLUGIN_USES_TIME),
  186. #endif
  187. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  188. /* audioIns */ 2,
  189. /* audioOuts */ 2,
  190. /* midiIns */ 0,
  191. /* midiOuts */ 0,
  192. /* paramIns */ 6,
  193. /* paramOuts */ 0,
  194. /* name */ "WobbleJuice",
  195. /* label */ "wobblejuice",
  196. /* maker */ "Andre Sklenar",
  197. /* copyright */ "GPL v2+",
  198. DESCFUNCS
  199. },
  200. {
  201. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  202. #ifdef HAVE_DGL
  203. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  204. |NATIVE_PLUGIN_HAS_UI
  205. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  206. |NATIVE_PLUGIN_USES_PARENT_ID
  207. |NATIVE_PLUGIN_USES_TIME),
  208. #else
  209. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  210. |NATIVE_PLUGIN_USES_TIME),
  211. #endif
  212. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  213. /* audioIns */ 8,
  214. /* audioOuts */ 2,
  215. /* midiIns */ 0,
  216. /* midiOuts */ 0,
  217. /* paramIns */ 13,
  218. /* paramOuts */ 4,
  219. /* name */ "VectorJuice",
  220. /* label */ "vectorjuice",
  221. /* maker */ "Andre Sklenar",
  222. /* copyright */ "GPL v2+",
  223. DESCFUNCS
  224. },
  225. // --------------------------------------------------------------------------------------------------------------------
  226. // ZynAddSubFX
  227. #ifdef HAVE_ZYN_DEPS
  228. {
  229. /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
  230. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  231. |NATIVE_PLUGIN_USES_PANNING
  232. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  233. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  234. /* audioIns */ 2,
  235. /* audioOuts */ 2,
  236. /* midiIns */ 0,
  237. /* midiOuts */ 0,
  238. /* paramIns */ 11-2,
  239. /* paramOuts */ 0,
  240. /* name */ "ZynAlienWah",
  241. /* label */ "zynalienwah",
  242. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  243. /* copyright */ "GNU GPL v2+",
  244. DESCFUNCS
  245. },
  246. {
  247. /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
  248. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  249. |NATIVE_PLUGIN_USES_PANNING
  250. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  251. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  252. /* audioIns */ 2,
  253. /* audioOuts */ 2,
  254. /* midiIns */ 0,
  255. /* midiOuts */ 0,
  256. /* paramIns */ 12-2,
  257. /* paramOuts */ 0,
  258. /* name */ "ZynChorus",
  259. /* label */ "zynchorus",
  260. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  261. /* copyright */ "GNU GPL v2+",
  262. DESCFUNCS
  263. },
  264. {
  265. /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
  266. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING
  267. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  268. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  269. /* audioIns */ 2,
  270. /* audioOuts */ 2,
  271. /* midiIns */ 0,
  272. /* midiOuts */ 0,
  273. /* paramIns */ 11-2,
  274. /* paramOuts */ 0,
  275. /* name */ "ZynDistortion",
  276. /* label */ "zyndistortion",
  277. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  278. /* copyright */ "GNU GPL v2+",
  279. DESCFUNCS
  280. },
  281. {
  282. /* category */ NATIVE_PLUGIN_CATEGORY_FILTER,
  283. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING
  284. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  285. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  286. /* audioIns */ 2,
  287. /* audioOuts */ 2,
  288. /* midiIns */ 0,
  289. /* midiOuts */ 0,
  290. /* paramIns */ 10-2,
  291. /* paramOuts */ 0,
  292. /* name */ "ZynDynamicFilter",
  293. /* label */ "zyndynamicfilter",
  294. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  295. /* copyright */ "GNU GPL v2+",
  296. DESCFUNCS
  297. },
  298. {
  299. /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
  300. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  301. |NATIVE_PLUGIN_USES_PANNING
  302. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  303. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  304. /* audioIns */ 2,
  305. /* audioOuts */ 2,
  306. /* midiIns */ 0,
  307. /* midiOuts */ 0,
  308. /* paramIns */ 7-2,
  309. /* paramOuts */ 0,
  310. /* name */ "ZynEcho",
  311. /* label */ "zynecho",
  312. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  313. /* copyright */ "GNU GPL v2+",
  314. DESCFUNCS
  315. },
  316. {
  317. /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
  318. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING
  319. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  320. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  321. /* audioIns */ 2,
  322. /* audioOuts */ 2,
  323. /* midiIns */ 0,
  324. /* midiOuts */ 0,
  325. /* paramIns */ 15-2,
  326. /* paramOuts */ 0,
  327. /* name */ "ZynPhaser",
  328. /* label */ "zynphaser",
  329. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  330. /* copyright */ "GNU GPL v2+",
  331. DESCFUNCS
  332. },
  333. {
  334. /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
  335. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_USES_PANNING
  336. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  337. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  338. /* audioIns */ 2,
  339. /* audioOuts */ 2,
  340. /* midiIns */ 0,
  341. /* midiOuts */ 0,
  342. /* paramIns */ 13-2,
  343. /* paramOuts */ 0,
  344. /* name */ "ZynReverb",
  345. /* label */ "zynreverb",
  346. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  347. /* copyright */ "GNU GPL v2+",
  348. DESCFUNCS
  349. },
  350. # ifndef DISABLE_PLUGINS_FOR_WINDOWS_BUILD
  351. {
  352. /* category */ NATIVE_PLUGIN_CATEGORY_SYNTH,
  353. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  354. # ifdef HAVE_ZYN_UI_DEPS
  355. |NATIVE_PLUGIN_HAS_UI
  356. # endif
  357. |NATIVE_PLUGIN_USES_MULTI_PROGS
  358. |NATIVE_PLUGIN_USES_STATE),
  359. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_CONTROL_CHANGES
  360. |NATIVE_PLUGIN_SUPPORTS_NOTE_AFTERTOUCH
  361. |NATIVE_PLUGIN_SUPPORTS_PITCHBEND
  362. |NATIVE_PLUGIN_SUPPORTS_ALL_SOUND_OFF),
  363. /* audioIns */ 0,
  364. /* audioOuts */ 2,
  365. /* midiIns */ 1,
  366. /* midiOuts */ 0,
  367. /* paramIns */ 6,
  368. /* paramOuts */ 0,
  369. /* name */ "ZynAddSubFX",
  370. /* label */ "zynaddsubfx",
  371. /* maker */ "falkTX, Mark McCurry, Nasca Octavian Paul",
  372. /* copyright */ "GNU GPL v2+",
  373. DESCFUNCS
  374. },
  375. # endif // ! DISABLE_PLUGINS_FOR_WINDOWS_BUILD
  376. #endif // HAVE_ZYN_DEPS
  377. // --------------------------------------------------------------------------------------------------------------------
  378. // Experimental plugins
  379. #ifdef HAVE_EXPERIMENTAL_PLUGINS
  380. {
  381. /* category */ NATIVE_PLUGIN_CATEGORY_MODULATOR,
  382. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  383. |NATIVE_PLUGIN_HAS_UI
  384. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS
  385. |NATIVE_PLUGIN_USES_STATE),
  386. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  387. /* audioIns */ 1,
  388. /* audioOuts */ 1,
  389. /* midiIns */ 1,
  390. /* midiOuts */ 0,
  391. /* paramIns */ 6,
  392. /* paramOuts */ 0,
  393. /* name */ "AT1",
  394. /* label */ "at1",
  395. /* maker */ "falkTX, Fons Adriaensen",
  396. /* copyright */ "GPL v2+",
  397. DESCFUNCS
  398. },
  399. {
  400. /* category */ NATIVE_PLUGIN_CATEGORY_FILTER,
  401. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  402. |NATIVE_PLUGIN_HAS_UI
  403. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  404. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  405. /* audioIns */ 2,
  406. /* audioOuts */ 2,
  407. /* midiIns */ 0,
  408. /* midiOuts */ 0,
  409. /* paramIns */ 6,
  410. /* paramOuts */ 0,
  411. /* name */ "BLS1",
  412. /* label */ "bls1",
  413. /* maker */ "falkTX, Fons Adriaensen",
  414. /* copyright */ "GPL v2+",
  415. DESCFUNCS
  416. },
  417. {
  418. /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
  419. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  420. |NATIVE_PLUGIN_HAS_UI
  421. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  422. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  423. /* audioIns */ 2,
  424. /* audioOuts */ 4,
  425. /* midiIns */ 0,
  426. /* midiOuts */ 0,
  427. /* paramIns */ 10,
  428. /* paramOuts */ 0,
  429. /* name */ "REV1 (Ambisonic)",
  430. /* label */ "rev1-ambisonic",
  431. /* maker */ "falkTX, Fons Adriaensen",
  432. /* copyright */ "GPL v2+",
  433. DESCFUNCS
  434. },
  435. {
  436. /* category */ NATIVE_PLUGIN_CATEGORY_DELAY,
  437. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  438. |NATIVE_PLUGIN_HAS_UI
  439. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  440. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  441. /* audioIns */ 2,
  442. /* audioOuts */ 2,
  443. /* midiIns */ 0,
  444. /* midiOuts */ 0,
  445. /* paramIns */ 10,
  446. /* paramOuts */ 0,
  447. /* name */ "REV1 (Stereo)",
  448. /* label */ "rev1-stereo",
  449. /* maker */ "falkTX, Fons Adriaensen",
  450. /* copyright */ "GPL v2+",
  451. DESCFUNCS
  452. },
  453. #endif // HAVE_EXPERIMENTAL_PLUGINS
  454. // --------------------------------------------------------------------------------------------------------------------
  455. #ifndef CARLA_EXTERNAL_PLUGINS_INCLUDED_DIRECTLY
  456. }
  457. #endif