Skip to content

Commit 862fdfc

Browse files
committed
cleanup
1 parent 16b632f commit 862fdfc

File tree

17 files changed

+369
-178
lines changed

17 files changed

+369
-178
lines changed

examples/Reverb_convolve_FFT/sketch.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* Convolution samples Creative Commons BY recordinghopkins, via freesound.org
1010
* https://www.freesound.org/people/recordinghopkins/
1111
*/
12-
1312
var sound, env, cVerb, fft;
1413
var currentIR = 0;
1514
var p;
@@ -80,7 +79,7 @@ function mousePressed() {
8079
// display the current Impulse Response name (the filepath)
8180
p.html('Convolution Impulse Response: ' + cVerb.impulses[currentIR].name);
8281

83-
rawImpulse.setBuffer('../_files/' + cVerb.impulses[currentIR].name);
82+
rawImpulse.setPath('../_files/' + cVerb.impulses[currentIR].name);
8483
}
8584

8685
function keyPressed() {
File renamed without changes.
File renamed without changes.

examples/outOfPhase/sketch.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ function setup() {
1616
fft = new p5.FFT();
1717
osc1.phase(.5);
1818
osc2.phase(0);
19+
osc1.amp(1);
20+
osc2.amp(1);
1921
osc1.start(); osc2.start();
2022

2123
phaseSlider = createSlider(0, 100, 50);

lib/p5.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ var core = function (require, shim, constants) {
319319
p5.prototype._registeredMethods[name] = [];
320320
}
321321
p5.prototype._registeredMethods[name].push(m);
322+
console.log(p5.prototype._registeredMethods);
322323
}.bind(this);
323324
return p5;
324325
}({}, shim, constants);

0 commit comments

Comments
 (0)