fix: replace hsl with loadbang floats for headless Pd
Validate and Test / validate-patches (push) Failing after 13s
Validate and Test / validate-patches (push) Failing after 13s
hsl GUI objects don't initialize in -nogui mode, causing cutoff at 0 Hz and volume at 0 → no audio output. Use loadbang + float for headless-safe initialization.
This commit is contained in:
+11
-6
@@ -82,12 +82,17 @@ def gen():
|
||||
connect(c, env, 0, amp, 1)
|
||||
connect(c, amp, 0, panscale, 0)
|
||||
|
||||
# ── Controls ──
|
||||
cutoff = Obj(350, 330, "hsl 128 15 100 18000 10000 0 0 0 empty Cutoff -2 -8 0 10 -262144 -1 -1 7200 1")
|
||||
volume = Obj(350, 430, "hsl 128 15 0 100 40 0 0 0 empty Volume -2 -8 0 10 -262144 -1 -1 7200 1")
|
||||
div = Obj(350, 460, "/ 100")
|
||||
connect(c, cutoff, 0, filt, 1)
|
||||
connect(c, volume, 0, div, 0)
|
||||
# ── Controls (headless-safe: loadbang-initialized floats, not hsl) ──
|
||||
lb_cut = Obj(350, 300, "loadbang")
|
||||
float_cut = Obj(350, 320, "float 10000")
|
||||
connect(c, lb_cut, 0, float_cut, 0)
|
||||
connect(c, float_cut, 0, filt, 1)
|
||||
|
||||
lb_vol = Obj(350, 400, "loadbang")
|
||||
float_vol = Obj(350, 420, "float 80")
|
||||
div = Obj(350, 450, "/ 100")
|
||||
connect(c, lb_vol, 0, float_vol, 0)
|
||||
connect(c, float_vol, 0, div, 0)
|
||||
connect(c, div, 0, panscale, 1)
|
||||
|
||||
# ── Output ──
|
||||
|
||||
Reference in New Issue
Block a user