enbyted2 wrote:mcallegari wrote:- I tested enbyted2 project with an APC mini and after a while I figured out what's wrong with it. You cannot use feedbacks on a universe that's already sending output data to a DMX USB adapter ! It's been explained quite a few times in this forum. Just separate input+feedbacks and DMX output into 2 different universes
Ohh, that explains it! Maybe it should be stated in the documentation somewhere? (if it is already maybe it's not clear enough? I didn't see it...)
I will change it and test as soon as I get my hands on Akai again, thanks!
As a side note, what is the underlaying reason/error behind it?
EDIT:BTW, It seems that with ArtNet as output the issue is showing itself in a different way: The buttons will never turn off, but I can change their color. It makes it much stranger of an issue in my eyes.
Actually, I need to correct myself for what I said before.
I've read in this forum that input+feedback and output should be on different universes, but then I thought that the code can handle them in the same universe, so I started digging again.
What I found is not nice at all
I started with a simple project with one button, and everything worked perfectly. Then I used your project with lots of buttons and saw the problem.
When QLC+ goes into operate mode, it sends ALL the feedbacks of the widgets that have an external input channel assigned.
In your project, 30-40 MIDI signals are sent to the APC mini very quickly.
For some reason, Linux detects an hotplug of the device ! Basically udev thinks the APC has been unplugged and plugged on the USB port.
Now I'm not sure if this is an issue specific to the APC or specific to Linux, but what happens next causes feedbacks not to work anymore.
At some point we added an option to the MIDI plugin to send "note off" extra event. Basically for who uses MIDI notes with particular controllers.
That option is enabled by default in the plugin, unless specified otherwise by the QLC+ engine.
In fact, if you look at the beginning of your project XML, you will see "<PluginParameters MIDISendNoteOff="false"/>"
If you unplug and plug a USB device, all the parameters read from the XML file are lost, and this is the real issue that needs to be resolved.
So when you load your project the "note off" parameter is correctly set to "off", but when you go into operate mode, the MIDI line gets re-initialized and "note off" goes back to "on", and feedbacks won't work anymore.
I've tried to understand if there's a quick fix for this, but there's not. This is a plain architecture error, emerged when we enabled the hotplug monitor.
I need some more time to figure how to solve this.