Motion
Get Motion

ReferenceScripting APIMotionPlayOptions

MotionPlayOptions

interface

How a sound plays: its volume (0 to 2), pan (-1 left to 1 right), speed (0.25 to 4, faster is higher), whether it loops, its fade in and where it starts (seconds).

NameMotionPlayOptions
Kindinterface
Since0.3

Syntax

interface MotionPlayOptions { … }

Properties

NameTypeDescription
volumepropertynumberHow loud, 0 to 2 (1 unless given).
panpropertynumberWhere it's heard, -1 left to 1 right (0, the middle, unless given).
ratepropertynumberHow fast it plays, 0.25 to 4 (1 unless given): faster is higher.
looppropertybooleanTrue to play it round and round until it's stopped.
fadeInpropertynumberSeconds it takes to fade in from silence (0, at once, unless given; 60 at most).
offsetpropertynumberSeconds into the sound where it starts (0, its start, unless given).