Skip to content

Commit

Permalink
Move lowpass example vars
Browse files Browse the repository at this point in the history
  • Loading branch information
steeelydan committed Sep 30, 2023
1 parent 03971a8 commit 2bbbce1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions examples/05_lowpass.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ config({ description: 'lowpass', inChannels: 2, outChannels: 2 });

let lpFreq;
let lpQ;
let outputGainDb;
let outputGain;

const lpCoefs = {
a1x: 0,
Expand All @@ -14,9 +16,6 @@ const lpCoefs = {
const lpXStore = new EelArray(2, 3);
const lpYStore = new EelArray(2, 3);

let outputGainDb;
let outputGain;

slider(1, lpFreq, 22000, 5, 22000, 1, 'LP Freq');
slider(2, lpQ, 0.5, 0.1, 7, 0.01, 'Q');
slider(50, outputGainDb, 0, -15, 15, 0.01, 'Output Gain (dB)');
Expand Down
5 changes: 2 additions & 3 deletions gui/src/components/js2eel/examples/05_lowpass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const EXAMPLE_LOWPASS_JS = {
let lpFreq;
let lpQ;
let outputGainDb;
let outputGain;
const lpCoefs = {
a1x: 0,
Expand All @@ -16,9 +18,6 @@ const lpCoefs = {
const lpXStore = new EelArray(2, 3);
const lpYStore = new EelArray(2, 3);
let outputGainDb;
let outputGain;
slider(1, lpFreq, 22000, 5, 22000, 1, 'LP Freq');
slider(2, lpQ, 0.5, 0.1, 7, 0.01, 'Q');
slider(50, outputGainDb, 0, -15, 15, 0.01, 'Output Gain (dB)');
Expand Down

0 comments on commit 2bbbce1

Please sign in to comment.