0

I have a system that register sound from guitar chords to an Arduino. The result for each chord is an array of numbers between 0 and 1024. So one array represent an audio spectrum. I send each array to a nodeJS server. I'd like to compute the envelope of each audio spectrum, but i dunno how to achieve that. If possible, I'd prefer to use a javascript solution, as my server is in javascript.

I add an approximate drawing. What I have is the blue data ; what I want is an array containing the red data.

enter image description here

MrFlo
  • 309
  • 1
  • 5
  • 14
  • You could explore ADSRNode https://github.com/voidqk/adsrnode – Sujeet Jaiswal Dec 10 '19 at 15:13
  • I have this impression that it makes the exact opposite that I want : it created an envelope from data, decay, sustain and release. I have a signal and need a function to retrieve the envelope – MrFlo Dec 10 '19 at 15:38

0 Answers0