diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 9d78186..c11165b 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -80,7 +80,7 @@ function stop() { pitch = fft.analyze(); // https://p5js.org/reference/#/p5.SoundFile/getPeaks - amplitude = recording.getPeaks(); + amplitude = recording.getPeaks(1)[0] * 100; // https://p5js.org/reference/#/p5.SoundFile/duration duration = recording.duration();