Skip to content

Commit

Permalink
Fix min/max frequencies in highpass/lowpass filters 🤦‍♂️
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Mar 24, 2024
1 parent a2c8980 commit cdfa985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export function createTuner(config: TunerConfig = {}) {

const highpass = context.createBiquadFilter();
highpass.type = "highpass";
highpass.frequency.value = config.maxFrequency!;
highpass.frequency.value = config.minFrequency!;

const lowpass = context.createBiquadFilter();
lowpass.type = "lowpass";
lowpass.frequency.value = config.minFrequency!;
lowpass.frequency.value = config.maxFrequency!;

const pipeline: AudioNode[] = [
lowpass,
Expand Down

0 comments on commit cdfa985

Please sign in to comment.