No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
3 additions and
3 deletions
-
voicegardens/static/voicegardens.js
|
@ -69,9 +69,6 @@ function stop() { |
|
|
if (recorder.recording) { |
|
|
if (recorder.recording) { |
|
|
recorder.stop(); |
|
|
recorder.stop(); |
|
|
|
|
|
|
|
|
// signal to the draw loop that we should generate a new shape
|
|
|
|
|
|
newSoundJustRecorded = true; |
|
|
|
|
|
|
|
|
|
|
|
// https://p5js.org/reference/#/p5.SoundFile/getPeaks
|
|
|
// https://p5js.org/reference/#/p5.SoundFile/getPeaks
|
|
|
amplitude = recording.getPeaks(1)[0] * 100; |
|
|
amplitude = recording.getPeaks(1)[0] * 100; |
|
|
|
|
|
|
|
@ -80,6 +77,9 @@ function stop() { |
|
|
|
|
|
|
|
|
// automatically archive this sound to the back-end
|
|
|
// automatically archive this sound to the back-end
|
|
|
sendToArchive(); |
|
|
sendToArchive(); |
|
|
|
|
|
|
|
|
|
|
|
// signal to the draw loop that we should generate a new shape
|
|
|
|
|
|
newSoundJustRecorded = true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|