Lens Scripting API
    Preparing search index...

    Class SoundSync

    Represents beat synchronization data for a music track.

    Hierarchy (View Summary)

    Index

    Properties

    allBeatsTimestampMS: number[]

    Timestamps of all beats in the music track in milliseconds.

    beatPeriodMS: number

    The interval between consecutive beats in milliseconds.

    beatsPerMinute: number

    Tempo of the music track expressed as beats per minute (BPM).

    downbeatsTimestampsMS: number[]

    Timestamps of downbeats in milliseconds.

    numBeatsInMeasure: number

    Number of beats in each musical measure of this music track.

    trackDurationSeconds: number

    Total duration of the track in seconds.

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean