diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index d4c712e..ef3286a 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -77,9 +77,13 @@ function stop() { // signal to the draw loop that we should generate a new shape newSoundJustRecorded = true; - // store sound properties from recording + // https://p5js.org/reference/#/p5.FFT/analyze pitch = fft.analyze(); + + // https://p5js.org/reference/#/p5.SoundFile/getPeaks amplitude = recording.getPeaks(); + + // https://p5js.org/reference/#/p5.SoundFile/duration duration = recording.duration(); } }