ShatteredReality b4c73f4888 Fix README links to asset library (#1078) | 5 kuukautta sitten | |
---|---|---|
.. | ||
README.md | 5 kuukautta sitten | |
generator.tscn | 1 vuosi sitten | |
generator_demo.gd | 5 kuukautta sitten | |
icon.webp | 1 vuosi sitten | |
icon.webp.import | 1 vuosi sitten | |
project.godot | 5 kuukautta sitten |
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: Compatibility
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2759
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
.