Audio Generator Demo's icon

Audio Generator Demo 4.2-31d1c0c Demos 4.2 Featured

Submitted by user Godot Engine; MIT; 2024-03-28

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.

How it works:

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`.

Language: GDScript

Renderer: Compatibility


View files Download Submit an issue Recent Edits