works for me, can you be more specific?
[ed] i’ll be more specific.
to pan voice 1 hard left, this works for me:
engine.play_dac(1, 1, 1.0)
engine.play_dac(1, 2, 0.0)
hard right:
engine.play_dac(1, 2, 1.0)
engine.play_dac(1, 1, 0.0)
75/25 left/right:
engine.play_dac(1, 1, 0.75)
engine.play_dac(1, 2, 0.25)
of course you could make a lua func for equal-power panning. the patch levels have some smoothing built in. so here’s equal power:
(untested)
-- position in [-1, 1]
function xpan_voice(num, pos)
local theta = (pos + 1) * math.pi / 4
local l = math.cos(theta)
local r = math.sin(theta)
engine.play_dac(num, 1, l)
engine.play_dac(num, 2, r)
end
there’s other pan laws; for -4.5db law you would take the square root of the product of the equal-power and the linear.
clear_range
ah yeah sorry this is broken in supernova. it is bug. i made an upstream PR
[ https://github.com/supercollider/supercollider/pull/4137 ]
but we may ditch supernova anyway:
(issues with supernova load distribution)
[https://github.com/monome/norns/issues/626]
(consideration of multple scsynth processes instead:)
[ https://github.com/monome/norns/issues/630 ]