darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.55k stars 1.13k forks source link

FR NG Input: disable midi devices on demand #9445

Closed MStraeten closed 3 years ago

MStraeten commented 3 years ago

If several midi devices are used, the midi input number can change in dependency of used devices. so assigned accels to a midi device might not be recognized if further midi devices are added or removed.

example: when having an keyboard stack attached the xtouch mini used for darktable gets a different midi input number . so defined accels doesnt work workaround: copy the accels for each possible midi input number:

None;midi:CC1=iop/exposure/exposure
None;midi1:CC1=iop/exposure/exposure
None;midi2:CC1=iop/exposure/exposure
...

But that might mess up stuff if the other midi devices send something that's not filtered ...

Describe the solution you'd like

Alternatives

dterrahe commented 3 years ago

What I intend to implement is assigning a midi device by name to a certain device id, so it will always have the same id. It may even be useful to do this automatically the first time a not recognised device is connected. The simple approach will not work if you have two devices of the same type or more than 10 devices (even if not at same time).

github-actions[bot] commented 3 years ago

This issue did not get any activity in the past 30 days and will be closed in 365 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue.