Skip to content

Commit

Permalink
Change scaling of "Circular Membrane Mode"
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukau committed Jun 8, 2024
1 parent 695ca4e commit 3f4a3ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions SerialCombCymbal/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ const localRecipeBook = {
highpassQ: () => {},
lowpassHz: () => {},
lowpassQ: () => {},

delayCascadingOrder: (prm) => { prm.normalized = Math.random(); },
},

"Lattice": {
Expand Down Expand Up @@ -116,6 +118,8 @@ const localRecipeBook = {
highpassQ: () => {},
lowpassHz: () => {},
lowpassQ: () => {},

delayCascadingOrder: (prm) => { prm.normalized = Math.random(); },
},
};

Expand Down
2 changes: 1 addition & 1 deletion SerialCombCymbal/menuitems.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const sampleRateScalerItems = ["1", "2", "4", "8", "16"];

export const delayNetworkType = ["Allpass", "Lattice"];
export const timeDistribution = ["Overtone", "Uniform", "Circular Membrane Mode"];
export const cascadingOrderItems = ["Ascending", "Descending", "Random"];
export const cascadingOrderItems = ["Forward", "Reverse", "Random"];

export const delayInterpTypeItems = [
"None - Noisy modulation",
Expand Down
3 changes: 2 additions & 1 deletion SerialCombCymbal/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ onmessage = (event) => {
console.warn("Index out of bounds for `util.circularModes`");
return 0;
}
return pv.delayTime * util.circularModes[index];
return pv.delayTime * util.circularModes[index]
/ util.circularModes[pv.nDelay - 1];
}
}
};
Expand Down

0 comments on commit 3f4a3ac

Please sign in to comment.