I’m looking for a way to animate a sprite base on the Amplitude of the audio being played (Not to be confused with Volume). The idea is I want to be able to control what animation is being played depending on the actual amplitude of the audio file being played, sort of like those waveform lines that change size in a music video. Any way to do this?
I think this is more or less what you are asking for
GDevelopApp:main
← GDevelopApp:extension/giannpls/1408
opened 04:24AM - 13 Oct 24 UTC
### Description
This extension provides the ability to record audio from the … microphone and play it back through the speakers. It also provides the ability to monitor real-time audio data from the microphone and master output, which can be used to create audio visualizations such as a spectrogram, oscilloscope, RMS/Peak meter, or other animations which respond to properties of the audio signal.
### How to use the extension
The extension provides events (StartMicRecording/StopMicRecording) to record audio from the microphone using the MediaStream Recording API, and then the SaveMicRecording event pushes those recordings to the project data so that the recording can be played back through the sound manager with the PlayMicRecording event. It also provides access to real-time audio data from the microphone and the Howler master output with GetAnalyzerFrequencyData/GetAnalyzerTimeDomainData events (which use WebAudio AnalyserNode objects), to allow a user to create audio visualizations
### Checklist
- [X] I've followed all of [the best practices](http://wiki.compilgames.net/doku.php/gdevelop5/extensions/best-practices).
- [X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
- [X] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.
### What tier of review do you aim for your extension?
Community (Unreviewed)
### Example file
[42db3c5d-d779-4c9f-b95e-b81f0f802bd7.zip](https://github.com/user-attachments/files/17469698/42db3c5d-d779-4c9f-b95e-b81f0f802bd7.zip)
### Extension file
[AudioVisualizer.zip](https://github.com/user-attachments/files/17469701/AudioVisualizer.zip)
Alright, I’ll see if it can do what I need it to do
Update: This extension has some crashes with it, so won’t be of much use to me at this time. Any other ideas anyone has?