Skip to content

Commit 91d8b34

Browse files
authored
replacement of es5 functions to es6 classes feat p5.SoundLoop (#530)
1 parent 4d65d7c commit 91d8b34

File tree

2 files changed

+249
-257
lines changed

2 files changed

+249
-257
lines changed

src/app.js

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,40 +42,33 @@ p5.BandPass = BandPass;
4242
import EQ from './eq';
4343
p5.EQ = EQ;
4444

45-
46-
4745
import listener3D from './listener3d';
4846
p5.listener3D = listener3D;
4947

50-
51-
5248
import Panner3D from './panner3d';
5349
p5.Panner3D = Panner3D;
5450

55-
56-
5751
import Delay from './delay';
5852
p5.Delay = Delay;
5953

60-
6154
import './reverb';
6255

6356
import Metro from './metro';
6457
p5.Metro = Metro;
6558

6659
import './looper';
67-
import './soundLoop';
60+
61+
import SoundLoop from './soundLoop';
62+
p5.SoundLoop = SoundLoop;
6863

6964
import Compressor from './compressor';
7065
p5.Compressor = Compressor;
7166

7267
import './soundRecorder';
7368

74-
7569
import peakDetect from './peakDetect';
7670
p5.peakDetect = peakDetect;
7771

78-
7972
import Distortion from './distortion';
8073
p5.Distortion = Distortion;
8174

@@ -88,11 +81,8 @@ p5.AudioVoice = AudioVoice;
8881
import MonoSynth from './monosynth';
8982
p5.MonoSynth = MonoSynth;
9083

91-
92-
9384
import OnsetDetect from './onsetDetect';
9485
p5.OnsetDetect = OnsetDetect;
9586

9687
import PolySynth from './polysynth';
9788
p5.PolySynth = PolySynth;
98-

0 commit comments

Comments
 (0)