Merge pull request 'Make pan modulatable' (#1865) from glossing/pan-fx into main

Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1865
This commit is contained in:
Aria
2026-01-02 18:44:52 +01:00
+1
View File
@@ -821,6 +821,7 @@ export const superdough = async (value, t, hapDuration, cps = 0.5, cycle = 0.5)
// panning
if (fx.pan !== undefined) {
const panner = ac.createStereoPanner();
fxNodes['pan'] = [panner];
panner.pan.value = 2 * fx.pan - 1;
chain.connect(panner);
}