Aaron Franke 814909538f Update projects to Godot 3.3 | 4 роки тому | |
---|---|---|
.. | ||
README.md | 4 роки тому | |
generator.tscn | 4 роки тому | |
generator_demo.gd | 4 роки тому | |
project.godot | 3 роки тому |
This is a demo showing how one can generate and play audio samples from GDScript. It plays a simple 440 Hz sine wave at 22050 Hz.
Language: GDScript
Renderer: GLES 2
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/526
It uses the push_frame()
method on an AudioStreamGeneratorPlayback
object, which is inside of an
AudioStreamPlayer
node, to generate audio frame-by-frame based on pulse_hz
.