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 19KB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. /*
  2. * Carla Native Plugins
  3. * Copyright (C) 2012-2019 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. #undef DESCFUNCS_WITHCV
  21. #undef DESCFUNCS_WITHOUTCV
  22. #define DESCFUNCS_WITHCV \
  23. nullptr, nullptr, nullptr, nullptr, nullptr, \
  24. nullptr, nullptr, nullptr, nullptr, nullptr, \
  25. nullptr, nullptr, nullptr, nullptr, nullptr, \
  26. nullptr, nullptr, nullptr, nullptr, nullptr, \
  27. nullptr, nullptr
  28. #define DESCFUNCS_WITHOUTCV \
  29. DESCFUNCS_WITHCV, 0, 0, nullptr, nullptr
  30. static const NativePluginDescriptor sNativePluginDescriptors[] = {
  31. // --------------------------------------------------------------------------------------------------------------------
  32. // Simple plugins
  33. {
  34. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  35. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  36. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  37. /* audioIns */ 1,
  38. /* audioOuts */ 1,
  39. /* midiIns */ 0,
  40. /* midiOuts */ 0,
  41. /* paramIns */ 1,
  42. /* paramOuts */ 0,
  43. /* name */ "Audio Gain (Mono)",
  44. /* label */ "audiogain",
  45. /* maker */ "falkTX",
  46. /* copyright */ "GNU GPL v2+",
  47. DESCFUNCS_WITHOUTCV
  48. },
  49. {
  50. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  51. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  52. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  53. /* audioIns */ 2,
  54. /* audioOuts */ 2,
  55. /* midiIns */ 0,
  56. /* midiOuts */ 0,
  57. /* paramIns */ 3,
  58. /* paramOuts */ 0,
  59. /* name */ "Audio Gain (Stereo)",
  60. /* label */ "audiogain_s",
  61. /* maker */ "falkTX",
  62. /* copyright */ "GNU GPL v2+",
  63. DESCFUNCS_WITHOUTCV
  64. },
  65. {
  66. /* category */ NATIVE_PLUGIN_CATEGORY_NONE,
  67. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  68. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  69. /* audioIns */ 1,
  70. /* audioOuts */ 1,
  71. /* midiIns */ 0,
  72. /* midiOuts */ 0,
  73. /* paramIns */ 0,
  74. /* paramOuts */ 0,
  75. /* name */ "Bypass",
  76. /* label */ "bypass",
  77. /* maker */ "falkTX",
  78. /* copyright */ "GNU GPL v2+",
  79. DESCFUNCS_WITHOUTCV
  80. },
  81. {
  82. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  83. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  84. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  85. /* audioIns */ 0,
  86. /* audioOuts */ 0,
  87. /* midiIns */ 0,
  88. /* midiOuts */ 0,
  89. /* paramIns */ 5-1,
  90. /* paramOuts */ 1,
  91. /* name */ "LFO",
  92. /* label */ "lfo",
  93. /* maker */ "falkTX",
  94. /* copyright */ "GNU GPL v2+",
  95. DESCFUNCS_WITHOUTCV
  96. },
  97. {
  98. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  99. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  100. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  101. /* audioIns */ 0,
  102. /* audioOuts */ 0,
  103. /* midiIns */ 1,
  104. /* midiOuts */ 1,
  105. /* paramIns */ 0,
  106. /* paramOuts */ 0,
  107. /* name */ "MIDI Channel Filter",
  108. /* label */ "midichanfilter",
  109. /* maker */ "falkTX",
  110. /* copyright */ "GNU GPL v2+",
  111. DESCFUNCS_WITHOUTCV
  112. },
  113. {
  114. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  115. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  116. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  117. /* audioIns */ 0,
  118. /* audioOuts */ 0,
  119. /* midiIns */ 1,
  120. /* midiOuts */ 2,
  121. /* paramIns */ 0,
  122. /* paramOuts */ 0,
  123. /* name */ "MIDI Channel A/B",
  124. /* label */ "midichanab",
  125. /* maker */ "Milk Brewster",
  126. /* copyright */ "GNU GPL v2+",
  127. DESCFUNCS_WITHOUTCV
  128. },
  129. {
  130. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  131. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  132. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  133. /* audioIns */ 0,
  134. /* audioOuts */ 0,
  135. /* midiIns */ 1,
  136. /* midiOuts */ 1,
  137. /* paramIns */ 0,
  138. /* paramOuts */ 0,
  139. /* name */ "MIDI Gain",
  140. /* label */ "midigain",
  141. /* maker */ "falkTX",
  142. /* copyright */ "GNU GPL v2+",
  143. DESCFUNCS_WITHOUTCV
  144. },
  145. {
  146. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  147. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  148. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  149. /* audioIns */ 0,
  150. /* audioOuts */ 0,
  151. /* midiIns */ MAX_MIDI_CHANNELS,
  152. /* midiOuts */ 1,
  153. /* paramIns */ 0,
  154. /* paramOuts */ 0,
  155. /* name */ "MIDI Join",
  156. /* label */ "midijoin",
  157. /* maker */ "falkTX",
  158. /* copyright */ "GNU GPL v2+",
  159. DESCFUNCS_WITHOUTCV
  160. },
  161. {
  162. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  163. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  164. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  165. /* audioIns */ 0,
  166. /* audioOuts */ 0,
  167. /* midiIns */ 1,
  168. /* midiOuts */ MAX_MIDI_CHANNELS,
  169. /* paramIns */ 0,
  170. /* paramOuts */ 0,
  171. /* name */ "MIDI Split",
  172. /* label */ "midisplit",
  173. /* maker */ "falkTX",
  174. /* copyright */ "GNU GPL v2+",
  175. DESCFUNCS_WITHOUTCV
  176. },
  177. {
  178. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  179. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  180. /* supports */ NATIVE_PLUGIN_SUPPORTS_ALL_SOUND_OFF,
  181. /* audioIns */ 0,
  182. /* audioOuts */ 0,
  183. /* midiIns */ 1,
  184. /* midiOuts */ 0,
  185. /* paramIns */ 4,
  186. /* paramOuts */ 0,
  187. /* name */ "MIDI to CV",
  188. /* label */ "midi2cv",
  189. /* maker */ "falkTX, Bram Giesen, Jarno Verheesen",
  190. /* copyright */ "GNU GPL v2+",
  191. DESCFUNCS_WITHCV,
  192. /* cvIns */ 0,
  193. /* cvOuts */ 3,
  194. /* bufnamefn */ nullptr,
  195. /* bufrangefn */ nullptr
  196. },
  197. {
  198. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  199. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  200. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  201. /* audioIns */ 0,
  202. /* audioOuts */ 0,
  203. /* midiIns */ 1,
  204. /* midiOuts */ 1,
  205. /* paramIns */ 0,
  206. /* paramOuts */ 0,
  207. /* name */ "MIDI Through",
  208. /* label */ "midithrough",
  209. /* maker */ "falkTX",
  210. /* copyright */ "GNU GPL v2+",
  211. DESCFUNCS_WITHOUTCV
  212. },
  213. {
  214. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  215. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  216. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  217. /* audioIns */ 0,
  218. /* audioOuts */ 0,
  219. /* midiIns */ 1,
  220. /* midiOuts */ 1,
  221. /* paramIns */ 2,
  222. /* paramOuts */ 0,
  223. /* name */ "MIDI Transpose",
  224. /* label */ "miditranspose",
  225. /* maker */ "falkTX",
  226. /* copyright */ "GNU GPL v2+",
  227. DESCFUNCS_WITHOUTCV
  228. },
  229. {
  230. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  231. /* hints */ NATIVE_PLUGIN_IS_RTSAFE,
  232. /* supports */ NATIVE_PLUGIN_SUPPORTS_EVERYTHING,
  233. /* audioIns */ 0,
  234. /* audioOuts */ 0,
  235. /* midiIns */ 1,
  236. /* midiOuts */ 1,
  237. /* paramIns */ 1,
  238. /* paramOuts */ 0,
  239. /* name */ "MIDI Channelize",
  240. /* label */ "midichannelize",
  241. /* maker */ "falkTX",
  242. /* copyright */ "GNU GPL v2+",
  243. DESCFUNCS_WITHOUTCV
  244. },
  245. // --------------------------------------------------------------------------------------------------------------------
  246. // Audio file
  247. {
  248. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  249. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  250. |NATIVE_PLUGIN_HAS_INLINE_DISPLAY
  251. |NATIVE_PLUGIN_HAS_UI
  252. |NATIVE_PLUGIN_NEEDS_UI_OPEN_SAVE
  253. |NATIVE_PLUGIN_REQUESTS_IDLE
  254. |NATIVE_PLUGIN_USES_TIME),
  255. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  256. /* audioIns */ 0,
  257. /* audioOuts */ 2,
  258. /* midiIns */ 0,
  259. /* midiOuts */ 0,
  260. /* paramIns */ 1,
  261. /* paramOuts */ 0,
  262. /* name */ "Audio File",
  263. /* label */ "audiofile",
  264. /* maker */ "falkTX",
  265. /* copyright */ "GNU GPL v2+",
  266. DESCFUNCS_WITHOUTCV
  267. },
  268. // --------------------------------------------------------------------------------------------------------------------
  269. // MIDI file and sequencer
  270. {
  271. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  272. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  273. |NATIVE_PLUGIN_HAS_UI
  274. |NATIVE_PLUGIN_NEEDS_UI_OPEN_SAVE
  275. |NATIVE_PLUGIN_REQUESTS_IDLE
  276. |NATIVE_PLUGIN_USES_STATE
  277. |NATIVE_PLUGIN_USES_TIME),
  278. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  279. /* audioIns */ 0,
  280. /* audioOuts */ 0,
  281. /* midiIns */ 0,
  282. /* midiOuts */ 1,
  283. /* paramIns */ 0,
  284. /* paramOuts */ 0,
  285. /* name */ "MIDI File",
  286. /* label */ "midifile",
  287. /* maker */ "falkTX",
  288. /* copyright */ "GNU GPL v2+",
  289. DESCFUNCS_WITHOUTCV
  290. },
  291. #ifdef HAVE_PYQT
  292. {
  293. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  294. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  295. |NATIVE_PLUGIN_HAS_UI
  296. |NATIVE_PLUGIN_USES_STATE
  297. |NATIVE_PLUGIN_USES_TIME),
  298. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  299. /* audioIns */ 0,
  300. /* audioOuts */ 0,
  301. /* midiIns */ 0,
  302. /* midiOuts */ 1,
  303. /* paramIns */ 4,
  304. /* paramOuts */ 0,
  305. /* name */ "MIDI Pattern",
  306. /* label */ "midipattern",
  307. /* maker */ "falkTX, tatch",
  308. /* copyright */ "GNU GPL v2+",
  309. DESCFUNCS_WITHOUTCV
  310. },
  311. #endif
  312. // --------------------------------------------------------------------------------------------------------------------
  313. // Carla
  314. #ifdef HAVE_PYQT
  315. {
  316. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  317. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  318. |NATIVE_PLUGIN_HAS_UI
  319. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  320. |NATIVE_PLUGIN_USES_STATE
  321. |NATIVE_PLUGIN_USES_TIME),
  322. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  323. /* audioIns */ 2,
  324. /* audioOuts */ 2,
  325. /* midiIns */ 1,
  326. /* midiOuts */ 1,
  327. /* paramIns */ 100,
  328. /* paramOuts */ 10,
  329. /* name */ "Carla-Rack",
  330. /* label */ "carlarack",
  331. /* maker */ "falkTX",
  332. /* copyright */ "GNU GPL v2+",
  333. DESCFUNCS_WITHOUTCV
  334. },
  335. {
  336. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  337. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  338. |NATIVE_PLUGIN_HAS_UI
  339. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  340. |NATIVE_PLUGIN_USES_STATE
  341. |NATIVE_PLUGIN_USES_TIME),
  342. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  343. /* audioIns */ 2,
  344. /* audioOuts */ 2,
  345. /* midiIns */ 1,
  346. /* midiOuts */ 0,
  347. /* paramIns */ 100,
  348. /* paramOuts */ 10,
  349. /* name */ "Carla-Rack (no midi out)",
  350. /* label */ "carlarack-nomidiout",
  351. /* maker */ "falkTX",
  352. /* copyright */ "GNU GPL v2+",
  353. DESCFUNCS_WITHOUTCV
  354. },
  355. {
  356. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  357. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  358. |NATIVE_PLUGIN_HAS_UI
  359. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  360. |NATIVE_PLUGIN_USES_STATE
  361. |NATIVE_PLUGIN_USES_TIME),
  362. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  363. /* audioIns */ 2,
  364. /* audioOuts */ 2,
  365. /* midiIns */ 1,
  366. /* midiOuts */ 1,
  367. /* paramIns */ 100,
  368. /* paramOuts */ 10,
  369. /* name */ "Carla-Patchbay",
  370. /* label */ "carlapatchbay",
  371. /* maker */ "falkTX",
  372. /* copyright */ "GNU GPL v2+",
  373. DESCFUNCS_WITHOUTCV
  374. },
  375. {
  376. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  377. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  378. |NATIVE_PLUGIN_HAS_UI
  379. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  380. |NATIVE_PLUGIN_USES_STATE
  381. |NATIVE_PLUGIN_USES_TIME),
  382. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  383. /* audioIns */ 3,
  384. /* audioOuts */ 2,
  385. /* midiIns */ 1,
  386. /* midiOuts */ 1,
  387. /* paramIns */ 100,
  388. /* paramOuts */ 10,
  389. /* name */ "Carla-Patchbay (sidechain)",
  390. /* label */ "carlapatchbay3s",
  391. /* maker */ "falkTX",
  392. /* copyright */ "GNU GPL v2+",
  393. DESCFUNCS_WITHOUTCV
  394. },
  395. {
  396. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  397. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  398. |NATIVE_PLUGIN_HAS_UI
  399. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  400. |NATIVE_PLUGIN_USES_STATE
  401. |NATIVE_PLUGIN_USES_TIME),
  402. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  403. /* audioIns */ 16,
  404. /* audioOuts */ 16,
  405. /* midiIns */ 1,
  406. /* midiOuts */ 1,
  407. /* paramIns */ 100,
  408. /* paramOuts */ 10,
  409. /* name */ "Carla-Patchbay (16chan)",
  410. /* label */ "carlapatchbay16",
  411. /* maker */ "falkTX",
  412. /* copyright */ "GNU GPL v2+",
  413. DESCFUNCS_WITHOUTCV
  414. },
  415. {
  416. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  417. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  418. |NATIVE_PLUGIN_HAS_UI
  419. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  420. |NATIVE_PLUGIN_USES_STATE
  421. |NATIVE_PLUGIN_USES_TIME),
  422. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  423. /* audioIns */ 32,
  424. /* audioOuts */ 32,
  425. /* midiIns */ 1,
  426. /* midiOuts */ 1,
  427. /* paramIns */ 100,
  428. /* paramOuts */ 10,
  429. /* name */ "Carla-Patchbay (32chan)",
  430. /* label */ "carlapatchbay32",
  431. /* maker */ "falkTX",
  432. /* copyright */ "GNU GPL v2+",
  433. DESCFUNCS_WITHOUTCV
  434. },
  435. {
  436. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  437. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  438. |NATIVE_PLUGIN_HAS_UI
  439. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  440. |NATIVE_PLUGIN_USES_STATE
  441. |NATIVE_PLUGIN_USES_TIME),
  442. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  443. /* audioIns */ 64,
  444. /* audioOuts */ 64,
  445. /* midiIns */ 1,
  446. /* midiOuts */ 1,
  447. /* paramIns */ 100,
  448. /* paramOuts */ 10,
  449. /* name */ "Carla-Patchbay (64chan)",
  450. /* label */ "carlapatchbay64",
  451. /* maker */ "falkTX",
  452. /* copyright */ "GNU GPL v2+",
  453. DESCFUNCS_WITHOUTCV
  454. },
  455. {
  456. /* category */ NATIVE_PLUGIN_CATEGORY_OTHER,
  457. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_SYNTH
  458. |NATIVE_PLUGIN_HAS_UI
  459. |NATIVE_PLUGIN_NEEDS_UI_MAIN_THREAD
  460. |NATIVE_PLUGIN_USES_CONTROL_VOLTAGE
  461. |NATIVE_PLUGIN_USES_STATE
  462. |NATIVE_PLUGIN_USES_TIME),
  463. /* supports */ static_cast<NativePluginSupports>(NATIVE_PLUGIN_SUPPORTS_EVERYTHING),
  464. /* audioIns */ 2,
  465. /* audioOuts */ 2,
  466. /* midiIns */ 1,
  467. /* midiOuts */ 1,
  468. /* paramIns */ 100,
  469. /* paramOuts */ 10,
  470. /* name */ "Carla-Patchbay (CV)",
  471. /* label */ "carlapatchbaycv",
  472. /* maker */ "falkTX",
  473. /* copyright */ "GNU GPL v2+",
  474. DESCFUNCS_WITHCV,
  475. /* cvIns */ 5,
  476. /* cvOuts */ 5,
  477. /* bufnamefn */ nullptr,
  478. /* bufrangefn */ nullptr
  479. },
  480. #endif
  481. // --------------------------------------------------------------------------------------------------------------------
  482. // External-UI plugins
  483. #ifdef HAVE_PYQT
  484. {
  485. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  486. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  487. |NATIVE_PLUGIN_HAS_INLINE_DISPLAY
  488. |NATIVE_PLUGIN_HAS_UI
  489. |NATIVE_PLUGIN_NEEDS_FIXED_BUFFERS),
  490. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  491. /* audioIns */ 2,
  492. /* audioOuts */ 0,
  493. /* midiIns */ 0,
  494. /* midiOuts */ 0,
  495. /* paramIns */ 2,
  496. /* paramOuts */ 2,
  497. /* name */ "Big Meter",
  498. /* label */ "bigmeter",
  499. /* maker */ "falkTX",
  500. /* copyright */ "GNU GPL v2+",
  501. DESCFUNCS_WITHOUTCV
  502. },
  503. {
  504. /* category */ NATIVE_PLUGIN_CATEGORY_UTILITY,
  505. /* hints */ static_cast<NativePluginHints>(NATIVE_PLUGIN_IS_RTSAFE
  506. |NATIVE_PLUGIN_HAS_UI),
  507. /* supports */ NATIVE_PLUGIN_SUPPORTS_NOTHING,
  508. /* audioIns */ 0,
  509. /* audioOuts */ 0,
  510. /* midiIns */ 0,
  511. /* midiOuts */ 0,
  512. /* paramIns */ 1,
  513. /* paramOuts */ 0,
  514. /* name */ "Notes",
  515. /* label */ "notes",
  516. /* maker */ "falkTX",
  517. /* copyright */ "GNU GPL v2+",
  518. DESCFUNCS_WITHOUTCV
  519. },
  520. #endif
  521. #ifdef HAVE_EXTERNAL_PLUGINS
  522. # define CARLA_EXTERNAL_PLUGINS_INCLUDED_DIRECTLY
  523. # include "external/_data.cpp"
  524. #endif
  525. };
  526. #undef DESCFUNCS_WITHCV
  527. #undef DESCFUNCS_WITHOUTCV
  528. // --------------------------------------------------------------------------------------------------------------------
  529. const NativePluginDescriptor* carla_get_native_plugins_data(uint32_t* count)
  530. {
  531. CARLA_SAFE_ASSERT_RETURN(count != nullptr, nullptr);
  532. *count = static_cast<uint32_t>(sizeof(sNativePluginDescriptors)/sizeof(NativePluginDescriptor));
  533. return sNativePluginDescriptors;
  534. }
  535. // --------------------------------------------------------------------------------------------------------------------