Sending messages from GIMP on changes (MIDI output)
Operating System: Linux / All
Description of the feature
Now it is possible to use MIDI controllers for manipulating GIMP (for example, choose editing tools; change the value of parameters: transparency, zoom, brush hardness; call some dialogs and plugins).
I use MIDI controllers with LEDs (korg nanokontol2, behringer x-touch mini), and for convenience, I wrote a MIDI proxy script in python, which, when pressing the buttons on the controller, not only sends a MIDI message to the GIMP, but also sends a MIDI message back to the controller to turn on the LED of the button that I pressed (so I can see which current editing tool selected).
The problem is that when I, say, change a tool or parameter not from the controller, but directly in the GIMP interface, the controller retains the old state, because it does not know anything about what is happening in the GIMP itself.
For example:
- I choose «heal brush» on the controller
- controller send MIDI message to my script
- the script send a MIDI message to the GIMP (where it is bound to the choice of a «heal brush») and then sent a message to the controller
- the controller received the MIDI message and turn on the desired LED
- then directly in the GIMP, I select the «clone tool», the tool switches, but the old LED is ON on the controller
It would be very cool (but probably useless for many GIMP users) if GIMP could act not only as a receiver of MIDI messages, but also as a sender. And it would be configured, let's say, as it is now: there would be a setting that would allow you to set which MIDI message to send from the GIMP when some specific events occur (tool changes, zoom, transparency, etc.). Perhaps MIDI is too limited for this, but then it would be great, for example, to start some kind of service in GIMP with a different protocol, and one would subscribe this service to receive events from GIMP.