2026-01-25 03:26:34 +08:00
|
|
|
## Class that packs an [AudioStream] with additional information
|
|
|
|
|
## to sync beats to it.
|
2026-01-19 22:48:17 +08:00
|
|
|
class_name Music extends Resource
|
|
|
|
|
|
|
|
|
|
## Music AudioStream.
|
|
|
|
|
@export var stream: AudioStream = null
|
|
|
|
|
|
|
|
|
|
## Music offset in seconds.
|
|
|
|
|
@export var offset: float = 0.0
|
|
|
|
|
|
|
|
|
|
## BPM data to sync to the music.
|
|
|
|
|
@export var tempo: Tempo = Tempo.new()
|