@codexo/exojs-audio-fx 0.14.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +25 -0
  3. package/dist/esm/AudioAnalyser.d.ts +124 -0
  4. package/dist/esm/AudioAnalyser.js +472 -0
  5. package/dist/esm/AudioAnalyser.js.map +1 -0
  6. package/dist/esm/BeatDetector.d.ts +203 -0
  7. package/dist/esm/BeatDetector.js +422 -0
  8. package/dist/esm/BeatDetector.js.map +1 -0
  9. package/dist/esm/dsp/fft.d.ts +22 -0
  10. package/dist/esm/dsp/mel.d.ts +43 -0
  11. package/dist/esm/dsp/mel.js +70 -0
  12. package/dist/esm/dsp/mel.js.map +1 -0
  13. package/dist/esm/dsp/tempogram.d.ts +51 -0
  14. package/dist/esm/effects/ChorusEffect.d.ts +53 -0
  15. package/dist/esm/effects/ChorusEffect.js +154 -0
  16. package/dist/esm/effects/ChorusEffect.js.map +1 -0
  17. package/dist/esm/effects/CompressorEffect.d.ts +53 -0
  18. package/dist/esm/effects/CompressorEffect.js +122 -0
  19. package/dist/esm/effects/CompressorEffect.js.map +1 -0
  20. package/dist/esm/effects/DelayEffect.d.ts +35 -0
  21. package/dist/esm/effects/DelayEffect.js +113 -0
  22. package/dist/esm/effects/DelayEffect.js.map +1 -0
  23. package/dist/esm/effects/DuckingEffect.d.ts +43 -0
  24. package/dist/esm/effects/DuckingEffect.js +172 -0
  25. package/dist/esm/effects/DuckingEffect.js.map +1 -0
  26. package/dist/esm/effects/EqualizerEffect.d.ts +50 -0
  27. package/dist/esm/effects/EqualizerEffect.js +137 -0
  28. package/dist/esm/effects/EqualizerEffect.js.map +1 -0
  29. package/dist/esm/effects/GranularEffect.d.ts +62 -0
  30. package/dist/esm/effects/GranularEffect.js +107 -0
  31. package/dist/esm/effects/GranularEffect.js.map +1 -0
  32. package/dist/esm/effects/PitchShiftEffect.d.ts +44 -0
  33. package/dist/esm/effects/PitchShiftEffect.js +66 -0
  34. package/dist/esm/effects/PitchShiftEffect.js.map +1 -0
  35. package/dist/esm/effects/ReverbEffect.d.ts +37 -0
  36. package/dist/esm/effects/ReverbEffect.js +121 -0
  37. package/dist/esm/effects/ReverbEffect.js.map +1 -0
  38. package/dist/esm/effects/VocoderEffect.d.ts +48 -0
  39. package/dist/esm/effects/VocoderEffect.js +94 -0
  40. package/dist/esm/effects/VocoderEffect.js.map +1 -0
  41. package/dist/esm/index.d.ts +13 -0
  42. package/dist/esm/index.js +12 -0
  43. package/dist/esm/index.js.map +1 -0
  44. package/dist/esm/worklets/beat-detector.worklet.d.ts +1 -0
  45. package/dist/esm/worklets/beat-detector.worklet.js +647 -0
  46. package/dist/esm/worklets/beat-detector.worklet.js.map +1 -0
  47. package/dist/esm/worklets/granular.worklet.d.ts +1 -0
  48. package/dist/esm/worklets/granular.worklet.js +89 -0
  49. package/dist/esm/worklets/granular.worklet.js.map +1 -0
  50. package/dist/esm/worklets/pitch-shift.worklet.d.ts +1 -0
  51. package/dist/esm/worklets/pitch-shift.worklet.js +74 -0
  52. package/dist/esm/worklets/pitch-shift.worklet.js.map +1 -0
  53. package/dist/esm/worklets/vocoder.worklet.d.ts +1 -0
  54. package/dist/esm/worklets/vocoder.worklet.js +92 -0
  55. package/dist/esm/worklets/vocoder.worklet.js.map +1 -0
  56. package/package.json +46 -0
