Skip to content

Commit ad937df

Browse files
authored
Merge pull request #159 from TheFernDawg/master
Fixes mixingSound Example
2 parents 85fc70c + d36a199 commit ad937df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/mixingSounds/sketch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ function setup() {
2222
sound1.disconnect(); // diconnect from p5 output
2323

2424
gain1 = new p5.Gain(); // setup a gain node
25-
gain1.connectSource(sound1); // connect the first sound to its input
25+
gain1.setInput(sound1); // connect the first sound to its input
2626
gain1.connect(gain3); // connect its output to the 'master'
2727

2828
sound2.rate(1);
2929
sound2.disconnect();
3030
sound2.loop();
3131

3232
gain2 = new p5.Gain();
33-
gain2.connectSource(sound2);
33+
gain2.setInput(sound2);
3434
gain2.connect(gain3);
3535

3636
}

0 commit comments

Comments
 (0)