«Stereo phase scope» by jamshark70

on 31 May'19 08:56 in guistereophaseanalyzer

Very quick-and-dirty hack to show stereo phase. Center = up (12:00). Full left = 10:30, full right = 1:30.

1
2
3
4
5
6
7
8
9
10
11
12
(
b = Bus.audio(s, 2);
a = { |inbus = 0|
	var sig = In.ar(inbus, 2);
	// x axis is side, oriented toward right;
	// y axis is mid
	[sig[1] - sig[0], sig.sum]
}.play(s.defaultGroup, outbus: b, addAction: \addAfter);
c = s.scope;
c.style = 2;
c.bus = b;
)
raw 264 chars (focus & ctrl+a+c to copy)
reception
comments