On BeatChanged

<< Click to Display Table of Contents >>

Navigation:  Callbacks > Playhead Events >

On BeatChanged

Usage:

On BeatChanged(barNumber : Integer, BeatNumber : Integer)

   // Called every time the beat changes

end

 

Notes: This is a simple callback that is triggered on every beat. It is useful for simple operations such as doing something on every bar or on every 4th bar etc. While this callback has historically been used to create more sophisticated timeline events, we now recommend the new On Timeline callback which is much more efficient for tying events to particular bar/beat pair and does not require any testing to see determine the current bar or beat.