Browse Source

Document inline

main
Luke Murphy 5 years ago
parent
commit
abcb47aa6a
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 6
      voicegardens/static/voicegardens.js

6
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();
}
}

Loading…
Cancel
Save