We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 85fc70c + d36a199 commit ad937dfCopy full SHA for ad937df
examples/mixingSounds/sketch.js
@@ -22,15 +22,15 @@ function setup() {
22
sound1.disconnect(); // diconnect from p5 output
23
24
gain1 = new p5.Gain(); // setup a gain node
25
- gain1.connectSource(sound1); // connect the first sound to its input
+ gain1.setInput(sound1); // connect the first sound to its input
26
gain1.connect(gain3); // connect its output to the 'master'
27
28
sound2.rate(1);
29
sound2.disconnect();
30
sound2.loop();
31
32
gain2 = new p5.Gain();
33
- gain2.connectSource(sound2);
+ gain2.setInput(sound2);
34
gain2.connect(gain3);
35
36
}
0 commit comments