audio-mixer-ui 0.9.1 → 0.9.2
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/dist/audio-mixer-ui.js
CHANGED
|
@@ -3751,11 +3751,12 @@ class jU {
|
|
|
3751
3751
|
console.warn("Metronome output not available - master gain not created");
|
|
3752
3752
|
return;
|
|
3753
3753
|
}
|
|
3754
|
+
const U = this.audioEngine.getMetronomeAnalyser();
|
|
3754
3755
|
try {
|
|
3755
3756
|
l.disconnect();
|
|
3756
3757
|
} catch {
|
|
3757
3758
|
}
|
|
3758
|
-
this.metronomeMasterGain = this.audioEngine.audioContext.createGain(), this.metronomeMasterGain.gain.value = 1, l.connect(this.metronomeMasterGain), console.log("Metronome master gain node created and connected");
|
|
3759
|
+
this.metronomeMasterGain = this.audioEngine.audioContext.createGain(), this.metronomeMasterGain.gain.value = 1, l.connect(this.metronomeMasterGain), U ? (l.connect(U), console.log("Metronome master gain node created and connected (analyser reconnected)")) : console.log("Metronome master gain node created and connected (no analyser)");
|
|
3759
3760
|
}
|
|
3760
3761
|
/**
|
|
3761
3762
|
* Set up silent calibration (set gain to 0 for inaudible measurement)
|