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

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