Skip to content

Commit

Permalink
make sound more intermittent
Browse files Browse the repository at this point in the history
  • Loading branch information
MathuraMG committed Nov 23, 2016
1 parent f8b3390 commit dc005e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soundInterceptor/intercept-p5.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dc005e0

Please sign in to comment.