Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#73192 - [darktable] 3.8.0-2 lacks "portmidi" dependency to support midi devices as input devices
Attached to Project:
Community Packages
Opened by AP Perrin (apperrin) - Wednesday, 29 December 2021, 22:42 GMT
Last edited by Caleb Maclennan (alerque) - Sunday, 23 January 2022, 08:55 GMT
Opened by AP Perrin (apperrin) - Wednesday, 29 December 2021, 22:42 GMT
Last edited by Caleb Maclennan (alerque) - Sunday, 23 January 2022, 08:55 GMT
|
DetailsDescription :
Darktable 3.8 revamped its shortcuts system and introduced game and MIDI controllers support, as alternative input devices. They're big time savers when you have to process a lot of photos. Additional info : * darkable 3.8.0-2 Steps to reproduce : - Plug a MIDI controller (USB or other...). - Start Darktable with "-d input" parameters (to see what Darktable sees as input devices). - In the output, "[midi_open_devices] PortMidi initialized" does not appear, which means that Darktable ignores completely any connected MIDI device. Consequently, it's impossible to create a shortcut in DT linked to a button/potentiometer on the MIDI controller. Possible ways to solve this lack : - Add "portmidi" (the "portmidi" Arch package seems to match) as a dependency to compile the package. I deduced from this forum post : https://discuss.pixls.us/t/how-to-get-my-midi-device-running-in-dt/28465 ...and from Darktable sources (grepping "portmidi" in the sources) |
This task depends upon
Closed by Caleb Maclennan (alerque)
Sunday, 23 January 2022, 08:55 GMT
Reason for closing: Fixed
Additional comments about closing: 2:3.8.0-3
Sunday, 23 January 2022, 08:55 GMT
Reason for closing: Fixed
Additional comments about closing: 2:3.8.0-3
I can confirm that with 'portmidi' package installed, and a self-compiled version from the darktable repositiory, it works: midi devices are supported and the line "[midi_open_devices] PortMidi initialized" appears correctly in the logs.
pacman -U https://archlinux.org/packages/community-testing/x86_64/darktable/download
I added portmidi as an optdepends and makedepends, so it is now built with support and will look for it on the system, but it doesn't seem to require it to run. I don't have portmidi on my system and it seems to still run fine, with the downside of a console warning that it can't find it. This seems better than requiring all users to install portmidi if we can avoid it because that also pulls in a dependency on libasound, something not everybody may want.
I don't have any relevant devices to test with, so somebody that does should give this a spin to see if it works.
$ darktable -d input .
0,406332 [input device] Input devices found:
[...]
1,500245 [midi_open_devices] PortMidi initialized
1,500259 [midi_open_devices] found midi device 'Midi Through Port-0' via 'ALSA'
1,500262 [midi_open_devices] found midi device 'Midi Through Port-0' via 'ALSA'
1,500264 [midi_open_devices] found midi device 'X-TOUCH MINI MIDI 1' via 'ALSA'
1,500266 [midi_open_devices] found midi device 'X-TOUCH MINI MIDI 1' via 'ALSA'
[midi_open_devices] opened midi device 'X-TOUCH MINI MIDI 1' via 'ALSA' as midi0
4,473930 Controller: Channel 10, Data1 1, Data2 1
4,474200 [dt_shortcut_move] shortcut received: CC1, descendre
4,505286 Controller: Channel 10, Data1 1, Data2 4
4,505455 [dt_shortcut_move] shortcut received: CC1, monter
[...]
7,005244 Controller: Channel 10, Data1 2, Data2 7
7,005588 [dt_shortcut_move] shortcut received: CC2, monter
7,137588 Controller: Channel 10, Data1 2, Data2 6
7,137804 [dt_shortcut_move] shortcut received: CC2, descendre
7,159521 Controller: Channel 10, Data1 2, Data2 3
[...]