Chargement...
 
Skip to main content

6 - Le MIDI


a2j_control: error: unrecognized arguments: ehw (résolu)

J'ai un soucis avec a2jmidi quand je lance la commande dans un terminal. J'aimerais bien savoir ce qui cloche dans ma config. (gentoo mate sans pulseaudio)
Copy to clipboard
~ $: a2j -e hardware ports export usage: a2j_control [-h] [--start] [--stop] [--exit] [--status] [--gjcn] [--ma2jp MA2JP MA2JP] [--ma2jc MA2JC MA2JC] [--mj2a MJ2A] [--ehw] [--dhw] [--aup] [--dup] a2j_control: error: unrecognized arguments: ehw usage: a2j_control [-h] [--start] [--stop] [--exit] [--status] [--gjcn] [--ma2jp MA2JP MA2JP] [--ma2jc MA2JC MA2JC] [--mj2a MJ2A] [--ehw] [--dhw] [--aup] [--dup] a2j_control: error: unrecognized arguments: start

J'ai le même message même après avoir lancé
Copy to clipboard
~ $: a2j_control --start ---start ~ $: a2j_control --status --- status Bridging enabled Hardware not exported Allowing unique port names

France
Bonjour,
Est-ce que jack est démarré?
Oui démarrer, j'ai refait la manip et pas moyen de connecter mon clavier keystep dans ardour.
C'est possible en mettant "Pilote Midi" sur "seq" dans qjackctl. Mais il faut y aller à tâton pour trouver le clavier(midi_capture_3). System Capture 3
Il y a un répertoire a2j dans ~/.config/ mais il est toujours vide, il est sensé contenir quoi? Sur une debian c'est vide aussi.
France
Il n'y a rien non plus chez moi (arch) dans ~/.config/a2j.
Est-ce qu'il apparaît avec son nom dans l'onglet "Alsa" de la fenêtre de connexion QJackCtl?
Il est connecté en MIDI DIN?
Le keystep apparaît dans l'onglet alsa et il est connecté en usb.
En midi in/out focusrite 2i4
Midi Din et
Alsa Midi Din Le retour de la commande "a2j -e" est le même
France
Je quitté gentoo il y a quelques années donc pas moyen de tester. Ce qui me viens en tête:
- tu as le drapeau USE jack?
- tu as un noyau compilé avec des options génériques ou perso? Si c'est un perso, est-ce que Alsa et les éléments qui vont avec son sous forme de module? Si c'est le cas, il faut peut être les charger manuellement.

Je n'ai pas non plus de keystep, mais à ta place j'essaierai un:
Copy to clipboard
lsusb -v avec aussi -d ou -s sur le keystep


Avec une distro binaire, le keystep doit être reconnu direct.

Regardes aussi peut être si il n'a pas besoin d'une règle udev. Je dis ça au hasard...
Le USE de mon make.conf
Copy to clipboard
USE="python gtk lv2 jack networkmanager alsa fuse -kde -bluetooth -ppp -wext -wifi"

Mon kernel est perso, c'est une install récente, j'ai encore une autre gentoo à traîner sur un autre ssd.
J'ai aussi toujours une debian qui me sert de ref. Mais là je voulais ne pas installer pulseaudio et virer vraiment tout ce qui ne me sert pas.
C'est du sport à plein temps une gentoo...
France
Le temps, la seule raison qui m'a éloigné de gentoo.
Je vie très bien sans pulseaudio avec apulse. Testé sous Debian Sid, Kali, Arch et Obarun.
Tu devrais vérifier la configuration de ton noyau au niveau d'Alsa et OSS.

À titre d'exemple, voilà le retour de lsusb -v sur mon clavier MIDI Korg NanoKey2:
Copy to clipboard
lsusb -v -d 0944:0115 Bus 001 Device 007: ID 0944:0115 KORG, Inc. nanoKEY2 Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0944 KORG, Inc. idProduct 0x0115 bcdDevice 1.00 iManufacturer 1 iProduct 2 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0053 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 1 Audio bInterfaceSubClass 3 MIDI Streaming bInterfaceProtocol 0 iInterface 0 MIDIStreaming Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (HEADER) bcdADC 1.00 wTotalLength 0x0025 MIDIStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 2 (MIDI_IN_JACK) bJackType 1 Embedded bJackID 16 iJack 3 MIDIStreaming Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 3 (MIDI_OUT_JACK) bJackType 2 External bJackID 64 bNrInputPins 1 baSourceID( 0) 16 BaSourcePin( 0) 1 iJack 0 MIDIStreaming Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 3 (MIDI_OUT_JACK) bJackType 1 Embedded bJackID 48 bNrInputPins 1 baSourceID( 0) 32 BaSourcePin( 0) 1 iJack 4 MIDIStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 2 (MIDI_IN_JACK) bJackType 2 External bJackID 32 iJack 0 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 bRefresh 0 bSynchAddress 0 MIDIStreaming Endpoint Descriptor: bLength 5 bDescriptorType 37 bDescriptorSubtype 1 (GENERAL) bNumEmbMIDIJack 1 baAssocJackID( 0) 16 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 bRefresh 0 bSynchAddress 0 MIDIStreaming Endpoint Descriptor: bLength 5 bDescriptorType 37 bDescriptorSubtype 1 (GENERAL) bNumEmbMIDIJack 1 baAssocJackID( 0) 48

Pilote MIDI réglé sur "Seq" dans QJackCtl.
Fenêtre de connexion de qjackctl:
2019 12 21 075841 885x431 Scrot 2019 12 21 075848 885x431 Scrot
Quelques lignes en provenance de lsmod (uniquement snd):
Copy to clipboard
snd 106496 18 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm,snd_rawmidi snd_timer 40960 3 snd_seq,snd_hrtimer,snd_pcm snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi snd_seq 86016 13 snd_seq_midi,snd_seq_midi_event,snd_seq_dummy


Au fait, tu as quelle version de jack?
J'ai revu ma copie cette nuit avec la création d'un fichier .jackstart avec juste
Copy to clipboard
a2jmidid -e &
sans le "&" qjackctl plante. C'est lancé après le démarrage, dans l'onglet option de qjackctl. Et ça fonctionne, pour qui pourquoi?
A2jmidid  E &

Les retours de lsusb
Copy to clipboard
~ $ lsusb Bus 003 Device 002: ID 1235:800a Focusrite-Novation Scarlett 2i4 Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 002: ID 046d:c069 Logitech, Inc. M-U0007 [Corded Mouse M500] Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 008 Device 004: ID 1c75:0288 Bus 008 Device 003: ID 046a:010d Cherry GmbH MX-Board 3.0 Keyboard Bus 008 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Le keystep est sur le Bus 008 Device 004:

Copy to clipboard
~ $ lsusb -v -d 1c75:0288 Bus 008 Device 004: ID 1c75:0288 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x1c75 idProduct 0x0288 bcdDevice 2.00 iManufacturer 1 Arturia iProduct 2 Arturia KeyStep 32 iSerial 3 00000000001A bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0065 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 0 bInterfaceClass 1 Audio bInterfaceSubClass 1 Control Device bInterfaceProtocol 0 iInterface 0 AudioControl Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 1 (HEADER) bcdADC 1.00 wTotalLength 0x0009 bInCollection 1 baInterfaceNr(0) 1 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 1 Audio bInterfaceSubClass 3 MIDI Streaming bInterfaceProtocol 0 iInterface 0 MIDIStreaming Interface Descriptor: bLength 7 bDescriptorType 36 bDescriptorSubtype 1 (HEADER) bcdADC 1.00 wTotalLength 0x0041 MIDIStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 2 (MIDI_IN_JACK) bJackType 1 Embedded bJackID 1 iJack 0 MIDIStreaming Interface Descriptor: bLength 6 bDescriptorType 36 bDescriptorSubtype 2 (MIDI_IN_JACK) bJackType 2 External bJackID 2 iJack 0 MIDIStreaming Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 3 (MIDI_OUT_JACK) bJackType 1 Embedded bJackID 3 bNrInputPins 1 baSourceID( 0) 2 BaSourcePin( 0) 1 iJack 0 MIDIStreaming Interface Descriptor: bLength 9 bDescriptorType 36 bDescriptorSubtype 3 (MIDI_OUT_JACK) bJackType 2 External bJackID 4 bNrInputPins 1 baSourceID( 0) 1 BaSourcePin( 0) 1 iJack 0 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 bRefresh 0 bSynchAddress 0 MIDIStreaming Endpoint Descriptor: bLength 5 bDescriptorType 37 bDescriptorSubtype 1 (GENERAL) bNumEmbMIDIJack 1 baAssocJackID( 0) 1 Endpoint Descriptor: bLength 9 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 bRefresh 0 bSynchAddress 0 MIDIStreaming Endpoint Descriptor: bLength 5 bDescriptorType 37 bDescriptorSubtype 1 (GENERAL) bNumEmbMIDIJack 1 baAssocJackID( 0) 3 can't get device qualifier: Resource temporarily unavailable can't get debug descriptor: Resource temporarily unavailable Device Status: 0x0001 Self Powered


Pour ce qui est de snd
Copy to clipboard
~ $ lsmod | grep snd snd_seq_midi 16384 4 snd_seq_midi_event 16384 1 snd_seq_midi snd_usb_audio 208896 13 snd_usbmidi_lib 28672 1 snd_usb_audio snd_hwdep 16384 1 snd_usb_audio snd_rawmidi 28672 2 snd_seq_midi,snd_usbmidi_lib


Pas grand chose, j'ai compilé beaucoup de chose en dur à mon avis