summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2017-12-26 17:00:03 +0200
committerJustin Worthe <justin@worthe-it.co.za>2017-12-26 17:00:03 +0200
commitda50c0294696c3a327db4b2a0a089d7977df488e (patch)
tree229f0acd9016f8911932ba059256b8cd7ff0c7f1 /web
parenta26c2acc49a03b544d54a088b660618b5de9a64c (diff)
Refactored to use more extensive typing
Diffstat (limited to 'web')
-rw-r--r--web/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/main.js b/web/main.js
index 97609e3..02e94fc 100644
--- a/web/main.js
+++ b/web/main.js
@@ -129,9 +129,9 @@ var hzToPitch = function(hz) {
return wrapped(hz);
};
-function correlation(data) {
+function correlation(data, samplingRate) {
return jsArrayToF32ArrayPtrMutateInPlace(data, function(dataPtr, dataLength) {
- Module._correlation(dataPtr, dataLength);
+ Module._correlation(dataPtr, dataLength, samplingRate);
});
}