mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Ignore empty strength values
This commit is contained in:
parent
d7beebcce7
commit
190f9b3d3a
1 changed files with 3 additions and 1 deletions
|
@ -1900,7 +1900,9 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => {
|
||||||
|
|
||||||
// noise / strength
|
// noise / strength
|
||||||
// https://www.moellerstudios.org/converting-amplitude-representations/
|
// https://www.moellerstudios.org/converting-amplitude-representations/
|
||||||
if (noise_level_raw != arg.strength) {
|
|
||||||
|
if (arg.strength != "" && noise_level_raw != arg.strength) {
|
||||||
|
//console.log(arg.strength);
|
||||||
noise_level_raw = arg.strength;
|
noise_level_raw = arg.strength;
|
||||||
noise_level = Math.pow(10, arg.strength / 20) * 100;
|
noise_level = Math.pow(10, arg.strength / 20) * 100;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue