godot-demo-projects/audio/bpm_sync
Simon Proctor 5e8f722c91
Change warning ignores to use a string identifier (#842)
Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-02-16 20:14:51 +01:00
..
screenshots Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
README.md Link to the asset library from the README of each demo 2020-09-10 15:37:10 -04:00
bpm_sync.gd Change warning ignores to use a string identifier (#842) 2023-02-16 20:14:51 +01:00
bpm_sync.tscn Update Audio demos to Godot 4 2022-03-26 20:48:33 -05:00
icon.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
icon.png.import Update Audio demos to Godot 4 2022-03-26 20:48:33 -05:00
lcd.ttf
lcd.ttf.import Update Audio demos to Godot 4 2022-03-26 20:48:33 -05:00
play_sound_button.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
play_sound_button.png.import Update Audio demos to Godot 4 2022-03-26 20:48:33 -05:00
play_sound_button_hl.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
play_sound_button_hl.png.import Update Audio demos to Godot 4 2022-03-26 20:48:33 -05:00
play_system_button.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
play_system_button.png.import Update Audio demos to Godot 4 2022-03-26 20:48:33 -05:00
play_system_button_hl.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
play_system_button_hl.png.import Update Audio demos to Godot 4 2022-03-26 20:48:33 -05:00
project.godot Update Audio demos to Godot 4 2022-03-26 20:48:33 -05:00
the_comeback2.ogg
the_comeback2.ogg.import Update Audio demos to Godot 4 2022-03-26 20:48:33 -05:00

README.md

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 to sync the audio playback. For the system clock, it uses OS.get_ticks_usec().

Screenshots

Screenshot