AKAI LPK25 zynaddsubfx qjackctl

Why not tell us a little bit about yourself? Welcome to the community!

Moderators: MattKingUSA, khz

Post Reply
luiznetto
Posts: 1
Joined: Thu May 18, 2017 4:38 am

AKAI LPK25 zynaddsubfx qjackctl

Post by luiznetto »

Hi everybody, thank you for accepting me. I am Luiz and live in San Francisco, California.

Let's go straight to the point why I am here. I am a Linux aficionado and music student. I run Debian Wheezy. I have an AKAI LPK25 music keyboard which I attach to my laptop via usb port to play music. After I attach the keyboard, I need to start zynaddsubfx, then qjackctl and make the connection. It works fine, but I would like to write a script to make it automatic, so that, each time I connect the keyboard to the usb port, it is ready to play. I am not a programmer, but I know all the basic Linux commands and have good notions of simple Bash shell scripts, I've written them before.

After I connect the device, this is what I get:

Code: Select all

root@debian-luiz-computer:/home/luiz# tail /var/log/messages
May 18 10:27:20 debian-luiz-computer kernel: [  135.339811] padlock: VIA PadLock not detected.
May 18 11:13:58 debian-luiz-computer kernel: [ 2933.768116] usb 5-5.3: new full speed USB device using ehci_hcd and address 7
May 18 11:13:58 debian-luiz-computer kernel: [ 2933.877235] usb 5-5.3: New USB device found, idVendor=09e8, idProduct=0076
May 18 11:13:58 debian-luiz-computer kernel: [ 2933.877239] usb 5-5.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
May 18 11:13:58 debian-luiz-computer kernel: [ 2933.877242] usb 5-5.3: Product: LPK25
May 18 11:13:58 debian-luiz-computer kernel: [ 2933.877243] usb 5-5.3: Manufacturer: AKAI professional LLC
May 18 11:13:58 debian-luiz-computer kernel: [ 2933.877362] usb 5-5.3: configuration #1 chosen from 1 choice
May 18 11:13:58 debian-luiz-computer mtp-probe: checking bus 5, device 7: "/sys/devices/pci0000:00/0000:00:1d.7/usb5/5-5/5-5.3"
May 18 11:13:58 debian-luiz-computer mtp-probe: bus: 5, device: 7 was not an MTP device
May 18 11:13:58 debian-luiz-computer kernel: [ 2934.141675] usbcore: registered new interface driver snd-usb-audio
and then

Code: Select all

luiz@debian-luiz-computer:~$ lsusb | grep AKAI
Bus 005 Device 007: ID 09e8:0076 AKAI  Professional M.I. Corp. LPK25 MIDI Keyboard
The command to make the connection, I guess, from what I've seen in posts in other forums, is jack_connect; but I still haven't been able to figure out how to make the connection in a script.

Could anyone possibly help me with this? I would be immensely grateful.

Luiz
fundamental
Established Member
Posts: 165
Joined: Thu Nov 07, 2013 1:19 pm
Been thanked: 1 time

Re: AKAI LPK25 zynaddsubfx qjackctl

Post by fundamental »

I'd expect the command you're looking for is 'aconnect'. Use 'aconnect -lio' to find out what are the port numbers that you need. For example, if your keyboard is port 20 and zyn is port 128, then to connect them you can run 'aconnect 20 128'. To integrate this with zyn, you can use the --exec-after-init command line option which would give you a command at the end of the day which would look like 'zynaddsubfx --exec-after-init "aconnect 20 128"'
ZynAddSubFX maintainer
Post Reply