Pango script for DMX

First create the code in the Pangoscipt tab:

Code:
codename "dmx-loop"
DmxOut 1, 255
WaitForbeat 7,1
DmxOut 1, 0
WaitForbeat 7,1
restart

Then create two new buttons in universe,
Call one "enable" and the other "disable"

Put this under the enable button :
Code:
exit // each section always should have EXIT command

OnClick:
// put your code below
startcode "dmx-loop"

Put this under the disable button.
Code:
exit // each section always should have EXIT command

OnClick:
// put your code below
stopcode "dmx-loop"
exit

If you want a flash mechanism that only sends data when you hold the mouse down on the universe button, put this code underneath a new button:

Code:
exit // each section always should have EXIT command

OnChange:
exit // do not remove EXIT

OnMouseDown:
// put your code below
startcode "dmx-loop"
exit // do not remove EXIT

OnMouseUp:
// put your code below
stopcode "dmx-loop"
exit // do not remove EXIT

The current "wait", used is based on BPM speed.

As you can see in the screenshot attached, you can find much more wait commands, in the command list inside the pangoscript editor.

Screenshot 2019-04-22 at 22.02.21.png
 
Last edited:
Back
Top