Document inline

This commit is contained in:
Luke Murphy 2020-02-07 10:35:39 +01:00
parent 8001d09b57
commit abcb47aa6a
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

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