1
0
Fork 0

audio test

master
Kristin Galvin 2020-01-19 17:51:08 -08:00
parent 6d7acb091d
commit 24c6eaeea6
1 changed files with 2 additions and 3 deletions

View File

@ -28,9 +28,8 @@ function readHRM() {
}
g.setColor(1,1,1);
g.lineTo(x,y);
console.log("a ", y);
freq((Math.abs(y) * 10000.0) + 500.0);
console.log("freq ", (y * 1000.0) + 100.0);
freq((Math.abs(a) * 10000.0) + 500.0);
console.log("freq ", (a * 10000.0) + 500.0);
if ((max-min)>0.005) {
if (4*a > (min+3*max)) { // high
g.setColor(1,0,0);