speaker-calibration 2.2.75 → 2.2.77

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speaker-calibration",
3
- "version": "2.2.75",
3
+ "version": "2.2.77",
4
4
  "description": "Speaker calibration library for auditory testing",
5
5
  "main": "dist/main.js",
6
6
  "directories": {
@@ -361,6 +361,18 @@ class Combination extends AudioCalibrator {
361
361
  .catch(err => {
362
362
  console.error(err);
363
363
  });
364
+
365
+ let knownGain = this.componentIR.Gain;
366
+ let knownFreq = this.componentIR.Freq;
367
+ this.pyServerAPI
368
+ .getSubtractedPSDWithRetry(background_rec, knownGain, knownFreq, this.sourceSamplingRate || 96000)
369
+ .then(res => {
370
+ this.background_noise['x_subtracted'] = res['x'];
371
+ this.background_noise['y_subtracted'] = res['y'];
372
+ })
373
+ .catch(err => {
374
+ console.error(err);
375
+ });
364
376
  };
365
377
 
366
378
  /** .