Forums > MaxMSP

RGB values to DMX control

February 27, 2014 | 7:51 pm

Hi,

I am completely new to this program, but I am trying to take plain RGB values from another MSP patch (created by someone else) and then use these values to send through an Enttec DMX Pro interface. We played around with DMX 512 external plug-in for Max and that worked OK, but we just need to figure out how to take R,G,B values and incorporate them into the mix.

Thank you in advance for the help


February 27, 2014 | 8:51 pm

What you’re asking is kinda general. If you have a patch that shows where you’re stuck, folks can more easily help out. Highlight what you want to share, copy compressed (edit menu) and paste in the message window.

You more or less want to make a list of RGB (0-255) values and convert that into a packet to send to the entec box. I assume the external will convert the list to a packet. You should have info about how to format the list so the packet works properly. I don’t think it’s same for all devices.

If you don’t know how to build a list in Max, that’s easy enough. You can get that rolling with just a few objects, but in order to help you, it would be good to know where the values are coming from and what objects you’re currently using.


February 27, 2014 | 9:08 pm

David Butler’s excellent objects are always my starting point for working with DMX. http://www.theimpersonalstereo.com/software/imp-dmx/

I assume you’re working with Olaf Matthes’ external for the DMX Pro, which also has a fairly usable help file with it – you just need to play with the channels to figure out which one relates to the R, G and B on your particular light.


March 18, 2014 | 6:15 pm

Attached is the file I am using. We need to take the RGB values it is creating and use them to output with the Enttec DMX Pro Box.

Can anyone help with this?

As asked for, here is the patch:

<code>

– Pasted Max Patch, click to expand. –

</code>


March 18, 2014 | 11:40 pm

As Kodamapixel wrote…

<code>

– Pasted Max Patch, click to expand. –

</code>


March 19, 2014 | 7:04 am

Chris (or anyone else),

how can I implement that part to talk to the RGB values that this patch is already creating? I just need those RGB values "linked" to the Enttec DMX output

Thank you


March 19, 2014 | 7:27 am

Again echoing Kodamapixel…

http://www.nullmedium.de/dev/dmxusbpro/


March 19, 2014 | 10:08 am

Christopher, May I send you an email off of this forum to extra help in setting this up?

I am just on the last step and need some guidance. Thank you again


March 19, 2014 | 12:46 pm

I’ve pretty much just bestowed the sum total of my wisdom on the topic :), but feel free to send me an email if you want. No guarantee of how fast I’ll be able to respond, though, since I’ll be traveling the next few days.


March 19, 2014 | 7:17 pm

<code>

– Pasted Max Patch, click to expand. –

</code>

+ http://cycling74.com/forums/topic/sharing-jitter-dmx-tutorials/


March 19, 2014 | 8:11 pm

The way that my RGB lights work (and there’s every chance that yours might be slightly different) is that each unit takes 4 channels, each with a value of 0-127.

The first channel is strobe; second is red; third is blue; and fourth is green. Remember that this will be the case for each light. So the first light takes channels 1-4, the next takes channels 5-8, the next 9-12 and so on.

I’m going to assume that you’re using the [dmxusbpro] external and this example should at least let you test which channel does what…

<code>

– Pasted Max Patch, click to expand. –

</code>


March 20, 2014 | 8:02 am

This is the patch we have now.

We are able to control lights within the patch. We just need the Colors that are being generated in the large square to become the colors that are output by the DMX. How can we link these?

Thank you


March 21, 2014 | 12:43 am

Take another look at the patch that I posted above. You’re already there with the messages coming from the [IDCILightingMstrPrgrm] object. Just [unpack] these, before they go to the [prepend] object and follow the steps from my patch to see what the result is.

I’m not sure where the breakdown is between being "able to control lights within the patch" and getting the "colors that are being generated in the large square to become the colors that are output by the DMX". If you’re clearer on what’s actually happening with your lights, we might be able to troubleshoot further.


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