Generate Audio in Godot

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Technipion

Is there a way to generate audio by waveform?
I have a func in GDScript that computes the waveform of a sound in the form w(t). Is it possible to play this waveform somehow? Simple example:
Could I generate arbitrary sine-waves by script (and during runtime based on user input)?

Thx