|
8 miesięcy temu | |
---|---|---|
.. | ||
screenshots | 4 lat temu | |
README.md | 4 lat temu | |
bpm_sync.gd | 1 rok temu | |
bpm_sync.tscn | 2 lat temu | |
icon.webp | 1 rok temu | |
icon.webp.import | 1 rok temu | |
lcd.ttf | 5 lat temu | |
lcd.ttf.import | 8 miesięcy temu | |
play_sound_button.png | 4 lat temu | |
play_sound_button.png.import | 8 miesięcy temu | |
play_sound_button_hl.png | 4 lat temu | |
play_sound_button_hl.png.import | 8 miesięcy temu | |
play_system_button.png | 4 lat temu | |
play_system_button.png.import | 8 miesięcy temu | |
play_system_button_hl.png | 4 lat temu | |
play_system_button_hl.png.import | 8 miesięcy temu | |
project.godot | 8 miesięcy temu | |
the_comeback2.ogg | 5 lat temu | |
the_comeback2.ogg.import | 8 miesięcy temu |
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()
.