How I can get real-time audio data?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By toby3d
:warning: Old Version Published before Godot 3 was released.

I want to create a music based game. How I can get real-time data currently playing music in SamplePlayer2D or other types of audio nodes? Like Peak, RMS and other?

:bust_in_silhouette: Reply From: Freeman

That would be possible only with c++ (and it’s already done, as the audio volume indicator is present in Godot editor, in the upper right corner).
At present there is no GDScript component that would be able to use real-time audio data such as RMS or Peak values.