Skip to content

Commit

Permalink
replacement of es5 functions to es6 classes feat p5.Reverb ,p5.Convol…
Browse files Browse the repository at this point in the history
…ver (#539)
  • Loading branch information
endurance21 authored Aug 29, 2020
1 parent 0c3ce50 commit a683eb1
Show file tree
Hide file tree
Showing 2 changed files with 410 additions and 402 deletions.
10 changes: 9 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ p5.Panner3D = Panner3D;
import Delay from './delay';
p5.Delay = Delay;

import './reverb';

import { Reverb, Convolver, createConvolver } from './reverb';
p5.Reverb = Reverb;
p5.Convolver = Convolver;
p5.prototype.createConvolver = createConvolver;
p5.prototype.registerPreloadMethod('createConvolver', p5.prototype);


import Metro from './metro';
p5.Metro = Metro;
Expand All @@ -84,11 +90,13 @@ import Compressor from './compressor';
p5.Compressor = Compressor;



import peakDetect from './peakDetect';
p5.peakDetect = peakDetect;




import SoundRecorder from './soundRecorder';
p5.SoundRecorder = SoundRecorder;

Expand Down
Loading

0 comments on commit a683eb1

Please sign in to comment.