Next.js Discord

Discord Forum

Count Sound Spike

Unanswered
Masai Lion posted this in #help-forum
Open in Discord
Masai LionOP
How can i find the total wide sound spike ?
like for the image there are, total occurrences of wide sound spikes followed by small sound spikes is 3

And, how can i find the small sound spike a after each wide sound spike ?
like for first it is 1, for second 7 and for third is 2

The audio is random and the sound waveform is similar but the smalls sound spike is different in every sound audio

9 Replies

You'll need to use some library that can turn the audio into waveform data. You can then analyse the data yourself to see if there are spikes
@Clown You'll need to use some library that can turn the audio into waveform data. You can then analyse the data yourself to see if there are spikes
Masai LionOP
the audio file,of which the graph is
Man unfortunately i have tried something similar in c++ but i dont have the code anymore.
Masai LionOP
oh it's fine
Try something like waveform-data. It seems to have the conversion part down. Be sure to check the Web Audio Api section. Other than that its mostly you traversing the data and finding patches where waveform is spiking