speaker-calibration 2.2.234 → 2.2.236

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.234",
3
+ "version": "2.2.236",
4
4
  "description": "Speaker calibration library for auditory testing",
5
5
  "main": "dist/main.js",
6
6
  "directories": {
@@ -322,9 +322,7 @@ class Combination extends AudioCalibrator {
322
322
  .replace('333', this.calibrateSoundSamplingDesiredBits);
323
323
  const reportParameters = `${samplingParamText}`;
324
324
  if (this.flags) {
325
- flags = `<br> autoGainControl: ${this.flags.autoGainControl};
326
- echoCancellation: ${this.flags.echoCancellation};
327
- noiseSuppression: ${this.flags.noiseSuppression}`;
325
+ flags = `<br> autoGainControl: ${this.flags.autoGainControl}, echoCancellation: ${this.flags.echoCancellation}, noiseSuppression: ${this.flags.noiseSuppression}`;
328
326
  }
329
327
  if (this.SDofFilteredRange['mls']) {
330
328
  MLSsd = `<br> Recorded MLS power SD: ${this.SDofFilteredRange['mls']} dB`;
@@ -753,8 +751,8 @@ class Combination extends AudioCalibrator {
753
751
  );
754
752
  this.addTimeStamp(
755
753
  `Recorded ${total_dur.toFixed(1)} s ` +
756
- `(${pre.toFixed(1)} + ${repeats}×${burst.toFixed(1)} + ${post.toFixed(1)} s)
757
- of MLS ver. ${this.icapture}. SD = ${result['sd']} > ${this._calibrateSoundBurstMaxSD_dB}`);
754
+ `(${pre.toFixed(1)} + ${repeats}×${burst.toFixed(1)} + ${post.toFixed(1)} s)` +
755
+ `of MLS ver. ${this.icapture}. SD = ${result['sd']} > ${this._calibrateSoundBurstMaxSD_dB}`);
758
756
  }
759
757
  if (this.numSuccessfulCaptured == 1) {
760
758
  console.log('pop last unfiltered mls volume check');
@@ -871,7 +869,6 @@ class Combination extends AudioCalibrator {
871
869
  'Waiting ' + this._calibrateSoundBackgroundSecs + ' second(s) to record background noise'
872
870
  );
873
871
  let time_to_wait = this._calibrateSoundBackgroundSecs + 0.5;
874
- this.addTimeStamp(`Record ${time_to_wait.toFixed(1)} s of background.`);
875
872
  await sleep(time_to_wait);
876
873
  };
877
874
 
@@ -2131,7 +2128,6 @@ class Combination extends AudioCalibrator {
2131
2128
 
2132
2129
  const amplitude = Math.pow(10, this.power_dB / 20);
2133
2130
  //MLSpower = Math.pow(10,this.power_dB/20);
2134
- this.addTimeStamp('Compute MLS sequence');
2135
2131
  if (this.isCalibrating) return null;
2136
2132
  await this.pyServerAPI
2137
2133
  .getMLSWithRetry({
@@ -2149,6 +2145,7 @@ class Combination extends AudioCalibrator {
2149
2145
  // this.emit('InvertedImpulseResponse', {res: false});
2150
2146
  console.error(err);
2151
2147
  });
2148
+ this.addTimeStamp('Compute MLS sequence');
2152
2149
  this.numSuccessfulBackgroundCaptured = 0;
2153
2150
  if (this._calibrateSoundBackgroundSecs > 0) {
2154
2151
  this.mode = 'background';
@@ -2167,6 +2164,8 @@ class Combination extends AudioCalibrator {
2167
2164
  );
2168
2165
  this.incrementStatusBar();
2169
2166
  }
2167
+ let backgroundSec = (this._calibrateSoundBackgroundSecs + 0.5);
2168
+ this.addTimeStamp(`Record ${backgroundSec.toFixed(1)} s of background.`);
2170
2169
  this.mode = 'unfiltered';
2171
2170
  this.numSuccessfulCaptured = 0;
2172
2171