Hundemeier / sacn

A simple ANSI E1.31 (aka sACN) module for python.
MIT License
47 stars 21 forks source link

Merge multiple inputs #10

Closed niggiover9000 closed 4 years ago

niggiover9000 commented 5 years ago

Hey there! First of all, a big thank you for your awesome library!

I am trying to use multiple inputs, for example a lighning console and a house light control panel. This causes flickering, because the packages are received succcesively and not merged together. Do you have an idea how I could build a workaround?

Thanks in advance!

Hundemeier commented 4 years ago

Sorry for the late reply. Merging is not in the scope of sACN and therefore is not supported by this library directly. If two senders send different data with the same priority and universe to a receiver of this library, the behaviour is basically undefined (flickering due to fast changing of the DMX values). To create a merge, you would need to send out the values on two different universes and receive both with your script. Then you can implement your own merging.

niggiover9000 commented 4 years ago

Hey there,

in the meantime, I managed to write a merging algorithm for my project. It can handle sources with different priority, sources with same priority, special packets from ETC consoles with per-channel-priority and you can switch von HTP to LTP mode If you are interested, have a look at it here: https://github.com/niggiover9000/sACNtoArtNet