Aaron Franke 814909538f Update projects to Godot 3.3 il y a 4 ans
..
README.md d4bf89d364 Link to the asset library from the README of each demo il y a 4 ans
generator.tscn 617896737e Update Audio demos for Godot 3.1.1 il y a 4 ans
generator_demo.gd 918a289ee2 Format files using updated file_format.sh il y a 4 ans
project.godot 814909538f Update projects to Godot 3.3 il y a 3 ans

README.md

Audio Generator

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

How does it work?

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.