res adjust
This commit is contained in:
parent
236ff577a6
commit
dfc4a0818c
1 changed files with 3 additions and 3 deletions
|
|
@ -322,10 +322,10 @@ class DJFProcessor extends AudioWorkletProcessor {
|
||||||
let filterType = 'none';
|
let filterType = 'none';
|
||||||
let cutoff;
|
let cutoff;
|
||||||
let v = 1;
|
let v = 1;
|
||||||
if (value > 0.52) {
|
if (value > 0.51) {
|
||||||
filterType = 'hipass';
|
filterType = 'hipass';
|
||||||
v = (value - 0.5) * 2;
|
v = (value - 0.5) * 2;
|
||||||
} else if (value < 0.48) {
|
} else if (value < 0.49) {
|
||||||
filterType = 'lopass';
|
filterType = 'lopass';
|
||||||
v = value * 2;
|
v = value * 2;
|
||||||
}
|
}
|
||||||
|
|
@ -336,7 +336,7 @@ class DJFProcessor extends AudioWorkletProcessor {
|
||||||
if (filterType == 'none') {
|
if (filterType == 'none') {
|
||||||
output[i][n] = input[i][n];
|
output[i][n] = input[i][n];
|
||||||
} else {
|
} else {
|
||||||
this.filters[i].update(input[i][n], cutoff, 0.2);
|
this.filters[i].update(input[i][n], cutoff, 0.1);
|
||||||
if (filterType === 'lopass') {
|
if (filterType === 'lopass') {
|
||||||
output[i][n] = this.filters[i].s1;
|
output[i][n] = this.filters[i].s1;
|
||||||
} else if (filterType === 'hipass') {
|
} else if (filterType === 'hipass') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue