v-pukman-gd / godot-audio-waveform-module

Custom module for Godot Engine to draw audio waveforms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Godot Engine Audio Waveform Module

This is Godot Engine custom module based on the engine internal waveform preview code.

It copies original AudioStreamPreview and AudioStreamPreviewGenerator C++ classes and makes it available in GDScript.

Supported Godot version

It's compatible with Godot 3.4

Installing

If you don't have Godot source yet, download it from repo
git clone https://github.com/godotengine/godot.git

Checkout to supported branch git checkout 3.4

Copy the folder audio_stream_preview_generator to Godot modules folder

Recompile the engine (change the platform to yours)
scons platform=osx arch=arm64 --jobs=$(sysctl -n hw.logicalcpu)

And run the new build:
./bin/godot.osx.tools.arm64

Usage example

In opened project manager window, choose the project folder audio_wave_test

Look to audio_waveform.gd script. It contains an example of drawing a waveform.

Run the project.

Have fun!

About

Custom module for Godot Engine to draw audio waveforms


Languages

Language:C++ 84.7%Language:GDScript 11.2%Language:Python 3.0%Language:C 1.1%