Skip to content

Commit 4da9b7b

Browse files
Fixed some linting errors (#575)
1 parent 18c427d commit 4da9b7b

File tree

3 files changed

+2
-28
lines changed

3 files changed

+2
-28
lines changed

src/app.js

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ p5.prototype.userStartAudio = userStartAudio;
77

88
import './master';
99

10-
1110
import {
1211
sampleRate,
1312
freqToMidi,
@@ -21,10 +20,7 @@ import {
2120
interleave,
2221
writeUTFBytes,
2322
safeBufferSize,
24-
25-
saveSound
26-
27-
23+
saveSound,
2824
} from './helpers';
2925
p5.prototype.sampleRate = sampleRate;
3026
p5.prototype.freqToMidi = freqToMidi;
@@ -44,7 +40,6 @@ p5.prototype.saveSound = saveSound;
4440
// Oscillators etc when sketch ends
4541
p5.prototype.registerMethod('remove', p5.prototype.disposeSound);
4642

47-
4843
import './errorHandler';
4944
import './audioWorklet';
5045

@@ -57,7 +52,6 @@ p5.prototype.loadSound = loadSound;
5752
// register preload handling of loadSound
5853
p5.prototype.registerPreloadMethod('loadSound', p5.prototype);
5954

60-
6155
import Amplitude from './amplitude';
6256
p5.Amplitude = Amplitude;
6357

@@ -75,15 +69,12 @@ p5.SqrOsc = SqrOsc;
7569

7670
import './envelope';
7771

78-
7972
import Noise from './noise';
8073
p5.Noise = Noise;
8174

8275
import Pulse from './pulse';
8376
p5.Pulse = Pulse;
8477

85-
86-
8778
import AudioIn from './audioin';
8879
p5.AudioIn = AudioIn;
8980

@@ -108,42 +99,29 @@ p5.Panner3D = Panner3D;
10899
import Delay from './delay';
109100
p5.Delay = Delay;
110101

111-
112-
113-
114102
import { Reverb, Convolver, createConvolver } from './reverb';
115103
p5.Reverb = Reverb;
116104
p5.Convolver = Convolver;
117105
p5.prototype.createConvolver = createConvolver;
118106
p5.prototype.registerPreloadMethod('createConvolver', p5.prototype);
119107

120-
121-
122108
import Metro from './metro';
123109
p5.Metro = Metro;
124110

125-
126111
import { Phrase, Part, Score } from './looper';
127112
p5.Phrase = Phrase;
128113
p5.Part = Part;
129114
p5.Score = Score;
130115

131-
132116
import SoundLoop from './soundLoop';
133117
p5.SoundLoop = SoundLoop;
134118

135-
136119
import Compressor from './compressor';
137120
p5.Compressor = Compressor;
138121

139-
140-
141122
import peakDetect from './peakDetect';
142123
p5.peakDetect = peakDetect;
143124

144-
145-
146-
147125
import SoundRecorder from './soundRecorder';
148126
p5.SoundRecorder = SoundRecorder;
149127

src/helpers.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ function safeBufferSize(idealBufferSize) {
331331
return bufferSize;
332332
}
333333

334-
335334
/**
336335
* Save a p5.SoundFile as a .wav file. The browser will prompt the user
337336
* to download the file to their device.
@@ -349,7 +348,6 @@ function saveSound(soundFile, fileName) {
349348
p5.prototype.writeFile([dataView], fileName, 'wav');
350349
}
351350

352-
353351
export {
354352
sampleRate,
355353
freqToMidi,
@@ -363,5 +361,5 @@ export {
363361
interleave,
364362
writeUTFBytes,
365363
safeBufferSize,
366-
saveSound
364+
saveSound,
367365
};

src/panner.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,4 @@ if (typeof ac.createStereoPanner !== 'undefined') {
108108
panner = Panner;
109109
}
110110

111-
112111
export default panner;
113-

0 commit comments

Comments
 (0)