mirror of
https://codeberg.org/armin/noiz.git
synced 2026-09-01 05:50:52 +02:00
mix linear/logarithmic frequency mapping (see "blend")
This commit is contained in:
parent
ae3943aab0
commit
a46be8ed0a
1 changed files with 1 additions and 1 deletions
|
|
@ -457,7 +457,7 @@ function drawSpectrum() {
|
|||
const barMags = new Float32Array(NUM_BARS);
|
||||
const minFreq = 20;
|
||||
const maxFreq = 19000;
|
||||
const blend = 0.4;
|
||||
const blend = 0.6;
|
||||
for (let b = 0; b < NUM_BARS; b++) {
|
||||
const lowFreq = minFreq * Math.pow(maxFreq / minFreq, b / NUM_BARS);
|
||||
const highFreq = minFreq * Math.pow(maxFreq / minFreq, (b + 1) / NUM_BARS);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue