Hugo Locurcio 2a962929f3 Update demo files for Godot 4.2.1 (#1013) | há 9 meses atrás | |
---|---|---|
.. | ||
README.md | há 4 anos atrás | |
generator.tscn | há 1 ano atrás | |
generator_demo.gd | há 1 ano atrás | |
icon.webp | há 1 ano atrás | |
icon.webp.import | há 1 ano atrás | |
project.godot | há 9 meses atrás |
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
.