Skip to content

Commit

Permalink
fix a silly lowpass filter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
spessasus committed Nov 5, 2024
1 parent b6a0f3b commit 8a3b6dc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SpessaSynth",
"version": "3.22.4",
"version": "3.22.5",
"type": "module",
"scripts": {
"start": "node src/website/server/server.js",
Expand Down
2 changes: 1 addition & 1 deletion src/spessasynth_lib/synthetizer/worklet_processor.min.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {
getSampleNearest,
interpolationTypes
} from "../worklet_utilities/wavetable_oscillator.js";
import { WorkletLowpassFilter } from "../worklet_utilities/lowpass_filter.js";
import { MIN_NOTE_LENGTH } from "../main_processor.js";
import { WorkletVolumeEnvelope } from "../worklet_utilities/volume_envelope.js";
import { generatorTypes } from "../../../soundfont/basic_soundfont/generator.js";
import { customControllers } from "../worklet_utilities/controller_tables.js";
import { WorkletLowpassFilter } from "../worklet_utilities/lowpass_filter.js";

export const PAN_SMOOTHING_FACTOR = 0.05;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,16 @@ export class WorkletLowpassFilter

/**
* Cutoff frequency in cents
* Note: defaults to 13501 to cause a recalculation even at initial fc being 13500
* @type {number}
*/
cutoffCents = 13500;
cutoffCents = 13501;

/**
* Cutoff frequency in Hz
* @type {number}
*/
cutoffHz = 20000;
cutoffHz = 20001;

/**
* Applies a low-pass filter to the given buffer
Expand Down

0 comments on commit 8a3b6dc

Please sign in to comment.