mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
moved from rms to dbFS
This commit is contained in:
parent
55e87840f8
commit
8913f81b79
1 changed files with 1 additions and 1 deletions
|
@ -1499,7 +1499,7 @@ ipcRenderer.on('action-update-tnc-state', (event, arg) => {
|
||||||
if (dbfs_level_raw != arg.dbfs_level){
|
if (dbfs_level_raw != arg.dbfs_level){
|
||||||
dbfs_level_raw = arg.dbfs_level
|
dbfs_level_raw = arg.dbfs_level
|
||||||
dbfs_level = Math.pow(10, arg.dbfs_level / 20) * 100
|
dbfs_level = Math.pow(10, arg.dbfs_level / 20) * 100
|
||||||
console.log(dbfs_level)
|
|
||||||
document.getElementById("dbfs_level_value").innerHTML = Math.round(arg.dbfs_level) + ' dBFS'
|
document.getElementById("dbfs_level_value").innerHTML = Math.round(arg.dbfs_level) + ' dBFS'
|
||||||
document.getElementById("dbfs_level").setAttribute("aria-valuenow", dbfs_level);
|
document.getElementById("dbfs_level").setAttribute("aria-valuenow", dbfs_level);
|
||||||
document.getElementById("dbfs_level").setAttribute("style", "width:" + dbfs_level + "%;");
|
document.getElementById("dbfs_level").setAttribute("style", "width:" + dbfs_level + "%;");
|
||||||
|
|
Loading…
Reference in a new issue