Skip to content

Commit

Permalink
[voice-guesser] Round frequency to int.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdashg committed Sep 24, 2022
1 parent 2a0c393 commit 66c99ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions voice-guesser.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ <h1 id=e_text>[click to start]</h1>

const SOFT_BLUE = '#5bcffa';
const SOFT_PINK = '#f5abb9';
//document.body.style.width = '50vw';
//document.body.style.height = '50vh';
document.body.style.backgroundColor =
`color-mix(in srgb, ${SOFT_PINK} ${femme_percent}%, ${SOFT_BLUE})`;

set_text(`femme: ${femme.toFixed(2)} @ ${root.freq}Hz (${root.db|0}db)`);
set_text(`femme: ${femme.toFixed(2)} @ ${root.freq|0}Hz (${root.db|0}db)`);
}
ac.close();
set_text('stopped');
Expand Down

0 comments on commit 66c99ec

Please sign in to comment.