You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The global variable BEAT will be true on each frame that is on a BEAT.
The global variable BEAN will increase by one each time BEAT is true.
In addition the helper methods BEAN_FOR_FRAME and FRAME_FOR_BEAN can be used for doing fancy calculations and finding appropriate BEAN values in your layer.
A common pattern is to use expressions like BEAT && BEAN % 4 == 0. This will evaluate to true on every 4th BEAT, starting with the first one. In a song with a subdivision of 4, this means the first beat of each bar in the song.