Skip to content

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 ​

PropertyTypeDescription
anchor?objectbound to a keyframe of another layer: the sound starts where that keyframe starts and moves with it. keyId = Keyframe.id.
anchor.keyIdstring-
anchor.layerIdstring-
assetIdstringan AssetMeta of type "audio"
effect?SoundEffectabsent = "none"
fade?numberfade length in seconds for the fade effects; absent = 1
group?SoundGroupabsent = "effects" (owner 2026-11-06)
idstring-
loops?numberplays this many times; 0 = loops forever; absent = 1
startnumberstart frame (0-based) in the scene. With anchor it is only the fallback used when that keyframe no longer exists.
sync?SoundSyncabsent = "event"
trimEnd?numberseconds into the audio where it ends; absent = its full length
trimStart?numberseconds cut off the head of the audio; absent = 0
volume?number0..1; absent = 1

HereSplash — 2D animation for the web