Skip to content

Commit

Permalink
replacement of es5 functions to es6 classes feat p5.soundFile (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
endurance21 authored Aug 29, 2020
1 parent 6c54c28 commit 147d826
Show file tree
Hide file tree
Showing 3 changed files with 1,741 additions and 1,741 deletions.
7 changes: 6 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ p5.prototype.freqToMidi = freqToMidi;
import './errorHandler';
import './audioWorklet';
import './panner';
import './soundfile';

import SoundFile, { loadSound } from './soundfile';
p5.SoundFile = SoundFile;
p5.prototype.loadSound = loadSound;
// register preload handling of loadSound
p5.prototype.registerPreloadMethod('loadSound', p5.prototype);

import Amplitude from './amplitude';
p5.Amplitude = Amplitude;
Expand Down
2 changes: 2 additions & 0 deletions src/panner.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ if (typeof ac.createStereoPanner !== 'undefined') {
}
};
}

export default p5.Panner;
Loading

0 comments on commit 147d826

Please sign in to comment.