Appearance
hm5-types (source format) / SoundClip
Interface: SoundClip
One sound on a sound layer. Only its START is stored (a frame, or the keyframe it is bound to); its length comes from the audio: the part between trimStart and trimEnd, played loops times.
Properties
| Property | Type | Description |
|---|---|---|
anchor? | object | bound to a keyframe of another layer: the sound starts where that keyframe starts and moves with it. keyId = Keyframe.id. |
anchor.keyId | string | - |
anchor.layerId | string | - |
assetId | string | an AssetMeta of type "audio" |
effect? | SoundEffect | absent = "none" |
fade? | number | fade length in seconds for the fade effects; absent = 1 |
group? | SoundGroup | absent = "effects" (owner 2026-11-06) |
id | string | - |
loops? | number | plays this many times; 0 = loops forever; absent = 1 |
start | number | start frame (0-based) in the scene. With anchor it is only the fallback used when that keyframe no longer exists. |
sync? | SoundSync | absent = "event" |
trimEnd? | number | seconds into the audio where it ends; absent = its full length |
trimStart? | number | seconds cut off the head of the audio; absent = 0 |
volume? | number | 0..1; absent = 1 |