|
%!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
screenshots | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
bpm_sync.gd | %!s(int64=4) %!d(string=hai) anos | |
bpm_sync.tscn | %!s(int64=4) %!d(string=hai) anos | |
icon.png | %!s(int64=4) %!d(string=hai) anos | |
icon.png.import | %!s(int64=5) %!d(string=hai) anos | |
lcd.ttf | %!s(int64=6) %!d(string=hai) anos | |
play_sound_button.png | %!s(int64=4) %!d(string=hai) anos | |
play_sound_button.png.import | %!s(int64=6) %!d(string=hai) anos | |
play_sound_button_hl.png | %!s(int64=4) %!d(string=hai) anos | |
play_sound_button_hl.png.import | %!s(int64=6) %!d(string=hai) anos | |
play_system_button.png | %!s(int64=4) %!d(string=hai) anos | |
play_system_button.png.import | %!s(int64=6) %!d(string=hai) anos | |
play_system_button_hl.png | %!s(int64=4) %!d(string=hai) anos | |
play_system_button_hl.png.import | %!s(int64=6) %!d(string=hai) anos | |
project.godot | %!s(int64=4) %!d(string=hai) anos | |
the_comeback2.ogg | %!s(int64=6) %!d(string=hai) anos | |
the_comeback2.ogg.import | %!s(int64=6) %!d(string=hai) anos |
A demo of how to sync the audio playback with the time for a consistent BPM.
Language: GDScript
Renderer: GLES 2
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/581
For the sound clock, it uses methods in
AudioServer
to sync the audio playback.
For the system clock, it uses OS.get_ticks_usec()
.