Commit bf58343e authored by Meg Ford's avatar Meg Ford

play.js: re-add Db to linear conversion from the patch

parent 2172c9cc
......@@ -130,16 +130,11 @@ const WaveForm = new Lang.Class({
if (peakVal) {
let val = peakVal.get_nth(0);
log("val" + val);
if (val > 0)
val = 0;
let value = Math.pow(10, val/20);
log(value);
if (value <= 0)
peaknumber = 0;
else if (value >= 1)
peaknumber = 1;
else
peaknumber = value;
peaks.push(peaknumber);
log("wave height" + peaknumber);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment