Forums > Gear

Smooth interpolation for DMX

September 16, 2013 | 12:45 pm

Hi guys! I’m controlling lights with the enttec/dmx usb pro. When I change the color of the fixture directly on the values (R G B dimmer) it’s ok. But when I try to interpolate it with the pattrstorage I get a horrible flickering result. Does anyone have a clue on how to smooth this values coming from pattrstorage?


September 16, 2013 | 12:54 pm

Are you sending the values inbetween the presets? For instance, if you want to interp. between preset 3 and 4 you need to send

3.
3.0001
3.0002
3.0003

3.998
3.999
4

If this is what you’re doing, then perhaps showing the relevant part of the patch would help a lot.

It could also be that you’re transmitting other (noise) signals out of the enttec, which is causing the confusion. Pattern interpolation with dmx is entirely doable with the usb pro. :)


September 16, 2013 | 3:45 pm

i’d say it’s either the update rate is too slow, or too fast (which might cause usb buffer problems)


September 16, 2013 | 4:00 pm

Thank you @wetterberg, that’s good news then. Yes, I’ve going thru all the floats. @floating point, do you mean refresh or baudrate? And why when I move the values outside the pattr system everything is ok? Here’s the patch:

Attachments:
  1. lights.maxpat

September 16, 2013 | 8:47 pm

i just had a quick look and i noticed a lot of redundancy (same list being sent many times) when using the swatch, so using zl change might help:

<code>

– Pasted Max Patch, click to expand. –

</code>

I just noticed the grain of the ej.line is 200 ms using the 2nd argument: [ej.line 0. 200]
should be much less (try the dmx standard of 23 ms)


Viewing 5 posts - 1 through 5 (of 5 total)