ShatteredReality b4c73f4888 Fix README links to asset library (#1078) | 5 月之前 | |
---|---|---|
.. | ||
screenshots | 4 年之前 | |
README.md | 5 月之前 | |
bpm_sync.gd | 6 月之前 | |
bpm_sync.tscn | 6 月之前 | |
icon.webp | 1 年之前 | |
icon.webp.import | 1 年之前 | |
lcd.ttf | 5 年之前 | |
lcd.ttf.import | 10 月之前 | |
play_sound_button.png | 4 年之前 | |
play_sound_button.png.import | 10 月之前 | |
play_sound_button_hl.png | 4 年之前 | |
play_sound_button_hl.png.import | 10 月之前 | |
play_system_button.png | 4 年之前 | |
play_system_button.png.import | 10 月之前 | |
play_system_button_hl.png | 4 年之前 | |
play_system_button_hl.png.import | 10 月之前 | |
project.godot | 6 月之前 | |
the_comeback2.ogg | 5 年之前 | |
the_comeback2.ogg.import | 10 月之前 |
A demo of how to sync the audio playback with the time for a consistent BPM.
Language: GDScript
Renderer: Compatibility
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2757
For the sound clock, it uses methods in
AudioServer
to sync the audio playback.
For the system clock, it uses OS.get_ticks_usec()
.