TempoMap

interface TempoMap

A project's tempo curve: conversion between real-world seconds and quarter-note beats, plus the time signature in force over each beat range. "Beat" always means a quarter note, matching BPM and MIDI tick-resolution conventions.

A curve with no tempo data still converts, at the default BPM it was built with (hasTempoData is false in that case).

Inheritors

AndroidTempoMap
JsTempoMap
JvmTempoMap
NativeTempoMap
WasmJsTempoMap

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Meter regions, in beat order.

Link copied to clipboard
abstract val hasTempoData: Boolean
Link copied to clipboard
abstract val isEmpty: Boolean

Functions

Link copied to clipboard
abstract fun beatsToSeconds(beats: Double): Double
Link copied to clipboard
abstract fun secondsToBeats(seconds: Double): Double