Skip to content

Commit bde8a5e

Browse files
authored
removed line from p5.Filter.prototype.freq which sets the frequency before the exponential ramp, which was essentially ignoring the 'time' argument when passed to the method
1 parent 4016d11 commit bde8a5e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/filter.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ define(function (require) {
162162
freq = 1;
163163
}
164164
if (typeof freq === 'number') {
165-
this.biquad.frequency.value = freq;
166165
this.biquad.frequency.cancelScheduledValues(this.ac.currentTime + 0.01 + t);
167166
this.biquad.frequency.exponentialRampToValueAtTime(freq, this.ac.currentTime + 0.02 + t);
168167
} else if (freq) {

0 commit comments

Comments
 (0)