Document inline
This commit is contained in:
parent
8001d09b57
commit
abcb47aa6a
@ -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…
Reference in New Issue
Block a user