Refactored beat to use an aduio variable instead, easier to read