@@ -0,0 +1,89 @@
1
+ const granularWorkletSource = `
2
+ const sampleRate = globalThis.sampleRate;
3
+
4
+ class GranularProcessor extends AudioWorkletProcessor {
5
+ static get parameterDescriptors() {
6
+ return [
7
+ { name: 'grainSize', defaultValue: 0.05, minValue: 0.005, maxValue: 0.5, automationRate: 'k-rate' },
8
+ { name: 'density', defaultValue: 50, minValue: 1, maxValue: 500, automationRate: 'k-rate' },
9
+ { name: 'spread', defaultValue: 0.5, minValue: 0, maxValue: 1.0, automationRate: 'k-rate' },
10
+ { name: 'pitchMin', defaultValue: 1.0, minValue: 0.25, maxValue: 4.0, automationRate: 'k-rate' },
11
+ { name: 'pitchMax', defaultValue: 1.0, minValue: 0.25, maxValue: 4.0, automationRate: 'k-rate' },
12
+ { name: 'wet', defaultValue: 1.0, minValue: 0, maxValue: 1.0, automationRate: 'k-rate' },
13
+ ];
14
+ }
15
+
16
+ constructor(options) {
17
+ super();
18
+ const opts = options.processorOptions ?? {};
19
+ const bufferSeconds = opts.bufferSeconds ?? 2;
20
+ this._bufferLength = Math.floor(bufferSeconds * sampleRate);
21
+ this._buffer = new Float32Array(this._bufferLength);
22
+ this._writePos = 0;
23
+ this._timeUntilNextGrainSamples = 0;
24
+ this._grains = []; // { startPos, ageSamples, lengthSamples, pitch }
25
+ }
26
+
27
+ process(inputs, outputs, parameters) {
28
+ const input = inputs[0]?.[0];
29
+ const output = outputs[0]?.[0];
30
+ if (!input || !output) return true;
31
+
32
+ const grainSize = parameters.grainSize[0];
33
+ const density = parameters.density[0];
34
+ const spread = parameters.spread[0];
35
+ const pitchMin = parameters.pitchMin[0];
36
+ const pitchMax = parameters.pitchMax[0];
37
+ const wet = parameters.wet[0];
38
+
39
+ const grainSizeSamples = Math.max(8, Math.floor(grainSize * sampleRate));
40
+ const samplesPerGrain = sampleRate / Math.max(1, density);
41
+
42
+ for (let i = 0; i < input.length; i++) {
43
+ // Write input to circular buffer
44
+ this._buffer[this._writePos] = input[i];
45
+ this._writePos = (this._writePos + 1) % this._bufferLength;
46
+
47
+ // Spawn new grain if scheduled
48
+ this._timeUntilNextGrainSamples -= 1;
49
+ if (this._timeUntilNextGrainSamples <= 0) {
50
+ // Random offset into recent past, biased by spread
51
+ const maxOffset = Math.floor(spread * this._bufferLength);
52
+ const offset = Math.floor(Math.random() * Math.max(1, maxOffset));
53
+ const startPos = (this._writePos - offset - grainSizeSamples + this._bufferLength) % this._bufferLength;
54
+ // Random pitch in [pitchMin, pitchMax]
55
+ const pitch = pitchMin + Math.random() * Math.max(0, pitchMax - pitchMin);
56
+
57
+ this._grains.push({ startPos, ageSamples: 0, lengthSamples: grainSizeSamples, pitch });
58
+ this._timeUntilNextGrainSamples = samplesPerGrain;
59
+ }
60
+
61
+ // Mix all active grains (apply Hann window)
62
+ let grainSum = 0;
63
+ for (let g = this._grains.length - 1; g >= 0; g--) {
64
+ const grain = this._grains[g];
65
+ if (grain.ageSamples >= grain.lengthSamples) {
66
+ this._grains.splice(g, 1);
67
+ continue;
68
+ }
69
+
70
+ const phase = grain.ageSamples / grain.lengthSamples;
71
+ const window = 0.5 * (1 - Math.cos(2 * Math.PI * phase));
72
+ const readPos = grain.startPos + grain.ageSamples * grain.pitch;
73
+ const sampleIndex = Math.floor(readPos) % this._bufferLength;
74
+ const safeIndex = (sampleIndex + this._bufferLength) % this._bufferLength;
75
+ grainSum += this._buffer[safeIndex] * window;
76
+
77
+ grain.ageSamples++;
78
+ }
79
+
80
+ output[i] = (1 - wet) * input[i] + wet * grainSum;
81
+ }
82
+ return true;
83
+ }
84
+ }
85
+ registerProcessor('exojs-granular', GranularProcessor);
86
+ `;
87
+
88
+ export { granularWorkletSource };
89
+ //# sourceMappingURL=granular.worklet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"granular.worklet.js","sources":["../../../../src/worklets/granular.worklet.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ export declare const pitchShiftWorkletSource = "\nclass PitchShiftProcessor extends AudioWorkletProcessor {\n static get parameterDescriptors() {\n return [\n { name: 'pitch', defaultValue: 1.0, minValue: 0.25, maxValue: 4.0, automationRate: 'k-rate' },\n { name: 'wet', defaultValue: 1.0, minValue: 0, maxValue: 1.0, automationRate: 'k-rate' },\n ];\n }\n\n constructor(options) {\n super();\n const grainSize = options.processorOptions?.grainSize ?? 1024;\n this._grainSize = grainSize;\n this._bufferLength = grainSize * 4;\n this._buffer = new Float32Array(this._bufferLength);\n this._writePos = 0;\n // Two staggered read positions for overlap-add\n this._readPosA = 0;\n this._readPosB = grainSize / 2;\n this._hannWindow = this._buildHannWindow(grainSize);\n }\n\n _buildHannWindow(n) {\n const w = new Float32Array(n);\n for (let i = 0; i < n; i++) {\n w[i] = 0.5 * (1 - Math.cos(2 * Math.PI * i / (n - 1)));\n }\n return w;\n }\n\n _readGrain(readPos) {\n const grainSize = this._grainSize;\n const sampleIndex = Math.floor(readPos);\n const phase = sampleIndex % grainSize; // position within the grain envelope\n const win = this._hannWindow[phase];\n const bufferIndex = ((this._writePos - this._bufferLength + sampleIndex) % this._bufferLength + this._bufferLength) % this._bufferLength;\n return this._buffer[bufferIndex] * win;\n }\n\n process(inputs, outputs, parameters) {\n const input = inputs[0]?.[0];\n const output = outputs[0]?.[0];\n if (!input || !output) return true;\n\n const pitch = parameters.pitch[0];\n const wet = parameters.wet[0];\n\n for (let i = 0; i < input.length; i++) {\n // Write to circular buffer\n this._buffer[this._writePos] = input[i];\n this._writePos = (this._writePos + 1) % this._bufferLength;\n\n // Read two grains and sum\n const grainA = this._readGrain(this._readPosA);\n const grainB = this._readGrain(this._readPosB);\n const shifted = grainA + grainB;\n\n // Mix with dry\n output[i] = (1 - wet) * input[i] + wet * shifted;\n\n // Advance read positions at pitch rate\n this._readPosA += pitch;\n this._readPosB += pitch;\n if (this._readPosA >= this._grainSize) this._readPosA -= this._grainSize;\n if (this._readPosB >= this._grainSize) this._readPosB -= this._grainSize;\n }\n return true;\n }\n}\nregisterProcessor('exojs-pitch-shift', PitchShiftProcessor);\n";
@@ -0,0 +1,74 @@
1
+ const pitchShiftWorkletSource = `
2
+ class PitchShiftProcessor extends AudioWorkletProcessor {
3
+ static get parameterDescriptors() {
4
+ return [
5
+ { name: 'pitch', defaultValue: 1.0, minValue: 0.25, maxValue: 4.0, automationRate: 'k-rate' },
6
+ { name: 'wet', defaultValue: 1.0, minValue: 0, maxValue: 1.0, automationRate: 'k-rate' },
7
+ ];
8
+ }
9
+
10
+ constructor(options) {
11
+ super();
12
+ const grainSize = options.processorOptions?.grainSize ?? 1024;
13
+ this._grainSize = grainSize;
14
+ this._bufferLength = grainSize * 4;
15
+ this._buffer = new Float32Array(this._bufferLength);
16
+ this._writePos = 0;
17
+ // Two staggered read positions for overlap-add
18
+ this._readPosA = 0;
19
+ this._readPosB = grainSize / 2;
20
+ this._hannWindow = this._buildHannWindow(grainSize);
21
+ }
22
+
23
+ _buildHannWindow(n) {
24
+ const w = new Float32Array(n);
25
+ for (let i = 0; i < n; i++) {
26
+ w[i] = 0.5 * (1 - Math.cos(2 * Math.PI * i / (n - 1)));
27
+ }
28
+ return w;
29
+ }
30
+
31
+ _readGrain(readPos) {
32
+ const grainSize = this._grainSize;
33
+ const sampleIndex = Math.floor(readPos);
34
+ const phase = sampleIndex % grainSize; // position within the grain envelope
35
+ const win = this._hannWindow[phase];
36
+ const bufferIndex = ((this._writePos - this._bufferLength + sampleIndex) % this._bufferLength + this._bufferLength) % this._bufferLength;
37
+ return this._buffer[bufferIndex] * win;
38
+ }
39
+
40
+ process(inputs, outputs, parameters) {
41
+ const input = inputs[0]?.[0];
42
+ const output = outputs[0]?.[0];
43
+ if (!input || !output) return true;
44
+
45
+ const pitch = parameters.pitch[0];
46
+ const wet = parameters.wet[0];
47
+
48
+ for (let i = 0; i < input.length; i++) {
49
+ // Write to circular buffer
50
+ this._buffer[this._writePos] = input[i];
51
+ this._writePos = (this._writePos + 1) % this._bufferLength;
52
+
53
+ // Read two grains and sum
54
+ const grainA = this._readGrain(this._readPosA);
55
+ const grainB = this._readGrain(this._readPosB);
56
+ const shifted = grainA + grainB;
57
+
58
+ // Mix with dry
59
+ output[i] = (1 - wet) * input[i] + wet * shifted;
60
+
61
+ // Advance read positions at pitch rate
62
+ this._readPosA += pitch;
63
+ this._readPosB += pitch;
64
+ if (this._readPosA >= this._grainSize) this._readPosA -= this._grainSize;
65
+ if (this._readPosB >= this._grainSize) this._readPosB -= this._grainSize;
66
+ }
67
+ return true;
68
+ }
69
+ }
70
+ registerProcessor('exojs-pitch-shift', PitchShiftProcessor);
71
+ `;
72
+
73
+ export { pitchShiftWorkletSource };
74
+ //# sourceMappingURL=pitch-shift.worklet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pitch-shift.worklet.js","sources":["../../../../src/worklets/pitch-shift.worklet.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ export declare const vocoderWorkletSource = "\nconst sampleRate = globalThis.sampleRate;\n\nclass VocoderProcessor extends AudioWorkletProcessor {\n static get parameterDescriptors() {\n return [\n { name: 'wet', defaultValue: 1.0, minValue: 0, maxValue: 1.0, automationRate: 'k-rate' },\n { name: 'envelopeSmoothing', defaultValue: 0.005, minValue: 0.0001, maxValue: 0.1, automationRate: 'k-rate' },\n ];\n }\n\n constructor(options) {\n super();\n const opts = options.processorOptions ?? {};\n const bandCount = opts.numBands ?? 16;\n const minHz = opts.minHz ?? 80;\n const maxHz = opts.maxHz ?? 8000;\n const Q = opts.bandQ ?? 4;\n\n // Log-spaced band centers + biquad coefficients\n this._bands = [];\n for (let i = 0; i < bandCount; i++) {\n const ratio = bandCount === 1 ? 0 : i / (bandCount - 1);\n const centerHz = minHz * Math.pow(maxHz / minHz, ratio);\n const omega = 2 * Math.PI * centerHz / sampleRate;\n const cos = Math.cos(omega);\n const sin = Math.sin(omega);\n const alpha = sin / (2 * Q);\n\n // Bandpass (constant 0 dB peak) biquad\n const a0 = 1 + alpha;\n const b0 = alpha / a0;\n const b1 = 0;\n const b2 = -alpha / a0;\n const a1 = (-2 * cos) / a0;\n const a2 = (1 - alpha) / a0;\n this._bands.push({ b0, b1, b2, a1, a2 });\n }\n\n // Per-band biquad state (one for carrier, one for modulator)\n this._carrierStates = this._bands.map(() => ({ x1: 0, x2: 0, y1: 0, y2: 0 }));\n this._modulatorStates = this._bands.map(() => ({ x1: 0, x2: 0, y1: 0, y2: 0 }));\n\n // Per-band envelope follower\n this._envelopes = new Float32Array(bandCount);\n }\n\n _processBiquad(state, coef, x) {\n const y = coef.b0 * x + coef.b1 * state.x1 + coef.b2 * state.x2 - coef.a1 * state.y1 - coef.a2 * state.y2;\n state.x2 = state.x1; state.x1 = x;\n state.y2 = state.y1; state.y1 = y;\n return y;\n }\n\n process(inputs, outputs, parameters) {\n const carrier = inputs[0]?.[0];\n const modulator = inputs[1]?.[0];\n const output = outputs[0]?.[0];\n if (!carrier || !output) return true;\n\n const wet = parameters.wet[0];\n const envSmoothing = parameters.envelopeSmoothing[0];\n const bandCount = this._bands.length;\n\n for (let i = 0; i < carrier.length; i++) {\n const carrierSample = carrier[i];\n const modulatorSample = modulator?.[i] ?? 0;\n\n let bandSum = 0;\n for (let b = 0; b < bandCount; b++) {\n const coef = this._bands[b];\n\n // Modulator band \u2192 envelope follower\n const modBand = this._processBiquad(this._modulatorStates[b], coef, modulatorSample);\n const target = Math.abs(modBand);\n this._envelopes[b] += (target - this._envelopes[b]) * envSmoothing;\n\n // Carrier band, scaled by modulator envelope\n const carBand = this._processBiquad(this._carrierStates[b], coef, carrierSample);\n bandSum += carBand * this._envelopes[b];\n }\n\n output[i] = (1 - wet) * carrierSample + wet * bandSum;\n }\n return true;\n }\n}\nregisterProcessor('exojs-vocoder', VocoderProcessor);\n";
@@ -0,0 +1,92 @@
1
+ const vocoderWorkletSource = `
2
+ const sampleRate = globalThis.sampleRate;
3
+
4
+ class VocoderProcessor extends AudioWorkletProcessor {
5
+ static get parameterDescriptors() {
6
+ return [
7
+ { name: 'wet', defaultValue: 1.0, minValue: 0, maxValue: 1.0, automationRate: 'k-rate' },
8
+ { name: 'envelopeSmoothing', defaultValue: 0.005, minValue: 0.0001, maxValue: 0.1, automationRate: 'k-rate' },
9
+ ];
10
+ }
11
+
12
+ constructor(options) {
13
+ super();
14
+ const opts = options.processorOptions ?? {};
15
+ const bandCount = opts.numBands ?? 16;
16
+ const minHz = opts.minHz ?? 80;
17
+ const maxHz = opts.maxHz ?? 8000;
18
+ const Q = opts.bandQ ?? 4;
19
+
20
+ // Log-spaced band centers + biquad coefficients
21
+ this._bands = [];
22
+ for (let i = 0; i < bandCount; i++) {
23
+ const ratio = bandCount === 1 ? 0 : i / (bandCount - 1);
24
+ const centerHz = minHz * Math.pow(maxHz / minHz, ratio);
25
+ const omega = 2 * Math.PI * centerHz / sampleRate;
26
+ const cos = Math.cos(omega);
27
+ const sin = Math.sin(omega);
28
+ const alpha = sin / (2 * Q);
29
+
30
+ // Bandpass (constant 0 dB peak) biquad
31
+ const a0 = 1 + alpha;
32
+ const b0 = alpha / a0;
33
+ const b1 = 0;
34
+ const b2 = -alpha / a0;
35
+ const a1 = (-2 * cos) / a0;
36
+ const a2 = (1 - alpha) / a0;
37
+ this._bands.push({ b0, b1, b2, a1, a2 });
38
+ }
39
+
40
+ // Per-band biquad state (one for carrier, one for modulator)
41
+ this._carrierStates = this._bands.map(() => ({ x1: 0, x2: 0, y1: 0, y2: 0 }));
42
+ this._modulatorStates = this._bands.map(() => ({ x1: 0, x2: 0, y1: 0, y2: 0 }));
43
+
44
+ // Per-band envelope follower
45
+ this._envelopes = new Float32Array(bandCount);
46
+ }
47
+
48
+ _processBiquad(state, coef, x) {
49
+ const y = coef.b0 * x + coef.b1 * state.x1 + coef.b2 * state.x2 - coef.a1 * state.y1 - coef.a2 * state.y2;
50
+ state.x2 = state.x1; state.x1 = x;
51
+ state.y2 = state.y1; state.y1 = y;
52
+ return y;
53
+ }
54
+
55
+ process(inputs, outputs, parameters) {
56
+ const carrier = inputs[0]?.[0];
57
+ const modulator = inputs[1]?.[0];
58
+ const output = outputs[0]?.[0];
59
+ if (!carrier || !output) return true;
60
+
61
+ const wet = parameters.wet[0];
62
+ const envSmoothing = parameters.envelopeSmoothing[0];
63
+ const bandCount = this._bands.length;
64
+
65
+ for (let i = 0; i < carrier.length; i++) {
66
+ const carrierSample = carrier[i];
67
+ const modulatorSample = modulator?.[i] ?? 0;
68
+
69
+ let bandSum = 0;
70
+ for (let b = 0; b < bandCount; b++) {
71
+ const coef = this._bands[b];
72
+
73
+ // Modulator band → envelope follower
74
+ const modBand = this._processBiquad(this._modulatorStates[b], coef, modulatorSample);
75
+ const target = Math.abs(modBand);
76
+ this._envelopes[b] += (target - this._envelopes[b]) * envSmoothing;
77
+
78
+ // Carrier band, scaled by modulator envelope
79
+ const carBand = this._processBiquad(this._carrierStates[b], coef, carrierSample);
80
+ bandSum += carBand * this._envelopes[b];
81
+ }
82
+
83
+ output[i] = (1 - wet) * carrierSample + wet * bandSum;
84
+ }
85
+ return true;
86
+ }
87
+ }
88
+ registerProcessor('exojs-vocoder', VocoderProcessor);
89
+ `;
90
+
91
+ export { vocoderWorkletSource };
92
+ //# sourceMappingURL=vocoder.worklet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vocoder.worklet.js","sources":["../../../../src/worklets/vocoder.worklet.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@codexo/exojs-audio-fx",
3
+ "version": "0.14.0-next.0",
4
+ "description": "Audio effects, DSP, beat detection and analysis for ExoJS.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/Exoridus/ExoJS.git",
8
+ "directory": "packages/exojs-audio-fx"
9
+ },
10
+ "type": "module",
11
+ "sideEffects": false,
12
+ "main": "./dist/esm/index.js",
13
+ "module": "./dist/esm/index.js",
14
+ "types": "./dist/esm/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/esm/index.d.ts",
18
+ "import": "./dist/esm/index.js",
19
+ "default": "./dist/esm/index.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "files": [
24
+ "dist/esm/",
25
+ "README.md",
26
+ "LICENSE"
27
+ ],
28
+ "peerDependencies": {
29
+ "@codexo/exojs": "0.14.x"
30
+ },
31
+ "devDependencies": {
32
+ "@codexo/exojs": "0.14.0",
33
+ "@codexo/exojs-config": "0.0.0"
34
+ },
35
+ "license": "MIT",
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "scripts": {
40
+ "build": "tsx ../../node_modules/rollup/dist/bin/rollup -c --environment EXOJS_ENV:production",
41
+ "build:dev": "tsx ../../node_modules/rollup/dist/bin/rollup -c --environment EXOJS_ENV:development",
42
+ "typecheck": "tsc --noEmit",
43
+ "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
44
+ "test": "vitest run --root ../.. --project=exojs-audio-fx"
45
+ }
46
+ }