TickOptions

data class TickOptions(val isPlaying: Boolean, val eventCreationTime: Double? = null, val smoothScroll: Boolean? = null, val globalLyricOffset: Double? = null, val lyricOffset: Double? = null, val richsyncOffsetTrim: Double? = null, val lineOffsetTrim: Double? = null, val passiveScrollEnabled: Boolean? = null, val playbackRate: Double? = null, val followPausedSeeks: Boolean? = null)(source)

The play state is the only thing a tick cannot be given a sensible default for. Everything else describes a setting the consumer may not have, so it may be left out.

Constructors

Link copied to clipboard
constructor(isPlaying: Boolean, eventCreationTime: Double? = null, smoothScroll: Boolean? = null, globalLyricOffset: Double? = null, lyricOffset: Double? = null, richsyncOffsetTrim: Double? = null, lineOffsetTrim: Double? = null, passiveScrollEnabled: Boolean? = null, playbackRate: Double? = null, followPausedSeeks: Boolean? = null)

Properties

Link copied to clipboard

Wall clock timestamp of the player snapshot the time came from, in milliseconds. Defaults to -1, which reads as a time that was not sampled from a live player.

Link copied to clipboard

Whether a paused clock that moves by less than the jump threshold resets the highlight to the new time, as an editor scrubbing a paused song needs. Defaults to false (1.18.0).

Link copied to clipboard

User offsets, in seconds, subtracted from the playback time before matching. Each defaults to 0.

Link copied to clipboard

Whether the song is playing.

Link copied to clipboard

Taken off the theme's line synced timing offset, in seconds.

Link copied to clipboard

The song's own lyric offset, in seconds, which moves the lyrics later.

Link copied to clipboard

Whether the user has passive scrolling switched on. Only unsynced lyrics use it. Defaults to false.

Link copied to clipboard

How fast the song moves through its own timeline, as a multiple of real time. Defaults to 1, and zero or less reads as 1 because isPlaying is what says a song is stopped.

Link copied to clipboard

Taken off the theme's word synced timing offset, in seconds.

Link copied to clipboard

Defaults to true.