Triggering PangoScript from DMX intput channels

Menu > Settings > DMX > DMX / ArtNet to PangoScript Settings …

“Background scripts” tab

Really handy if you want to create a global variable so you can detect DMX level changes. E.g.:

GLOBALVAR DmxTriggerLevelLast
DmxTriggerLevelLast = 0
“DMX/ArtNet to Code Settings” tab

Double click the script box next to the DMX input channel you want to do something and then use like this:

//Param(1) gives you the DMX value from 0 to 1 (0=0, 1=255)
//Param(2) gives you the raw DMX value from 0 to 255

VAR DmxTriggerNewLevel
DmxTriggerNewLevel = Param(2)

//Do a BeatTap event on rising edge from 0 of DMX level
if ((DmxTriggerLevelLast = 0) & (DmxTriggerNewLevel > 0)) BeatTap
DmxTriggerLevelLast = DmxToBeatNewLevel

Comments

Your email address will not be published. Required fields are marked *