Motion
Get Motion

ReferenceScripting APIMotionBeat

MotionBeat

interface

The beat of what's playing.

NameMotionBeat
Kindinterface
Script reaches it asMotionScene.beat
Since0.3

Syntax

interface MotionBeat { … }

Properties

NameTypeDescription
pulsepropertyreadonly numberA pulse on each beat: 1 as it lands, falling to 0.
countpropertyreadonly numberHow many beats there have been.
sincepropertyreadonly numberSeconds since the last beat.
bpmpropertyreadonly numberBeats a minute, from the last few beats; 0 until there have been some.
onsetpropertyreadonly booleanTrue just as a beat lands (within 0.15 seconds of it).