Beat logic gates