No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
5 additions and
1 deletions
-
voicegardens/static/voicegardens.js
|
@ -77,9 +77,13 @@ function stop() { |
|
|
// signal to the draw loop that we should generate a new shape
|
|
|
// signal to the draw loop that we should generate a new shape
|
|
|
newSoundJustRecorded = true; |
|
|
newSoundJustRecorded = true; |
|
|
|
|
|
|
|
|
// store sound properties from recording
|
|
|
// https://p5js.org/reference/#/p5.FFT/analyze
|
|
|
pitch = fft.analyze(); |
|
|
pitch = fft.analyze(); |
|
|
|
|
|
|
|
|
|
|
|
// https://p5js.org/reference/#/p5.SoundFile/getPeaks
|
|
|
amplitude = recording.getPeaks(); |
|
|
amplitude = recording.getPeaks(); |
|
|
|
|
|
|
|
|
|
|
|
// https://p5js.org/reference/#/p5.SoundFile/duration
|
|
|
duration = recording.duration(); |
|
|
duration = recording.duration(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|