mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2025-01-04 14:49:41 +01:00
21 lines
507 B
Markdown
21 lines
507 B
Markdown
# Audio BPM Sync
|
|
|
|
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
|
|
|
|
## How does it work?
|
|
|
|
For the sound clock, it uses methods in
|
|
[`AudioServer`](https://docs.godotengine.org/en/latest/classes/class_audioserver.html)
|
|
to sync the audio playback.
|
|
For the system clock, it uses `OS.get_ticks_usec()`.
|
|
|
|
## Screenshots
|
|
|
|
![Screenshot](screenshots/bpm.png)
|