Skip to content

Commit 6582386

Browse files
committed
fix compressor.reduction()
1 parent c58bec1 commit 6582386

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compressor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class Compressor extends Effect {
235235
* @return {Number} Value of the amount of gain reduction that is applied to the signal
236236
*/
237237
reduction() {
238-
return this.compressor.reduction.value;
238+
return this.compressor.reduction;
239239
}
240240

241241
dispose() {

test/tests/p5.Compressor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe('p5.Compressor', function () {
110110
});
111111
it('can return reduction value', function () {
112112
let compressor = new p5.Compressor();
113-
let reduction = compressor.compressor.reduction.value;
113+
let reduction = compressor.reduction();
114114
expect(reduction).to.not.be.null;
115115
});
116116
it('wet dry value can be changed', function () {

0 commit comments

Comments
 (0)