Motion
Get Motion

ReferenceLayersSound and time

Sound

A sound, played from the start, on click or by script.

Kind
Layer · Sound and time
Script name
sound
Cost to draw
Light
Draws
Nothing: it plays a sound, so there's no picture of it

Sound

SettingKindStarts atRange and notes
Filesourcesound filenoneWAV, OGG, MP3 or FLAC
PlaystriggerchoiceFrom the startFrom the start, On each click, When the script saysThe script plays any of them with scene.sound(name).play()
Playingplayingon or offonKeys and the timeline can switch it
Looploopon or offon–
Volumevolumenumber80%0% to 100%
Left and rightpannumber0%-100% to 100%
Fade infadeInnumber0 s0 to 10 s
Fade outfadeOutnumber0 s0 to 10 s
Start atoffsetnumber0 s0 to 600 s
Speedratenumber1×0.25 to 4×Faster is higher pitched

Mixer

SettingKindStarts atRange and notes
Busbuswordseffects–
Pan by its placeautoPanon or offoffFollows its place on screen
Crossfadecrossfadenumber0 s0 to 10 sWhen the file changes

From a script

Every setting above can be changed by the scene's logic, by its key. Say the layer is called Sound:

scene.set("Sound", "volume", 1);scene.animate("Sound", "opacity", 0.5, 2);

Used in

The example scenes with a Sound layer in them. Each picture is the whole scene, not the layer alone: open one to see what the layer does in it.

What every layer has

Besides its own settings, every layer has its opacity, blend, placement, quick effects and an effects stack. They're listed once, on the layers page.