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.
1 parent 6c54c28 commit 147d826Copy full SHA for 147d826
src/app.js
@@ -13,7 +13,12 @@ p5.prototype.freqToMidi = freqToMidi;
13
import './errorHandler';
14
import './audioWorklet';
15
import './panner';
16
-import './soundfile';
+
17
+import SoundFile, { loadSound } from './soundfile';
18
+p5.SoundFile = SoundFile;
19
+p5.prototype.loadSound = loadSound;
20
+// register preload handling of loadSound
21
+p5.prototype.registerPreloadMethod('loadSound', p5.prototype);
22
23
import Amplitude from './amplitude';
24
p5.Amplitude = Amplitude;
src/panner.js
@@ -100,3 +100,5 @@ if (typeof ac.createStereoPanner !== 'undefined') {
100
}
101
};
102
103
104
+export default p5.Panner;
0 commit comments