GLP YPOC 250
Rudi / Jannik
GLP
!call|GetColor$
!call|GetGobo1$
!call|GetGobo1Rotation$
!call|GetShutter$
!call|GetPrisma$
!call|GetLaser$
!call|GetSpecial$
!if|{channel_4}|lt|64|
!set_control|color_color|{channel_4}$
!set_control|color_changespeed|1$
$
!if|({channel_4} > 63) and ({channel_4} < 111)|
!set_control|color_color|({channel_4} - 64)$
!set_control|color_changespeed|0$
$
!if|{channel_4}|eq|128|
!set_control|color_color|{channel_4}$
$
!if|{channel_4}|gt|253|
!set_control|color_color|{channel_4}$
$
!if|({channel_4} > 128) and ({channel_4} < 192)|
!set_control|color_color|130$
!set_control|color_speed|({channel_4} - 130)$
$
!if|({channel_4} > 191) and ({channel_4} < 254)|
!set_control|color_color|192$
!set_control|color_speed|({channel_4} - 192)$
$
!if|{color_color}|lt|64|
!if|{color_changespeed}|eq|1|
!set_channel|4|{color_color}$
$
!if|{color_changespeed}|eq|0|
!set_channel|4|({color_color} + 64)$
$
$
!if|{color_color}|eq|130|
!set_channel|4|({color_color} + {color_speed})$
$
!if|{color_color}|eq|192|
!set_channel|4|({color_color} + {color_speed})$
$
!if|{color_color}|eq|128|
!set_channel|4|{color_color}$
$
!if|{color_color}|gt|253|
!set_channel|4|{color_color}$
$
!if|{channel_5}|lt|64|
!set_control|gobo1_gobo|{channel_5}$
!set_control|gobo1_changespeed|1$
$
!if|({channel_5} > 63) and ({channel_5} < 121)|
!set_control|gobo1_gobo|({channel_5} - 64)$
!set_control|gobo1_changespeed|0$
$
!if|{channel_5}|eq|128|
!set_control|gobo1_gobo|{channel_5}$
$
!if|{channel_5}|gt|253|
!set_control|gobo1_gobo|{channel_5}$
$
!if|({channel_5} > 129) and ({channel_5} < 192)|
!set_control|gobo1_gobo|130$
!set_control|gobo1_speed|({channel_5} - 130)$
$
!if|({channel_5} > 191) and ({channel_4} < 254)|
!set_control|gobo1_gobo|192$
!set_control|gobo1_speed|({channel_5} - 192)$
$
!if|{gobo1_gobo}|lt|64|
!if|{gobo1_changespeed}|eq|1|
!set_channel|5|{gobo1_gobo}$
$
!if|{gobo1_changespeed}|eq|0|
!set_channel|5|({gobo1_gobo} + 64)$
$
$
!if|{gobo1_gobo}|eq|128|
!set_channel|5|{gobo1_gobo}$
$
!if|{gobo1_gobo}|eq|130|
!set_channel|5|({gobo1_gobo} + {gobo1_speed})$
$
!if|{gobo1_gobo}|eq|192|
!set_channel|5|({gobo1_gobo} + {gobo1_speed})$
$
!if|{gobo1_gobo}|gt|253|
!set_channel|5|{gobo1_gobo}$
$
!if|{channel_6}|lt|132|
!set_control|gobo1_rotation|0$
!set_control|gobo1_rotation_position|{channel_6}$
$
!if|{channel_6}|gt|253|
!set_control|gobo1_rotation|{channel_6}$
$
!if|({channel_6} > 131) and ({channel_6} < 192)|
!set_control|gobo1_rotation|132$
!set_control|gobo1_rotation_speed|({channel_6} - 130)$
$
!if|({channel_6} > 191) and ({channel_6} < 254)|
!set_control|gobo1_rotation|192$
!set_control|gobo1_rotation_speed|({channel_6} - 192)$
$
!if|{gobo1_rotation}|eq|0|
!set_channel|6|{gobo1_rotation_position}$
$
!if|{gobo1_rotation}|eq|132|
!set_channel|6|({gobo1_rotation} + {gobo1_rotation_speed})$
$
!if|{gobo1_rotation}|eq|192|
!set_channel|6|({gobo1_rotation} + {gobo1_rotation_speed})$
$
!if|{gobo1_rotation}|gt|253|
!set_channel|6|{gobo1_rotation}$
$
!if|{channel_8}|lt|64|
!set_control|shutter_state|{channel_8}$
$
!if|({channel_8} > 63) and ({channel_8} < 240)|
!set_control|shutter_state|64$
!set_control|shutter_speed|({channel_8} - 64)$
$
!if|{channel_8}|gt|239|
!set_control|shutter_state|240$
$
!if|{shutter_state}|lt|64|
!set_channel|8|{shutter_state}$
$
!if|{shutter_state}|eq|64|
!set_channel|8|({shutter_state} + {shutter_speed})$
$
!if|{shutter_state}|gt|240|
!set_channel|8|{shutter_state}$
$
!if|{channel_7}|lt|6|
!set_control|prisma_state|{channel_7}$
$
!if|({channel_7} > 5) and ({channel_7} < 130)|
!set_control|prisma_state|6$
!set_control|prisma_position|({channel_7} - 6)$
$
!if|({channel_7} > 129) and ({channel_7} < 192)|
!set_control|prisma_state|130$
!set_control|prisma_speed|({channel_7} - 130)$
$
!if|({channel_7} > 191) and ({channel_7} < 254)|
!set_control|prisma_state|192$
!set_control|prisma_speed|({channel_7} - 192)$
$
!if|{channel_7}|gt|253|
!set_control|prisma_state|{channel_7}$
$
!if|{prisma_state}|lt|6|
!set_channel|7|{prisma_state}$
$
!if|{prisma_state}|eq|6|
!set_channel|7|({prisma_state} + {prisma_position})$
$
!if|{prisma_state}|eq|130|
!set_channel|7|({prisma_state} + {prisma_speed})$
$
!if|{prisma_state}|eq|192|
!set_channel|7|({prisma_state} + {prisma_speed})$
$
!if|{prisma_state}|gt|253|
!set_channel|7|{prisma_state}$
$
!if|{channel_14}|lt|48|
!set_control|laser_state|{channel_14}$
$
!if|({channel_14} > 47) and ({channel_14} < 240)|
!set_control|laser_state|48$
!set_control|laser_speed|({channel_14} - 48)$
$
!if|{channel_14}|gt|239|
!set_control|laser_state|255$
$
!if|{laser_state}|lt|48|
!set_channel|14|{laser_state}$
$
!if|{laser_state}|eq|48|
!set_channel|14|({laser_state} + {laser_speed})$
$
!if|{laser_state}|eq|255|
!set_channel|14|{laser_state}$
$
!if|({channel_11} > -1) and ({channel_12} < 16)|
!set_control|special_state|0$
$
!if|({channel_11} > 15) and ({channel_11} < 32)|
!set_control|special_state|16$
!set_control|special_speed|({channel_11} - 16)$
$
!if|({channel_11} > 31) and ({channel_11} < 48)|
!set_control|special_state|32$
!set_control|special_speed|({channel_11} - 32)$
$
!if|({channel_11} > 47) and ({channel_11} < 64)|
!set_control|special_state|48$
!set_control|special_speed|({channel_11} - 48)$
$
!if|({channel_11} > 63) and ({channel_11} < 80)|
!set_control|special_state|64$
!set_control|special_speed|({channel_11} - 64)$
$
!if|({channel_11} > 79) and ({channel_11} < 96)|
!set_control|special_state|80$
!set_control|special_speed|({channel_11} - 80)$
$
!if|({channel_11} > 95) and ({channel_11} < 112)|
!set_control|special_state|96$
$
!if|({channel_11} > 111) and ({channel_11} < 128)|
!set_control|special_state|112$
$
!if|{special_state}|lt|96|
!set_channel|11|({special_state} + {special_speed})$
$
!if|{special_state}|eq|96|
!set_channel|11|{special_state}$
$
!if|{special_state}|eq|112|
!set_channel|11|{special_state}$
$