From dc005e07b691cf16642108f83024daad2e9d70e4 Mon Sep 17 00:00:00 2001 From: mathuramg Date: Tue, 22 Nov 2016 19:59:44 -0500 Subject: [PATCH] make sound more intermittent --- soundInterceptor/intercept-p5.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soundInterceptor/intercept-p5.js b/soundInterceptor/intercept-p5.js index 406f3c3..985f8e1 100644 --- a/soundInterceptor/intercept-p5.js +++ b/soundInterceptor/intercept-p5.js @@ -104,7 +104,7 @@ funcNames.forEach(function(x){ //fn = f0 * (a)n currLogFreq = 440 * Math.pow(Math.pow(2,(1/12)),currNote); currVol = 0.4; - x_coord = frameCount%10 - 5; + x_coord = frameCount%16 - 8; currVol = 2*objectCount*Math.exp(-((x_coord+2*objectCount)*(x_coord+2*objectCount))); currPan = (objects[objectCount-1].xPosCurr/width)*2 - 1; oscillatorNode.frequency.value = currLogFreq;