Home › Forums › Development › Change requests › Lua USB support :)
- This topic has 10 replies, 3 voices, and was last updated 8 years, 11 months ago by daimondamps.
-
AuthorPosts
-
April 11, 2015 at 5:09 pm #43557
Hi – im working on panel for the Kemper profiling amplifier.
It uses midi but also uses USB for communication with software.
This communication seems to be a series of a sysx messages but USB device on pc is not the standart MIDI device.
It is possible to compile ctrlr with some lualibusb (http://wiki.pinguino.cc/index.php/Interfacing_with_Lua)
library to get midi messages over USB?April 12, 2015 at 5:37 pm #43616What do you mean by “not the standard MIDI device”?
You must select the correct MIDI input and output devices to be used from the Ctrlr MIDI menu. It shouldn’t matter if it’s a “real” MIDI device or a USB connection I guess.April 12, 2015 at 6:58 pm #43624Sorry – i mean just that device is as MEDIA device in control panel . But it isn’t midi device.
I have monitored communication with this device and it uses standard midi sysex codes with their own software. I just want to “talk” with this device with some low level usb api to achieve midi communication.April 13, 2015 at 12:02 pm #43672I can only integrate new lua features if they are cross platform (linux/windows/osx) and if i can preferably ship the source code to them in the project and not ask Ctrlr users to install some 3rd party packages.
If those requirements can be met i’m willing to add it to Ctrlr.
April 13, 2015 at 9:34 pm #43702…
- This reply was modified 9 years ago by daimondamps.
April 13, 2015 at 9:35 pm #43703I can only integrate new lua features if they are cross platform (linux/windows/osx) and if i can preferably ship the source code to them in the project and not ask Ctrlr users to install some 3rd party packages.
If those requirements can be met i’m willing to add it to Ctrlr.
A jak by tak po polskiemu 😀 – po prostu czy mógłbym skompilować ctrlr z tymi źródłami LUAUSB aby z poziomu lua to działało ? nie jestem zbyt biegły w programowaniu – choć podstawowe rzeczy potrafię. Staram sie osiągnąć komunikację z tym urządzeniem na USB bo midi jest zbyt wolne i zapycha procesor urządzenia. świetną robotę zrobiłeś z tym softem:) dzięki 🙂
- This reply was modified 9 years ago by daimondamps.
- This reply was modified 9 years ago by daimondamps.
April 22, 2015 at 3:19 pm #44467Moge dodac support dla tego USB zakladajac ze ta biblioteka da sie wkomplikowac w Ctrlr (nie trzeba instalowac zadnych zaleznosci w systemie) i ze zadziala to na Windows/OSX/Linux, takie sa minimalne wymagania dla mnie.
April 23, 2015 at 10:17 pm #44574super:) Wygląda na to że biblioteka działa na wymienionych przez Ciebie systemach (windows , osx i linux). Nie wymaga instalacji dodatkowych sterowników.
źródło jest tutaj : https://github.com/lipp/lualibusb
Wcześniejsza wersja jest tutaj http://luaforge.net/frs/download.php/4252/lualibusb-0.4.tar.gzOpis kompilacji z lua jest na wiki: http://wiki.pinguino.cc/index.php/Interfacing_with_Lua
Zdaje się że to wymaga również libusb
http://www.libusb.org/Super jakby się to udało – Szkoda ze ze mnie marny programista – pewnie sam bym to zrobił nie zawracając głowy.
Zapytam tylko jeszcze jak głęboko i w jakie środowisko (Juce,lua) musiał bym się wgryźć aby przekierować komunikację z portu USB tak aby CTrlr widział go jako port midi?(jak już wspomniałem urządzenie wysyła dane po usb w formacie midi). Może spróbował bym wtedy skompilować własną wersję ctrl’a tylko pod to urządzenie.
- This reply was modified 9 years ago by daimondamps.
- This reply was modified 9 years ago by daimondamps.
- This reply was modified 9 years ago by daimondamps.
April 24, 2015 at 12:11 pm #44628Ctrlr nigdy nie zobaczy portu USB jako port MIDI, to zrobi tylko sterownik w systemie operacyjnym.
Natomiast zeby rozmawiac z urzadzeniem MIDI z Ctrlr (zakladajac ze libusb juz jest) powinno byc proste. Jak proste/trudne nie wiem bo nie wiem jak twoje urzadzenie rozmawia z komputerem.
Jesli chodzi o Lua/Juce to tylko Lua (Juce bedzie ci potrzebne tylko w samym lua jako dodatek do ulatwienia sobie pewnych operacji). Natomiast sama Lua to zalezy od skomplikowania biblioteki libusb dla lua, nie potrafie powiedziec bo nie korzystalem.
April 24, 2015 at 10:01 pm #44679Komunikacja powinna być trywialna – oto przykład :
14 f0 00 20 14 33 02 7f 14 7e 00 01 14 00 01 53
14 53 50 2d 14 4c 41 4e 14 45 59 20 14 54 49 20
14 30 32 20 14 2d 20 32 14 30 31 34 14 2d 31 31
14 2d 32 32 14 20 31 33 14 2d 33 31 14 2d 33 36
14 2e 6b 69 14 70 72 00 15 f7 00 00 14 f0 00 20
14 33 02 7f 14 7e 00 05 16 00 f7 00Jak widać to sysexy poprzedzielane co 3 bajty bajtem 0x14 – stosunkowo łatwo
będzie zrobić parser do tego:).(A sprzęt to Kemper – ten sam producent co Acces Virus)
Byłbym wielce zobowiązany gdyby udało dodać się ten support USB:)
Dzięki jeszcze raz i pozdrawiam.- This reply was modified 9 years ago by daimondamps.
May 31, 2015 at 6:16 pm #48694Thank you Atom that you’ve implemented usblib in latest build:)
I will try to use it now.
If you have some time can I ask you for help in this thread? :
I’m getting doubled sysex messages on input but from midi ox everything looks fine. -
AuthorPosts
- The forum ‘Change requests’ is closed to new topics and replies.