8000 Merge pull request #22 from NeuroJS/master · JavaScriptIOT/dsp.js@561a4c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 561a4c9

Browse files
committed
Merge pull request corbanbrook#22 from NeuroJS/master
Adding npm and node.js support
2 parents 3c0da70 + 49191f3 commit 561a4c9

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
examples/audio
33
.project
44
*~
5+
.idea

dsp.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,3 +2300,23 @@ Reverb.prototype.process = function (interleavedSamples){
23002300
return outputSamples;
23012301
};
23022302

2303+
if (module && typeof module.exports !== 'undefined') {
2304+
module.exports = {
2305+
DSP: DSP,
2306+
DFT: DFT,
2307+
FFT: FFT,
2308+
RFFT: RFFT,
2309+
Sampler: Sampler,
2310+
Oscillator: Oscillator,
2311+
ADSR: ADSR,
2312+
IIRFilter: IIRFilter,
2313+
IIRFilter2: IIRFilter2,
2314+
WindowFunction: WindowFunction,
2315+
sinh: sinh,
2316+
Biquad: Biquad,
2317+
GraphicalEq: GraphicalEq,
2318+
MultiDelay: MultiDelay,
2319+
SingleDelay: SingleDelay,
2320+
Reverb: Reverb
2321+
};
2322+
}

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "dsp.js",
3+
"version": "1.0.0",
4+
"description": "Digital Signal Processing for Javascript http://weare.buildingsky.net" AC9A ,
5+
"main": "dsp.js",
6+
"directories": {
7+
"example": "examples",
8+
"test": "test"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/corbanbrook/dsp.js.git"
13+
},
14+
"keywords": [
15+
"dsp",
16+
"dft",
17+
"fft"
18+
],
19+
"author": "Corban Brook",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/corbanbrook/dsp.js/issues"
23+
},
24+
"homepage": "https://github.com/corbanbrook/dsp.js#readme"
25+
}

0 commit comments

Comments
 (0)
0