Skip to content

Instantly share code, notes, and snippets.

@randallb
Created August 8, 2012 20:03
Show Gist options
  • Save randallb/3298091 to your computer and use it in GitHub Desktop.
Save randallb/3298091 to your computer and use it in GitHub Desktop.
class ChannelBox < Chyron
class Scene
def play(id)
send_command "B\\PL\\#{id}"
end
def load(id)
send_command "B\\LO\\#{id}"
end
def stop(id)
send_command "B\\ST\\#{id}"
end
end
class Button
def trigger(scene, automation)
send_command "U\\#{scene}\\#{automation}\\1"
end
end
class Control
def update(scene, automation, text)
send_command "U\\#{scene}\\#{automation}\\#{text}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment