OK ready
This commit is contained in:
@@ -10,9 +10,9 @@ class OutputLimiter extends AudioWorkletProcessor {
|
||||
},
|
||||
{
|
||||
name: 'makeup',
|
||||
defaultValue: 1.5,
|
||||
minValue: 1.0,
|
||||
maxValue: 3.0,
|
||||
defaultValue: 0.5,
|
||||
minValue: 0.1,
|
||||
maxValue: 2.0,
|
||||
automationRate: 'k-rate'
|
||||
}
|
||||
]
|
||||
@@ -47,8 +47,8 @@ class OutputLimiter extends AudioWorkletProcessor {
|
||||
const outputChannel = output[channel]
|
||||
|
||||
for (let i = 0; i < inputChannel.length; i++) {
|
||||
let sample = inputChannel[i] * makeup
|
||||
sample = this.softClip(sample, threshold)
|
||||
let sample = this.softClip(inputChannel[i], threshold)
|
||||
sample = sample * makeup
|
||||
outputChannel[i] = sample
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user