6 lines
134 B
GDScript3
6 lines
134 B
GDScript3
|
|
class_name Metronome extends AudioStreamPlayer
|
||
|
|
|
||
|
|
func on_conductor_ticked(update: BeatUpdate) -> void:
|
||
|
|
if update.new_beat():
|
||
|
|
play()
|